/* Docs on top of the site's stylesheet: a guide list, numbered steps and framed screenshots. */
.doc-tag { font-weight: 600; font-size: .95rem; color: var(--ink-2); padding-left: 14px; border-left: 1px solid var(--line); }
.doc-spacer { flex: 1; }
.doc-out { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2); }
.doc-out:hover { color: var(--ink); }

.doc-grid { display: grid; gap: 24px; }
.doc-nav { display: grid; gap: 2px; align-content: start; }
.doc-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.doc-nav a:hover { background: rgba(23, 23, 23, .06); color: var(--ink); }
.doc-nav a[aria-current="page"] { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.doc-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cream-2); color: var(--ink); font-size: .8rem; font-weight: 700; }
.doc-nav a[aria-current="page"] .doc-num { background: var(--red); color: var(--white); }
@media (min-width: 900px) {
  .doc-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
  .doc-nav { position: sticky; top: 88px; }
}

.doc { max-width: 780px; min-width: 0; }
.doc h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-top: .1em; }
.doc h2 { scroll-margin-top: 88px; }
.doc code { font-size: .9em; background: var(--cream-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.doc pre { background: var(--black); color: var(--cream); padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; font-size: .88rem; line-height: 1.55; }
.doc pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
.doc figure { margin: 18px 0 28px; }
.doc figure img, .doc figure video { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.doc figure.narrow img { max-width: 520px; }
.doc figcaption { margin-top: 8px; font-size: .88rem; color: var(--ink-3); }
.doc .note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; }
.doc .note p { margin: 0; }
.doc-next { margin-top: 40px; }

.doc-cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.doc-card { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.doc-card:hover { border-color: var(--ink-3); }
.doc-card strong { font-size: 1.05rem; }
.doc-card span:last-child { grid-column: 2; color: var(--ink-2); font-size: .95rem; }

/* On a phone the guide comes first and the list of guides follows it. */
@media (max-width: 899px) { .doc-nav { order: 2; border-top: 1px solid var(--line); padding-top: 16px; } }
