/*
 * Docs site styles. Propshaft bundles every file in this directory, so this needs no manifest entry.
 *
 * Article bodies (app/views/docs/show.html.erb) render into the SAME `.prose` scope blog.css already
 * defines — code blocks, tables, headings, inline code all need the identical treatment for docs
 * prose as for post prose, so this file does not redefine it. This file loading after blog.css is
 * not required (there's no override here), but `.prose` itself lives in blog.css and this file
 * depends on it existing; don't delete blog.css without moving `.prose` somewhere both can reach.
 *
 * Everything below uses Terminal tokens from application.css — no new colors, no new fonts.
 */

/* ------------------------------------------------------------- Two-column layout ------ */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------- Sidebar ------ */
.docs-sidebar { position: sticky; top: 24px; }
@media (max-width: 860px) { .docs-sidebar { position: static; } }

.docs-sidebar__category { margin-bottom: 8px; }
.docs-sidebar__category > summary { font-family: var(--font-mono); font-size: 13px; }

.docs-sidebar__pages { list-style: none; margin: 0; padding: 0; }
.docs-sidebar__pages li { margin: 0; }

.docs-sidebar__page {
  display: block;
  padding: 7px 0 7px 16px;
  font-size: 14px;
  color: var(--muted);
  border-left: 1px solid var(--border-soft);
}
.docs-sidebar__page:hover { color: var(--bone-bright); }
.docs-sidebar__page.is-active {
  color: var(--spark);
  border-left-color: var(--spark);
  font-weight: 500;
}

/* --------------------------------------------------------------- Breadcrumb ------ */
.docs-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.docs-breadcrumb a { color: var(--muted); }
.docs-breadcrumb a:hover { color: var(--bone-bright); }

/* -------------------------------------------------------------------- Pager ------ */
.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.docs-pager__link {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.docs-pager__link:hover { border-color: var(--spark-border); }
.docs-pager__link--next { text-align: right; grid-column: 2; }
.docs-pager__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.docs-pager__title { color: var(--bone-bright); font-size: 15px; }

@media (max-width: 520px) {
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager__link--next { grid-column: 1; text-align: left; }
}

/* ------------------------------------------------------------- Index & category ------ */
.docs-category-card .card__title a { color: var(--bone-bright); }
.docs-category-card .card__title a:hover { color: var(--spark); }
.docs-category-card__count {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}
