/* EDYN whitepaper page — editorial layer over the site design system. */

.paper-body { background: var(--bg); }

.paper {
  max-width: 44rem;
  margin: 0 auto;
  padding: 150px var(--pad) 120px;
}

.paper-head { margin-bottom: 72px; }
.paper-head h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 640;
  margin-bottom: 16px;
}
.paper-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.paper-notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 12px;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--bg-raise) 70%, transparent);
}
.paper-notice p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.paper-notice strong { color: var(--ink); font-weight: 570; }

.paper section { margin-bottom: 64px; }

.paper h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 620;
  margin-bottom: 22px;
  display: flex; align-items: baseline; gap: 14px;
}
.sec-n { font-size: 0.8rem; color: var(--accent-ink); letter-spacing: 0.1em; }

.paper p { color: var(--muted); margin-bottom: 1.2em; text-wrap: pretty; }
.paper p:last-child { margin-bottom: 0; }
.paper strong { color: var(--ink); font-weight: 570; }
.paper em { font-style: italic; }
.paper code { font-size: 0.85em; color: var(--ink); background: var(--line-soft); border-radius: 6px; padding: 2px 7px; }

.paper-ol, .paper-ul { margin: 0 0 1.2em 1.3em; }
.paper-ol li, .paper-ul li { color: var(--muted); margin-bottom: 0.8em; padding-left: 6px; text-wrap: pretty; }
.paper-ol li::marker { color: var(--accent-ink); font-weight: 550; font-size: 0.9em; }
.paper-ul { list-style: none; margin-left: 0; }
.paper-ul li { padding-left: 22px; position: relative; }
.paper-ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.94rem;
}
.paper-table th, .paper-table td {
  text-align: left;
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.paper-table thead th {
  font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
}
.paper-table tbody th { color: var(--faint); font-weight: 450; width: 34%; }
.paper-table td { color: var(--muted); }
.paper-table td:first-child { color: var(--ink); }

.paper-pipeline {
  font-size: 0.82rem;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 1.6em !important;
  overflow-x: auto;
  white-space: nowrap;
}

.paper-foot {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 88px;
}
.paper-foot p { color: var(--faint); font-size: 0.9rem; font-style: italic; }

/* ── Print / PDF ───────────────────────────────────────────────── */
@media print {
  .paper-nav { display: none; }
  .paper { padding: 0; max-width: none; }
  .paper section { break-inside: avoid-page; margin-bottom: 40px; }
  .paper-head { margin-bottom: 48px; }
  body { background: #fff; }
  :root {
    --bg: #fff; --ink: #111114; --muted: #3c3c44; --faint: #6b7280;
    --line: #d9dbe0; --line-soft: #eceef1; --accent-ink: #4338ca; --bg-raise: #fafafa;
  }
}
