/* Guide pages. The document styles started life inline in format.html; they are
   repeated here rather than pulled out of that page, because format.html is the
   one page other people are asked to cite and it should not depend on a
   stylesheet that might move. */

.doc { max-width: 820px; margin: 0 auto; padding: 0 24px 80px; }

.doc h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; margin: 38px 0 16px; }

.doc .lede {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 30px;
  max-width: 62ch;
}

.doc h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
}

.doc h3 { font-size: 16.5px; margin: 26px 0 9px; }
.doc p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }
.doc li { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-bottom: 7px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 18px; }

.doc code {
  font: 500 14px/1 var(--mono);
  background: var(--surface-2);
  padding: 2px 5px;
  border-radius: 2px;
  color: var(--ink);
}

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

.doc th {
  text-align: left;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px 9px 0;
  border-bottom: 1px solid var(--rule);
}

.doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2);
  vertical-align: top;
}

.doc td:first-child {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
}

/* A wide table has to scroll inside its own box, or the whole page scrolls
   sideways on a phone. */
.scroller { overflow-x: auto; margin: 0 0 18px; }
.scroller table { margin: 0; min-width: 520px; }

.note {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 16px 18px;
  border-radius: var(--radius);
  margin: 0 0 26px;
}

.note p { margin: 0; color: var(--ink); }
.note p + p { margin-top: 10px; }

/* Used where the honest answer is "this will not work", so it should not look
   like the rest of the prose. */
.limit {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--alert);
  background: var(--surface);
  padding: 16px 18px;
  border-radius: var(--radius);
  margin: 0 0 26px;
}

.limit p { margin: 0; color: var(--ink); }
.limit p + p { margin-top: 10px; }

.crumbs {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 30px 0 0;
}

.crumbs a { color: var(--muted); }

/* The guide index, and the "more guides" block at the foot of each page. */
.guide-list { list-style: none; padding: 0; margin: 0 0 10px; }

.guide-list li {
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
  margin: 0;
}

.guide-list li:last-child { border-bottom: 1px solid var(--rule-soft); }

.guide-list .t {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.guide-list a .t { color: var(--accent); }
.guide-list .d { display: block; font-size: 15px; line-height: 1.6; color: var(--muted); }

.cta {
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 40px 0 0;
}

.cta h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 20px; }
.cta p { margin: 0 0 16px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.fineprint { margin-top: 34px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 700px) {
  .doc h1 { font-size: 28px; }
  .doc { padding: 0 18px 60px; }
}
