:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --text: #1f2933;
  --muted: #5d6b7a;
  --line: #d8dee6;
  --surface: #ffffff;
  --accent: #116466;
  --accent-dark: #0b4547;
  --code-bg: #edf2f7;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-dark);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 700;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.page-title {
  margin-bottom: 28px;
}

.page-title p {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.page-title span {
  display: block;
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.content {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow-x: auto;
}

.content h1:first-child {
  margin-top: 0;
}

.content h1,
.content h2,
.content h3 {
  line-height: 1.2;
}

.content h2 {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.doc-card {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--text);
  text-decoration: none;
}

.doc-card:hover {
  border-color: var(--accent);
}

.doc-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14px;
}

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

th {
  background: #eef4f4;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--code-bg);
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: #172026;
  color: #e7edf3;
}

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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