/* ==========================================================================
   Fivicon Docs — sidenav + scrollspy article layout.
   Reuses styles.css tokens (--bg0, --panel, --border, --text, --teal…) so it
   matches the marketing site's chrome; this file only adds the docs layout.
   ========================================================================== */

.fdBody {
  background: var(--bg0);
  color: var(--text);
}

.fdShell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
@media (max-width: 860px) {
  .fdShell { grid-template-columns: 1fr; padding: 20px 16px 56px; }
}

.fdNav {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 18px;
  border-right: 1px solid var(--border2);
}
@media (max-width: 860px) {
  .fdNav { position: static; max-height: none; border-right: none; padding: 0 0 20px; margin-bottom: 12px; border-bottom: 1px solid var(--border2); }
}

.fdNavGroup { margin-bottom: 22px; }
.fdNavLabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-bottom: 8px;
}
.fdNavItem {
  display: block;
  padding: 6px 10px;
  margin: 0 0 2px -10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.fdNavItem:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.fdNavItem.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--teal);
}

.fdContent { min-width: 0; padding-left: 32px; }
@media (max-width: 860px) { .fdContent { padding-left: 0; } }

.fdArticle { max-width: 760px; }

.fdSection { padding: 34px 0; border-top: 1px solid var(--border2); }
.fdSection:first-child { padding-top: 0; border-top: none; }

.fdKicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 10px;
}
.fdTitle { font-size: 34px; margin: 0 0 12px; line-height: 1.15; }
.fdLead { font-size: 17px; color: var(--muted); margin: 0 0 6px; }

.fdSection h2 {
  font-size: 20px;
  margin: 0 0 14px;
  scroll-margin-top: 88px;
}
.fdSection p { color: var(--muted); line-height: 1.65; margin: 0 0 14px; }
.fdSection p strong { color: var(--text); font-weight: 600; }
.fdSection p em { color: var(--text); font-style: normal; }
.fdSection a { color: var(--teal3); text-decoration: underline; text-underline-offset: 2px; }

.fdList { margin: 0 0 14px; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.fdList li { margin-bottom: 8px; }
.fdList strong { color: var(--text); }

.fdMono {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--teal3);
}

.fdHint { font-size: 13px; color: var(--faint); }

/* ---------- Code blocks ---------- */

.fdCode {
  position: relative;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 16px 44px 16px 16px;
  margin: 0 0 16px;
  overflow-x: auto;
  box-shadow: var(--shadow2);
}
.fdCode code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--teal2);
  white-space: pre;
}
.fdCodeCopyBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}
.fdCodeCopyBtn:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

/* ---------- Table ---------- */

.fdTableWrap { overflow-x: auto; margin-bottom: 12px; }
.fdTable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fdTable th, .fdTable td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border2);
  vertical-align: top;
}
.fdTable th { color: var(--faint); font-weight: 500; text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; }
.fdTable td { color: var(--muted); }
.fdTable td:first-child { white-space: nowrap; }
