/* Generated by generate-addon-docs-web.ts — do not edit */
:root {
  color-scheme: light dark;
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7ecf3;
  --muted: #9aa7b8;
  --accent: #059669;
  --accent-soft: rgba(5, 150, 105, 0.15);
  --border: #2a3648;
  --code-bg: #111822;
  --link: #34d399;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #1a2332;
    --muted: #5c6b7f;
    --accent: #059669;
    --accent-soft: rgba(5, 150, 105, 0.1);
    --border: #d8e0ea;
    --code-bg: #eef2f7;
    --link: #047857;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--link); }
a:hover { text-decoration: none; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.site-brand:hover { color: var(--text); }

.site-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lang-switch a {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.85rem;
}

.lang-switch a.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 57px);
}

.sidebar {
  padding: 1.25rem 1rem 2rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
  overflow: auto;
}

.sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sidebar ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.sidebar li { margin: 0.2rem 0; }

.sidebar a {
  display: block;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-size: 0.92rem;
}

.sidebar a:hover { background: var(--accent-soft); }
.sidebar a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.content {
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 3rem;
  max-width: 52rem;
}

.content h1 {
  margin-top: 0;
  line-height: 1.2;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.content h2 {
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.content h3 { margin-top: 1.5rem; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.content th,
.content td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.content th { background: var(--surface); }

.content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  overflow: auto;
  font-size: 0.88rem;
}

.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.content :not(pre) > code {
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

.content blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.language-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.language-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.language-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.language-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.page-home .lang-switch { display: none; }

.home {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.home-hero {
  text-align: center;
  margin-bottom: 2.75rem;
}

.home-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.12;
}

.home-version {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
}

.home-version strong {
  color: var(--accent);
  font-weight: 700;
}

.home-lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-languages h2 {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.home-versions-note {
  margin: 2rem auto 0;
  max-width: 34rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
}

.home-versions-note a {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .language-grid { grid-template-columns: 1fr; }
}
