:root {
  --ezw-doc-bg: #f6f8fb;
  --ezw-doc-surface: #ffffff;
  --ezw-doc-ink: #132033;
  --ezw-doc-muted: #5e6b7f;
  --ezw-doc-border: #d9e1ec;
  --ezw-doc-blue: #2563eb;
  --ezw-doc-green: #178557;
  --ezw-doc-amber: #a35f00;
  --ezw-doc-red: #b42318;
  --ezw-doc-code: #0f172a;
  --ezw-doc-code-text: #e5edf7;
  --ezw-doc-soft-blue: #eaf1ff;
  --ezw-doc-soft-green: #eaf8f0;
  --ezw-doc-soft-amber: #fff5df;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--ezw-doc-bg);
  color: var(--ezw-doc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

a {
  color: var(--ezw-doc-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.doc-shell {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.doc-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--ezw-doc-border);
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(14px);
}

.doc-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ezw-doc-ink);
  font-weight: 800;
}

.doc-brand img {
  display: block;
  width: clamp(152px, 18vw, 210px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.doc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ezw-doc-border);
  border-radius: 999px;
  background: var(--ezw-doc-surface);
  color: var(--ezw-doc-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.doc-hero {
  padding: 56px 0 36px;
}

.doc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 28px;
  align-items: start;
}

.doc-eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 11px;
  border: 1px solid #bcd0f8;
  border-radius: 999px;
  background: var(--ezw-doc-soft-blue);
  color: #174ea6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.doc-lede {
  max-width: 780px;
  color: var(--ezw-doc-muted);
  font-size: 1.16rem;
}

.doc-callout,
.doc-card,
.doc-panel {
  border: 1px solid var(--ezw-doc-border);
  border-radius: 8px;
  background: var(--ezw-doc-surface);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.doc-callout {
  padding: 20px;
}

.doc-callout strong {
  display: block;
  margin-bottom: 6px;
}

.doc-callout p:last-child,
.doc-card p:last-child,
.doc-panel p:last-child {
  margin-bottom: 0;
}

.doc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.doc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 800;
}

.doc-button-primary {
  background: var(--ezw-doc-blue);
  color: #ffffff;
}

.doc-button-secondary {
  border: 1px solid var(--ezw-doc-border);
  background: var(--ezw-doc-surface);
  color: var(--ezw-doc-ink);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 70px;
}

.doc-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--ezw-doc-border);
  border-radius: 8px;
  background: var(--ezw-doc-surface);
}

.doc-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ezw-doc-muted);
  font-weight: 700;
}

.doc-sidebar a:hover {
  background: var(--ezw-doc-bg);
  color: var(--ezw-doc-ink);
  text-decoration: none;
}

.doc-content {
  display: grid;
  gap: 24px;
}

.doc-section {
  padding: 28px;
  border: 1px solid var(--ezw-doc-border);
  border-radius: 8px;
  background: var(--ezw-doc-surface);
}

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

.doc-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doc-card,
.doc-panel {
  padding: 18px;
}

.doc-card h3,
.doc-panel h3 {
  margin-bottom: 8px;
}

.doc-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ezw-doc-soft-blue);
  color: #174ea6;
  font-size: 0.76rem;
  font-weight: 800;
}

.doc-tag-green {
  background: var(--ezw-doc-soft-green);
  color: var(--ezw-doc-green);
}

.doc-tag-amber {
  background: var(--ezw-doc-soft-amber);
  color: var(--ezw-doc-amber);
}

.doc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ezw-doc-border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--ezw-doc-surface);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ezw-doc-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3fa;
  color: var(--ezw-doc-ink);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #e9eef5;
  color: #1d2b41;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--ezw-doc-code);
  color: var(--ezw-doc-code-text);
  white-space: pre;
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.doc-warning {
  border-left: 4px solid var(--ezw-doc-amber);
  background: var(--ezw-doc-soft-amber);
}

.doc-success {
  border-left: 4px solid var(--ezw-doc-green);
  background: var(--ezw-doc-soft-green);
}

.doc-danger {
  border-left: 4px solid var(--ezw-doc-red);
  background: #fff0ee;
}

.doc-list {
  padding-left: 20px;
}

.doc-list li {
  margin-bottom: 8px;
}

.doc-footer {
  padding: 28px 0 46px;
  color: var(--ezw-doc-muted);
  text-align: center;
}

.tester-form {
  display: grid;
  gap: 12px;
}

.tester-form label {
  display: grid;
  gap: 6px;
  color: var(--ezw-doc-muted);
  font-weight: 700;
}

.tester-form input,
.tester-form select,
.tester-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--ezw-doc-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ezw-doc-ink);
  font: inherit;
}

.tester-form textarea {
  min-height: 120px;
  resize: vertical;
}

.tester-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button.doc-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 880px) {
  .doc-topbar-inner,
  .doc-hero-grid,
  .doc-layout,
  .doc-grid,
  .doc-grid-three {
    grid-template-columns: 1fr;
  }

  .doc-topbar-inner {
    display: grid;
    padding: 12px 0;
  }

  .doc-nav {
    justify-content: flex-start;
  }

  .doc-sidebar {
    position: static;
  }

  .doc-section {
    padding: 22px;
  }
}
