/* Product docs — extends marketing styles.css */

.docs-body {
  min-height: 100vh;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 40px;
  padding: 48px 0 80px;
  position: relative;
  z-index: 1;
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.docs-nav-kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.docs-nav a {
  display: block;
  padding: 8px 10px;
  margin: 0 -4px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.docs-nav a:hover {
  color: var(--ink);
  background: rgba(232, 122, 31, 0.08);
}

.docs-nav a.is-active {
  color: var(--ink);
  background: rgba(232, 122, 31, 0.14);
  font-weight: 600;
}

.docs-article {
  min-width: 0;
  padding: 8px 8px 40px;
}

.docs-article > .eyebrow {
  margin-bottom: 8px;
}

.docs-article h1 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  line-height: 1.15;
}

.docs-article h2 {
  margin: 2.2rem 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.docs-article h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.1rem;
}

.docs-article p,
.docs-article li {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

.docs-article p {
  margin: 0 0 1rem;
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.docs-article li + li {
  margin-top: 0.35rem;
}

.docs-article a {
  color: var(--orange-2);
  font-weight: 500;
}

.docs-article code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(28, 25, 23, 0.06);
}

.docs-hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.docs-figure {
  margin: 1.5rem 0 1.75rem;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.docs-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
}

.docs-figure figcaption {
  margin-top: 10px;
  padding: 0 4px 2px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Tall screenshots (Help panel, Shelves rail): sit beside prose/table on desktop */
.docs-split {
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 1.5rem 0 1.85rem;
}

.docs-split > .docs-figure {
  margin: 0;
}

.docs-figure-portrait img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.docs-split-prose > :first-child {
  margin-top: 0;
}

.docs-split-prose > :last-child {
  margin-bottom: 0;
}

.docs-split-prose .docs-table-wrap {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.docs-callout {
  margin: 1.25rem 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(80, 48, 16, 0.06);
}

.docs-callout-tip {
  border-color: rgba(232, 122, 31, 0.35);
  background: linear-gradient(135deg, rgba(232, 122, 31, 0.1), #fffdf8 55%);
}

.docs-callout-note {
  border-color: rgba(28, 25, 23, 0.12);
  background: #fff9f1;
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.docs-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.docs-table-wrap th,
.docs-table-wrap td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.docs-table-wrap th {
  font-weight: 600;
  background: rgba(232, 122, 31, 0.08);
}

.docs-table-wrap tr:last-child td {
  border-bottom: none;
}

.docs-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.docs-index-card {
  display: block;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.docs-index-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 122, 31, 0.45);
}

.docs-index-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--ink);
}

.docs-index-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .docs-nav {
    position: static;
  }

  .docs-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .docs-figure-portrait img {
    max-width: 220px;
  }
}
