/* ═══════════════════════════════════════════════════════════════════════════
   Descent Analysis — Clinical Reference Stylesheet
   No frameworks. No JavaScript. No tracking. 12 KB.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #fcfaf7;
  --text:      #1a1a1a;
  --text-dim:  #555;
  --accent:    #2c5282;
  --accent-bg: #e8edf3;
  --rule:      #d4d4d4;
  --table-row: #f7f5f1;
  --table-alt: #efede8;
  --max-width: 680px;
}

html { font-size: 18px; }

body {
  font-family: "Charter", "Georgia", "Times New Roman", serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  padding: 3rem 1.5rem 6rem;
}

article {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
}
nav a {
  color: var(--text-dim);
  border-bottom: none;
}
nav a:hover { color: var(--text); background: none; }

/* ── Typography ──────────────────────────────────────────────── */
h1 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 3rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  margin: 2rem 0 0.5rem;
}

p { margin-bottom: 1.2rem; }

em { font-style: italic; }
strong { font-weight: 600; }

/* ── Links ───────────────────────────────────────────────────── */
a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  transition: background 0.15s;
}
a:hover { background: var(--accent-bg); }

/* ── Tables ──────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

td {
  padding: 0.4rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

td:first-child {
  color: var(--text-dim);
  width: 150px;
  font-size: 0.8rem;
}

tr:nth-child(even) td { background: var(--table-alt); }
tr:nth-child(odd) td  { background: var(--table-row); }

/* ── Product Blocks ──────────────────────────────────────────── */
.product {
  margin: 2.5rem 0 3rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--rule);
}

.product h3 {
  font-style: normal;
  font-weight: 400;
  margin-top: 0;
  font-size: 1.12rem;
}

.product h3 a { font-weight: 500; }

.product .tag {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.5rem;
  font-style: normal;
}

.product p { font-size: 0.93rem; margin-bottom: 0.6rem; }

.product .best-for,
.product .downside {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dotted var(--rule);
}

/* ── Blockquote ──────────────────────────────────────────────── */
blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.2rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-dim);
}

/* ── Code ────────────────────────────────────────────────────── */
code {
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
  font-size: 0.85rem;
  background: #f0ede7;
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-item { margin-bottom: 1.4rem; }
.faq-item .q { font-weight: 500; margin-bottom: 0.15rem; }
.faq-item .a { color: var(--text-dim); font-size: 0.92rem; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: var(--text-dim);
}

footer p { margin-bottom: 0.5rem; }

/* ── Cross-reference ─────────────────────────────────────────── */
.see-also {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.see-also strong {
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  display: block;
  margin-bottom: 0.5rem;
}
.see-also a { font-size: 0.85rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  body { padding: 1.5rem 1rem 4rem; }
  h1 { font-size: 1.5rem; }
  td:first-child { width: 100px; }
  .product { padding-left: 0.6rem; }
}
