/* Documentation styles. Builds on home.css (tokens) and blog.css (light nav,
   article typography). Adds a docs hub grid and framed screenshots. */

/* Two-column docs layout: persistent left nav + content. */
.doc-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); max-width: 1240px; margin: 0 auto; align-items: start; }
.doc-side { border-right: 1px solid var(--rule); align-self: stretch; }
.doc-side-inner { position: sticky; top: 0; padding: 32px 16px 40px; }
.doc-side-title { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; padding: 0 12px; }
.doc-side nav { display: flex; flex-direction: column; gap: 1px; }
.doc-side nav a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--soft); font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.doc-side nav a:hover { background: var(--bg-2); color: var(--ink); }
.doc-side nav a.active { background: var(--mist); color: var(--ink); font-weight: 600; }
.doc-main { min-width: 0; }
.doc-main .crumb { padding-left: 24px; padding-right: 24px; }
@media (max-width: 880px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { border-right: 0; border-bottom: 1px solid var(--rule); }
  .doc-side-inner { position: static; padding: 16px 12px; }
  .doc-side nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .doc-side nav a { font-size: 13.5px; padding: 7px 11px; background: var(--bg-2); }
}

.doc { max-width: 880px; margin: 0 auto; padding: 0 24px 90px; }
.doc-head { padding: 30px 0 8px; }
.doc-head h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--ink); }
.doc-head p { font-size: 18.5px; color: var(--soft); margin: 0; max-width: 60ch; }

.doc-body { font-size: 18px; line-height: 1.72; color: #2a3830; }
.doc-body h2 { font-size: 26px; line-height: 1.18; letter-spacing: -0.015em; margin: 52px 0 14px; color: var(--ink); padding-top: 8px; }
.doc-body h3 { font-size: 19px; margin: 30px 0 8px; color: var(--ink); }
.doc-body p { margin: 0 0 20px; }
.doc-body ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
.doc-body ul li { position: relative; padding-left: 24px; margin: 0 0 11px; }
.doc-body ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 999px; background: var(--sage); }
.doc-body a { color: var(--fern); text-decoration: underline; text-underline-offset: 2px; }
.doc-body strong { color: var(--ink); font-weight: 600; }

/* Framed screenshot */
figure.shot { margin: 24px 0 34px; }
/* Show the whole screenshot uncropped. Overrides blog.css `figure img` which
   forces a 16:9 crop with object-fit:cover. */
figure.shot img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; display: block; border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 30px 60px -40px rgba(31,43,37,0.5); background: var(--white); }
figure.shot figcaption { font-size: 13.5px; color: var(--faint); margin-top: 10px; text-align: center; }

/* On-this-page / step labels */
.doc-step { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin: 0 0 6px; }

/* Docs hub */
.hub { max-width: 980px; margin: 0 auto; padding: 8px 24px 90px; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hub-grid a { display: block; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 26px 26px; transition: border-color 0.2s ease, transform 0.2s ease; }
.hub-grid a:hover { border-color: var(--sage); transform: translateY(-2px); }
.hub-grid h2 { font-size: 19px; margin: 0 0 8px; color: var(--ink); letter-spacing: -0.01em; }
.hub-grid p { font-size: 15px; color: var(--soft); margin: 0; line-height: 1.5; }
.hub-grid .num { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); display: block; margin: 0 0 10px; }
@media (max-width: 680px) { .hub-grid { grid-template-columns: 1fr; } }

/* Prev / next between doc pages */
.doc-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 54px; border-top: 1px solid var(--rule); padding-top: 24px; }
.doc-pager a { text-decoration: none; color: var(--fern); font-weight: 500; font-size: 15.5px; }
.doc-pager a:hover { color: var(--fern-d); }
.doc-pager .nxt { margin-left: auto; text-align: right; }
