/* DiffPixel reference pages (Manual / Privacy) — deliberately plain.
   Out of scope for the site's editorial/motion design system: these are
   task-focused documents, not a showcase. No drift-title, no scroll motion,
   no oversized display type, no decorative instrument blocks. base.css still
   supplies shared tokens, fonts, header, footer, and buttons. */

body { line-height: 1.75; }

[data-lang-panel] { display: none; }
[data-lang-panel].active { display: block; }

.doc {
  max-width: 760px;
  padding-block: 136px 120px;
}

.doc-head {
  margin-bottom: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.doc-head .eyebrow { margin-bottom: 18px; }

.doc-head h1 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.doc-meta {
  margin-bottom: 20px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.doc-lead {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 60px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.doc-toc a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.doc-toc a:hover,
.doc-toc a:focus-visible { color: var(--cyan); text-decoration-color: currentColor; }

.doc section { margin-bottom: 46px; }
.doc section:last-of-type { margin-bottom: 0; }

.doc h2 {
  margin-bottom: 14px;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.35;
  letter-spacing: -.01em;
}

.doc h3 {
  margin: 32px 0 12px;
  font-size: 18px;
}

.doc p,
.doc li {
  max-width: 68ch;
  color: var(--muted);
  font-size: 16px;
}

.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 1.25em; }
.doc li { margin-block: 6px; }
.doc strong { color: var(--text); }
.doc code, .doc kbd { font-family: var(--mono); }

.doc a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc a:hover,
.doc a:focus-visible { color: var(--text); }

.doc-note {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--pink);
  background: var(--surface);
  font-size: 15px;
}

.doc-media {
  margin: 20px 0 0;
  max-width: 560px;
}

.doc-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.doc-media figcaption {
  margin-top: 10px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.doc-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 15px;
}

.doc-table th,
.doc-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doc kbd {
  display: inline-block;
  min-width: 24px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--cyan);
  font-size: 12px;
  text-align: center;
}

.doc-links {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.site-footer { padding-block: 70px 34px; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 40px, 760px); }
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand span { display: none; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-cta { min-height: 44px; padding-inline: 12px; font-size: 10px; letter-spacing: .02em; }
  .doc { padding-block: 106px 90px; }
  .doc-head { margin-bottom: 44px; }
  .doc-table { font-size: 13px; }
  .doc-table th, .doc-table td { padding: 10px 8px; }
  .footer-meta { flex-direction: column; }
}
