/* EDYOU OS — documentation page */
.doc-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* ---------- Sidebar ---------- */
.doc-side {
  border-right: 1px solid var(--line-1);
  background: var(--bg-2);
  padding: 40px 20px 48px;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.doc-side-sec { margin-bottom: 32px; }
.doc-side-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 12px;
  margin-bottom: 10px;
}
.doc-side a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.doc-side a:hover { color: var(--ink-1); background: rgba(144, 170, 210, 0.06); }
.doc-side a.active {
  color: var(--accent-3);
  background: var(--accent-soft);
}

/* ---------- Content ---------- */
.doc-main {
  padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 72px) 96px;
  max-width: 880px;
  min-width: 0;
}
.doc-main h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.doc-crumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.doc-main h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 56px 0 18px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.doc-main h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 34px 0 12px;
}
.doc-main p { color: var(--ink-2); margin-bottom: 16px; line-height: 1.8; }
.doc-main p strong { color: var(--ink-1); font-weight: 600; }
.doc-main ul, .doc-main ol { color: var(--ink-2); margin: 0 0 20px; padding-left: 24px; }
.doc-main li { margin-bottom: 10px; line-height: 1.7; }
.doc-main a { color: var(--accent-2); text-decoration: none; }
.doc-main a:hover { text-decoration: underline; }
.doc-intro { color: var(--ink-2); font-size: 1.06rem; line-height: 1.8; max-width: 66ch; }

/* Code */
.doc-main pre {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 18px 22px;
  overflow-x: auto;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ink-1);
}

/* Callout */
.callout {
  border-left: 3px solid var(--accent-2);
  background: var(--bg-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-1);
  margin-bottom: 8px;
}
.callout-title svg { width: 17px; height: 17px; color: var(--accent-2); }
.callout p { margin-bottom: 0; }

/* Installation steps */
.install-steps {
  list-style: none;
  counter-reset: istep;
  margin: 0 0 24px;
}
.install-steps li {
  counter-increment: istep;
  padding: 0 0 10px 42px;
  position: relative;
  margin-bottom: 26px;
}
.install-steps li::before {
  content: counter(istep) ".";
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-3);
}
.install-steps h4 { font-size: 1rem; margin-bottom: 6px; }
.install-steps p { margin-bottom: 10px; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color 0.15s ease;
}
.faq-item:hover { border-color: var(--line-3); }
.faq-item h3 { font-size: 1rem; margin: 0 0 10px; }
.faq-item p { font-size: 0.92rem; margin-bottom: 0; line-height: 1.65; }

/* Bottom nav */
.doc-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-1);
}
.doc-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  padding: 12px 18px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.doc-nav a:hover { border-color: var(--accent-2); color: var(--accent-3); }
.doc-nav a svg { width: 15px; height: 15px; }

/* Docs footer links reuse site.css */

@media (max-width: 900px) {
  .doc-shell { grid-template-columns: 1fr; }
  .doc-side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line-1); padding: 20px var(--gutter); }
  .doc-side-sec { margin-bottom: 0; }
  .doc-side-title { padding: 0; margin-top: 18px; }
  .doc-side-title:first-child { margin-top: 0; }
  .doc-side a { padding: 8px 10px; }
  .doc-side a.active { border-left: none; border-bottom: 2px solid var(--accent-2); border-radius: 0; }
  .doc-main { padding: 40px var(--gutter) 72px; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .req-grid { grid-template-columns: 1fr; }
  .doc-nav { flex-direction: column; }
}
