/* ============================================================
   FastConvert — SEO / documentation pages
   Extends styles.css ("Neon Spectrum") with long-form content
   components: breadcrumbs, prose, tables, callouts, link grids.
   ============================================================ */

/* ---------- page scaffold ---------- */
.doc { padding-top: 130px; padding-bottom: 40px; }

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.crumbs a { color: var(--dim); transition: color 0.25s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.crumbs [aria-current="page"] { color: var(--muted); }

.doc-head { max-width: 860px; }
.doc-title {
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 620;
}
.doc-lede {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.65;
  max-width: 62ch;
}

/* ---------- prose ---------- */
.doc-body { max-width: 860px; }
.doc-body > * + * { margin-top: 22px; }
.doc-body h2 {
  margin: 52px 0 0;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  scroll-margin-top: 110px;
}
.doc-body h3 {
  margin: 36px 0 0;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  scroll-margin-top: 110px;
}
.doc-body p, .doc-body li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.72;
}
.doc-body p strong, .doc-body li strong { color: var(--ink); font-weight: 600; }
.doc-body ul, .doc-body ol { padding-left: 22px; display: grid; gap: 9px; }
.doc-body li::marker { color: var(--violet); }
.doc-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(34, 211, 238, 0.35); transition: text-decoration-color 0.25s ease, color 0.25s ease; }
.doc-body a:hover { color: var(--ink); text-decoration-color: currentColor; }
.doc-body code, .doc-body kbd {
  font-family: 'Geist Mono', monospace;
  font-size: 0.86em;
  padding: 2px 7px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--lime);
}
.doc-body kbd { color: var(--ink); box-shadow: inset 0 -1.5px 0 rgba(255, 255, 255, 0.12); }

/* ---------- settings / spec table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.02); }
.stable { width: 100%; border-collapse: collapse; min-width: 520px; }
.stable caption { text-align: left; padding: 14px 18px 0; color: var(--dim); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.stable th, .stable td { padding: 13px 18px; text-align: left; font-size: 14px; line-height: 1.55; vertical-align: top; }
.stable thead th { color: var(--dim); font-weight: 600; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stable tbody tr + tr { border-top: 1px solid var(--line); }
.stable tbody th { color: var(--ink); font-weight: 550; white-space: nowrap; }
.stable td { color: var(--muted); }
.stable .mono, .stable code { font-family: 'Geist Mono', monospace; font-size: 12.5px; color: var(--lime); }

/* ---------- callout ---------- */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.09), rgba(34, 211, 238, 0.04));
}
.callout svg { flex: none; width: 19px; height: 19px; margin-top: 3px; color: var(--violet); }
.callout p { margin: 0; font-size: 14.5px; }
.callout.good { border-left-color: var(--lime); }
.callout.good svg { color: var(--lime); }
.callout.warn { border-left-color: #fb7185; }
.callout.warn svg { color: #fb7185; }

/* ---------- ordered how-to steps ---------- */
.howto { counter-reset: step; display: grid; gap: 14px; padding: 0; list-style: none; }
.howto li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.howto li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px; top: 17px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.howto li strong { display: block; margin-bottom: 4px; font-size: 15px; }

/* ---------- related-link cards ---------- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.link-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  transition: transform 0.4s var(--e-spring), border-color 0.3s ease, background 0.3s ease;
}
.link-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: rgba(255, 255, 255, 0.05); }
.link-card b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.link-card span { display: block; margin-top: 6px; color: var(--dim); font-size: 13.5px; line-height: 1.55; }

/* ---------- inline format chips inside prose ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- FAQ on doc pages ---------- */
.doc-faq { max-width: 860px; }
.doc-faq .faq { margin: 0; max-width: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .doc { padding-top: 108px; }
  .link-grid { grid-template-columns: 1fr; }
  .crumbs { font-size: 11px; }
}

/* ---------- document-page navigation ---------- */
.doc-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 18px 0 8px;
  background: linear-gradient(180deg, rgba(6,5,9,0.92), rgba(6,5,9,0.38), transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.doc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass);
}
.doc-nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.doc-nav nav > a:not(.btn) {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: var(--text-sm);
}
.doc-nav nav > a:not(.btn):hover {
  color: var(--ink);
  background: rgba(255,255,255,0.05);
}
.doc-footer { margin-top: 40px; }

@media (max-width: 620px) {
  .doc-nav nav > a:not(.btn) { display: none; }
  .doc-nav-inner { padding-left: 12px; }
}
