:root {
  --ink: #172033;
  --muted: #5f6b7d;
  --soft: #eef2f6;
  --line: #d7dee8;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --navy: #102a43;
  --blue: #1769aa;
  --cyan: #0b8793;
  --green: #18794e;
  --warning: #9a6700;
  --shadow: 0 8px 24px rgba(25, 41, 61, 0.08);
  --content: 1440px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.docs-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--cyan);
}

.docs-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-size: 1rem; }
.brand small { margin-top: 4px; color: #b9c9d8; font-size: .78rem; }
.docs-topbar-actions { display: flex; gap: 8px; }
.primary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
}
.primary-btn { background: #fff; color: var(--navy); }
.ghost-btn { border-color: rgba(255,255,255,.3); color: #fff; }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-1px); }

.docs-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 54px;
  align-items: center;
  max-width: var(--content);
  min-height: 410px;
  margin: 0 auto;
  padding: 48px 32px 54px;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.docs-hero .eyebrow { color: #6ed5df; }
.docs-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: 0;
}
.hero-copy > p:not(.eyebrow) { max-width: 64ch; margin: 18px 0 0; color: #c7d4e0; font-size: 1.05rem; }
.docs-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.docs-hero-badges span {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
  color: #e7f0f6;
  font-size: .75rem;
  font-weight: 700;
}
.hero-product-view { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.hero-product-view img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; background: #fff; }
.hero-product-view figcaption { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #0b2034; font-size: .78rem; }
.hero-product-view figcaption span { color: #a9bdcd; }

.docs-page {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 28px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 28px 32px 72px;
}
.docs-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.docs-sidebar::before { content: "IN THIS GUIDE"; padding: 16px 16px 10px; color: #778395; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.docs-sidebar a { padding: 9px 16px; border-left: 3px solid transparent; color: #435064; text-decoration: none; font-size: .82rem; font-weight: 650; }
.docs-sidebar a:hover, .docs-sidebar a:focus-visible { border-left-color: var(--blue); background: #edf5fb; color: var(--blue); outline: none; }
.docs-sidebar a:last-child { margin-bottom: 10px; }

.docs-content { min-width: 0; display: grid; gap: 18px; }
.docs-section {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(25,41,61,.045);
}
.docs-section h2 { margin: 0 0 10px; color: var(--navy); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: 0; }
.docs-section h3 { margin: 0 0 8px; color: #23324a; font-size: 1rem; line-height: 1.35; }
.docs-section p { color: var(--muted); }
.docs-section ul, .docs-section ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.docs-section li + li { margin-top: 7px; }
.docs-lead { max-width: 78ch; margin-bottom: 20px; color: #445166 !important; font-size: 1.02rem; }

.docs-card-grid, .docs-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.docs-card-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.docs-card-grid article, .docs-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid #9eb6c9;
  border-radius: 6px;
  background: #fbfcfd;
}
.docs-card-grid article p, .docs-card p { margin: 0; }

.operation-path { display: grid; gap: 0; margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.operation-path article { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; padding: 17px 18px; background: #fff; }
.operation-path article + article { border-top: 1px solid var(--line); }
.operation-path article > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 5px; background: var(--navy); color: #fff; font-size: .84rem; font-weight: 800; }
.operation-path strong { color: #223149; }
.operation-path p { margin: 3px 0 0; font-size: .9rem; }

.docs-alert, .docs-note { margin-top: 20px; padding: 16px 18px; border: 1px solid #9fc8d7; border-left: 4px solid var(--cyan); border-radius: 6px; background: #eef9fa; }
.docs-alert strong { color: var(--navy); }
.docs-alert p, .docs-note { margin-bottom: 0; color: #385362; }
.success-alert { border-color: #9bd0b6; border-left-color: var(--green); background: #eff9f4; }

.docs-table-wrap { width: 100%; margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.docs-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; font-size: .86rem; }
.docs-table th { padding: 13px 15px; background: #eaf0f5; color: #27364c; text-align: left; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.docs-table td { padding: 13px 15px; border-top: 1px solid var(--line); color: #526074; vertical-align: top; }
.docs-table tr:hover td { background: #f8fafc; }

.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.checklist-grid label { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfd; color: #435064; font-size: .88rem; }
.checklist-grid input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--green); }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px max(32px, calc((100% - var(--content))/2 + 32px)); border-top: 1px solid #243c53; background: var(--navy); color: #fff; }
.site-footer > div { display: flex; gap: 14px; align-items: center; }
.site-footer span, .site-footer a { color: #afc1d0; font-size: .8rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 1120px) {
  .docs-hero-content { grid-template-columns: 1fr .8fr; gap: 32px; }
  .docs-page { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
  .docs-card-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 140px; }
  .docs-topbar { padding-inline: 18px; }
  .docs-hero-content { grid-template-columns: 1fr; min-height: 0; padding: 36px 18px 42px; }
  .hero-product-view { max-width: 620px; }
  .docs-page { display: block; width: 100%; max-width: 100vw; min-width: 0; padding: 0 0 50px; overflow: clip; }
  .docs-sidebar { position: sticky; z-index: 10; top: 0; display: flex; width: 100%; max-width: 100vw; min-width: 0; overflow-x: auto; border-width: 0 0 1px; border-radius: 0; box-shadow: 0 5px 14px rgba(25,41,61,.1); scrollbar-width: none; }
  .docs-sidebar::-webkit-scrollbar { display: none; }
  .docs-sidebar::before { display: none; }
  .docs-sidebar a { flex: 0 0 auto; padding: 13px 14px; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .docs-sidebar a:hover, .docs-sidebar a:focus-visible { border-left-color: transparent; border-bottom-color: var(--blue); }
  .docs-content { width: 100%; max-width: 100%; min-width: 0; gap: 10px; padding: 12px; overflow: hidden; }
  .docs-section { width: 100%; max-width: 100%; min-width: 0; padding: 24px 18px; overflow: hidden; }
  .docs-table-wrap { max-width: 100%; }
  .docs-card-grid, .docs-two-column, .checklist-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; padding: 26px 18px; }
}

@media (max-width: 560px) {
  .docs-topbar { align-items: flex-start; }
  .brand small { display: none; }
  .docs-topbar-actions .ghost-btn { display: none; }
  .primary-btn { min-height: 38px; padding-inline: 11px; font-size: .78rem; }
  .docs-hero-content { padding-top: 30px; }
  .docs-hero h1 { font-size: 2.15rem; }
  .hero-copy > p:not(.eyebrow) { font-size: .94rem; }
  .hero-product-view figcaption { align-items: flex-start; flex-direction: column; gap: 2px; }
  .docs-card-grid.compact { grid-template-columns: 1fr; }
  .operation-path article { grid-template-columns: 38px minmax(0,1fr); padding: 14px; }
  .operation-path article > span { width: 32px; height: 32px; }
  .site-footer, .site-footer > div { align-items: flex-start; flex-direction: column; }
}

@media print {
  body { background: #fff; }
  .docs-topbar-actions, .docs-sidebar { display: none; }
  .docs-hero { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .docs-hero h1, .brand strong { color: #000; }
  .hero-copy > p:not(.eyebrow), .brand small { color: #333; }
  .docs-hero-content { grid-template-columns: 1fr; min-height: 0; }
  .hero-product-view { display: none; }
  .docs-page { display: block; padding: 0; }
  .docs-section { break-inside: avoid; box-shadow: none; }
  .site-footer { display: none; }
}
