:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --bg: #f4f7f8;
  --ink: #0f172a;
  --muted: #667789;
  --line: #d8e2e7;
  --panel: #ffffff;
  --teal: #0f766e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.doc-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 248, 0.94);
  padding: 14px max(18px, calc((100vw - 980px) / 2));
  backdrop-filter: blur(12px);
}

.doc-header a {
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
}

.doc-header span {
  color: var(--muted);
  font-weight: 800;
}

.doc-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0;
}

.doc-content {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #1f2937;
  padding: 22px;
  font: 15px/1.75 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}
