/* ---- Full-height layout with a full-width footer ---- */
.doc-shell { display: flex; flex-direction: column; min-height: 100vh; }
.doc-shell > .shell { flex: 1 1 auto; min-height: 0; }
.doc-shell .sidebar { position: sticky; top: 0; bottom: auto; height: 100vh; align-self: flex-start; }
.doc-shell .main { margin-left: 0; }
@media (max-width: 900px) {
  .doc-shell .sidebar { position: fixed; inset: 0 auto 0 0; height: 100%; align-self: auto; }
  .doc-shell .main { margin-left: 0; }
}

/* ---- Footer ---- */
.site-footer { background: #000; color: #fff; }
.site-footer-inner { max-width: 1024px; margin: 0 auto; padding: 60px var(--gutter) 44px; display: flex; gap: 48px; flex-wrap: wrap; }
.foot-brand { flex: 1; min-width: 220px; }
.foot-brand img { height: 22px; width: auto; }
.foot-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.875rem; line-height: 1.55; margin: 16px 0 0; max-width: 300px; }
.foot-brand .foot-copy { margin-top: 18px; }
.foot-col h4 { font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.5); margin: 0 0 14px; }
.foot-col a { display: block; color: rgba(255, 255, 255, 0.9); font-size: 0.9375rem; text-decoration: none; margin-bottom: 11px; transition: opacity 140ms ease; }
.foot-col a:hover { opacity: 0.6; }

/* ---- Docs top nav: Docs is the CTA color, Account is black ---- */
.topnav-trigger { color: var(--fg) !important; }

/* ---- Docs landing home ---- */
.doc-home { max-width: 860px; }
.home-actions { display: flex; gap: 12px; margin: 26px 0 4px; }
.home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.home-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--hair); border-radius: 16px; padding: 24px 26px; transition: border-color 160ms ease, box-shadow 200ms ease, transform 200ms ease; }
.home-card:hover { border-color: var(--hair-2); box-shadow: 0 8px 28px -14px rgba(10, 10, 10, 0.22); transform: translateY(-1px); }
.home-card h3 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.home-card p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.home-card .arrow { display: inline-block; margin-top: 14px; color: var(--primary); font-size: 0.875rem; font-weight: 600; }
@media (max-width: 640px) { .home-grid { grid-template-columns: 1fr; } }

.doc { max-width: 760px; }
.doc-lead { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); margin: 0 0 10px; }
.doc p { font-size: 1rem; line-height: 1.7; color: rgba(10, 10, 10, 0.72); margin: 0 0 18px; }
.doc h2 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.01em; margin: 46px 0 14px; }
.doc h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; margin: 30px 0 10px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 20px; }
.doc li { font-size: 1rem; line-height: 1.7; color: rgba(10, 10, 10, 0.72); margin-bottom: 8px; }
.doc li::marker { color: rgba(10, 10, 10, 0.32); }
.doc a { color: var(--primary); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc strong { font-weight: 600; color: var(--fg); }
.doc p code, .doc li code, .doc td code, .doc h3 code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em;
  background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--fg);
}

.codeblock { position: relative; margin: 0 0 24px; }
.code-copy {
  position: absolute; top: 12px; right: 12px; height: 30px; padding: 0 12px; border-radius: 8px;
  border: 0; background: rgba(255, 255, 255, 0.85); font-family: inherit; font-size: 0.8125rem;
  font-weight: 500; color: var(--muted); cursor: pointer; transition: color 140ms ease;
}
.code-copy:hover { color: var(--fg); }
.doc .code { margin: 0; }

.doc-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.doc-table th { text-align: left; font-size: 0.8125rem; font-weight: 500; color: var(--faint); padding: 12px 18px 12px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.doc-table td { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--hair); font-size: 0.9375rem; line-height: 1.55; vertical-align: top; color: rgba(10, 10, 10, 0.72); }
.doc-table td:first-child { white-space: nowrap; color: var(--fg); }

.doc-next { display: flex; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); }
.doc-next a { text-decoration: none; color: inherit; }
.doc-next .k { font-size: 0.75rem; color: var(--faint); margin-bottom: 4px; }
.doc-next .v { font-size: 0.9375rem; font-weight: 600; color: var(--primary); }

@media (max-width: 640px) { .doc h2 { margin-top: 38px; } }
