/* =========================================
   Design Tokens
========================================= */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f5f5f;
  --border: #ececec;
  --link: #111111;

  --max-width: 720px;

  --radius: 8px;
}

/* =========================================
   Base Reset
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================
   Layout
========================================= */
.container {
  width: 100%;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.doc {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 72px;
}

/* =========================================
   Header / Navigation
========================================= */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

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

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 72px;
  width: auto;
  display: block;
}

.brand:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

/* =========================================
   Typography
========================================= */
.doc h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 600;
}

.doc h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 12px;
  font-weight: 600;
}

.doc h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}

.doc p {
  margin: 0 0 16px;
  color: var(--text);
}

.doc strong {
  font-weight: 600;
}

.doc em {
  color: var(--muted);
}

/* Lists */
.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

/* Links */
.doc a {
  color: var(--link);
  text-decoration: underline;
}

.doc a:hover {
  opacity: 0.7;
}

/* =========================================
   Content Elements
========================================= */
.doc hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.doc blockquote {
  margin: 24px 0;
  padding-left: 16px;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

/* Code (in case you add help/dev content later) */
.doc code {
  background: #f6f6f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.doc pre {
  background: #f6f6f6;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
}

/* Tables */
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.doc th,
.doc td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.doc th {
  font-weight: 600;
}

/* =========================================
   Help / FAQ Components (future-proof)
========================================= */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* =========================================
   Utilities
========================================= */
.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 640px) {
  .site-header .container {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .doc {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .doc h1 {
    font-size: 1.75rem;
  }

  .doc h2 {
    font-size: 1.25rem;
  }
}
