:root {
  --ignite-red: #ec1c24;
  --text: #333333;
  --muted: #666666;
  --line: #e6e6e6;
  --soft: #f7f7f7;
  --code: #f1f1f1;
  --max-content: 920px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
}

a {
  color: var(--ignite-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 28px;
  background: #ffffff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.18), 0 0 4px rgba(0, 0, 0, 0.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--ignite-red);
  border-radius: 4px;
  font-size: 16px;
  transform: rotate(45deg);
}

.brand-mark::first-letter {
  transform: rotate(-45deg);
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.top-nav a {
  padding: 8px 12px;
  border-radius: 3px;
  color: var(--text);
}

.top-nav a:hover {
  color: var(--ignite-red);
  background: var(--soft);
  text-decoration: none;
}

.top-nav .language-switch {
  border: 1px solid var(--line);
  font-weight: 700;
}

.hero {
  min-height: 132px;
  display: flex;
  align-items: center;
  padding: 26px 32px;
  color: #f7f7f7;
  background:
    linear-gradient(90deg, rgba(35, 35, 35, 0.96), rgba(35, 35, 35, 0.72)),
    repeating-linear-gradient(135deg, #333333 0, #333333 10px, #3b3b3b 10px, #3b3b3b 20px);
  border-bottom: 4px solid var(--ignite-red);
}

.hero h1 {
  margin: 0;
  max-width: var(--max-content);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.hero p {
  margin: 8px 0 0;
  color: #dddddd;
}

.hero .eyebrow {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.docs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, var(--max-content)) 250px;
  gap: 34px;
  align-items: start;
  padding: 34px 28px 70px;
}

.left-nav,
.right-nav {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 18px 0;
  font-size: 14px;
}

.nav-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.left-nav a {
  display: block;
  padding: 8px 12px;
  border-left: 3px solid transparent;
  color: var(--text);
}

.left-nav a.active,
.left-nav a:hover {
  border-left-color: var(--ignite-red);
  background: var(--soft);
  color: var(--ignite-red);
  text-decoration: none;
}

.right-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.right-nav a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
}

.right-nav .h3 {
  padding-left: 14px;
}

.doc-content {
  min-width: 0;
}

.doc-content h1 {
  margin-top: 0;
}

.doc-content h2 {
  margin-top: 42px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.doc-content h3 {
  margin-top: 28px;
}

.doc-content code {
  padding: 0.1em 0.32em;
  border-radius: 3px;
  background: var(--code);
  font-size: 0.92em;
}

.doc-content pre {
  overflow: auto;
  padding: 16px;
  border-left: 3px solid var(--ignite-red);
  background: var(--code);
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.doc-content th,
.doc-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.doc-content th {
  background: var(--soft);
  text-align: left;
}

.doc-content blockquote {
  margin: 22px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--ignite-red);
  background: var(--soft);
}

@media (max-width: 1100px) {
  .docs-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .right-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header,
  .top-nav {
    flex-wrap: wrap;
  }

  .top-nav {
    width: 100%;
    margin-left: 0;
  }

  .docs-shell {
    grid-template-columns: 1fr;
    padding: 24px 18px 48px;
  }

  .left-nav {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--line);
  }
}
