/* ==========================================================================
   Split Image — reading pages.

   The guides, the legal page and the error pages. One narrow column, a table
   of contents where the page is long enough to need one, and no workspace.
   ========================================================================== */

.page-wrap { padding: 34px 0 10px; }
.page-head { max-width: 68ch; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 12px; }
.page-head .lede { color: var(--ink-2); font-size: 1.04rem; }
.page-head .updated { font: 500 0.8rem var(--font-mono); color: var(--ink-3); margin: 0; }

/* table of contents */
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 30px; max-width: 68ch;
}
.toc h2 { font: 600 0.72rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 0.9rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* legal sections get a little more air than a tool article does */
.prose section { margin-bottom: 30px; scroll-margin-top: 20px; }
.prose section:last-child { margin-bottom: 0; }

/* the band of tool links that closes a guide */
.cta {
  margin: 34px 0 0; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.cta h2 { font-size: 1.2rem; margin-bottom: 4px; }
.cta p { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 16px; }

/* error pages */
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.error-actions .btn { width: auto; }

.tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tool-list a {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 0.9rem;
}
.tool-list a:hover { border-color: var(--accent); color: var(--ink); }
.tool-list svg { width: 17px; height: 17px; flex: none; color: var(--accent); }
