:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #5d6875;
  --line: #d8dee4;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --code-bg: #eef2f6;
  --warn-bg: #fff8e6;
  --warn-line: #d7b56d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header-inner,
.site-footer-inner,
.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 8px;
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.page {
  padding: 42px 0 58px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 2.75rem;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

p {
  margin: 0 0 14px;
}

.lead {
  max-width: 68ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.meta-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag,
.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 13px;
  text-decoration: none;
}

.tag {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.panel,
.feature,
.doc-grid a,
.related-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel {
  overflow: hidden;
}

.panel-title {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

pre {
  margin: 0 0 18px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code-bg);
  padding: 16px;
}

.panel pre {
  border-radius: 0;
  margin: 0;
}

code {
  font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.section {
  margin-top: 34px;
}

.two-column,
.feature-grid,
.doc-grid,
.related-grid {
  display: grid;
  gap: 16px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
  padding: 16px;
}

.feature p {
  color: var(--muted);
}

.doc-grid,
.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-grid a,
.related-grid a {
  display: block;
  min-height: 54px;
  padding: 13px 14px;
  color: var(--ink);
  text-decoration: none;
}

.doc-grid span,
.related-grid span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  background: var(--warn-bg);
  padding: 14px 16px;
  color: #694300;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

th,
td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
}

th {
  background: var(--code-bg);
}

@media (max-width: 820px) {
  .site-header-inner,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

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

  .hero,
  .two-column,
  .feature-grid,
  .doc-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.15rem;
  }
}
