/* Document styling for the user guide. Shares the instrument palette and
   primitives from styles.css. */

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

.guide {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 22px 72px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}

.lede {
  font-size: 15.5px;
  line-height: 1.7;
  color: #b7c6d6;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 26px;
}

/* ---------- contents ---------- */

.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px 16px;
  margin-bottom: 34px;
}

.toc h2 {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  border: 0;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 13.5px;
}

.toc li { margin: 2px 0; break-inside: avoid; }

/* ---------- headings ---------- */

.guide section { margin-bottom: 40px; scroll-margin-top: 18px; }

.guide h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #eaf2f9;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.guide h3 {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--accent);
  margin: 26px 0 8px;
}

.guide p { margin-bottom: 12px; }
.guide strong { color: #f0f6fb; font-weight: 600; }
.guide em { color: #cfe0ee; font-style: normal; font-weight: 500; }

.guide a { color: var(--accent); text-decoration: none; }
.guide a:hover { text-decoration: underline; }

/* ---------- definition lists ---------- */

.guide dl { margin: 0 0 8px; }

.guide dt {
  font-weight: 600;
  color: #f0f6fb;
  margin-top: 16px;
}

.guide dd {
  margin: 4px 0 0;
  padding-left: 16px;
  border-left: 1px solid var(--line-soft);
  color: #b7c6d6;
}

.hint-inline { font-weight: 400; color: var(--dim); font-size: 12.5px; }

/* ---------- lists ---------- */

.guide ul, .guide ol { margin: 0 0 12px; padding-left: 22px; }
.guide li { margin: 5px 0; }

ol.steps li { margin: 7px 0; padding-left: 4px; }
ol.steps li::marker { color: var(--accent); font-weight: 600; }

/* ---------- tables ---------- */

.guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 14px;
  font-size: 13.5px;
  display: block;
  overflow-x: auto;
}

.guide thead th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  padding: 7px 12px 7px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.guide tbody td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: #b7c6d6;
}

.guide tbody tr:last-child td { border-bottom: 0; }
.guide tbody td:first-child { color: var(--text); white-space: nowrap; padding-right: 20px; }
.guide table.keys tbody td:first-child { width: 130px; }

/* ---------- callouts ---------- */

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px 4px;
  margin: 16px 0 18px;
}

.callout p { color: #b7c6d6; }

/* ---------- inline bits ---------- */

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
}

.mono.ok { color: var(--ok); }
.mono.warn { color: #fbbf24; }
.mono.stop { color: var(--danger); }

.chip {
  display: inline-block;
  min-width: 17px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #05080c;
  border-radius: 3px;
  padding: 1px 5px;
}

.chip-ch1 { background: var(--ch1); }
.chip-ch2 { background: var(--ch2); }

.back { margin-top: 30px; }
.back .btn { display: inline-block; text-decoration: none; }

@media (max-width: 620px) {
  .toc ol { columns: 1; }
  .guide { padding: 20px 16px 56px; }
}
