/* ============ User guide (templates/docs, scoped: dc-*) ============ */
/* Loaded after style.css; reuses the landing page tokens (--lp-*) and header. */

.dc { overflow-x: hidden; }
.dc-wrap { max-width: 1240px; }
.dc-hd-start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dc-tag { padding: 2px 10px; border-radius: 999px; background: var(--lp-primary-soft); color: var(--lp-primary); font-size: .78rem; font-weight: 600; text-decoration: none; }
.dc-burger { display: none; width: 36px; height: 36px; border: 1px solid var(--lp-border); border-radius: 8px; background: #fff; color: var(--lp-text); cursor: pointer; place-items: center; }

.dc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 64px; }

/* Sidebar */
.dc-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
.dc-search { width: 100%; height: 38px; margin-bottom: 18px; padding: 0 12px; border: 1px solid var(--lp-border); border-radius: 8px; background: #fff; color: var(--lp-text); font: inherit; font-size: .88rem; }
.dc-search:focus { border-color: var(--lp-primary); outline: 2px solid var(--lp-primary-soft); }
.dc-noresult { margin: 0 0 12px; color: var(--lp-muted); font-size: .86rem; }
.dc-group { margin-bottom: 18px; }
.dc-group-name { margin-bottom: 6px; padding: 0 10px; color: var(--lp-muted); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dc-nav { margin: 0; padding: 0; list-style: none; }
.dc-nav-link { display: block; padding: 6px 10px; border-radius: 8px; color: #374151; font-size: .9rem; text-decoration: none; }
.dc-nav-link:hover { background: #f3f4f6; color: var(--lp-text); }
.dc-nav-link.active { background: var(--lp-primary-soft); color: var(--lp-primary); font-weight: 500; }

/* Article */
.dc-main { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 40px; align-items: start; min-width: 0; }
.dc-article { min-width: 0; max-width: 760px; color: #374151; }
.dc-crumb { margin: 0 0 6px; color: var(--lp-primary); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dc-title { margin: 0; color: var(--lp-text); font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.dc-lead { margin: 10px 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--lp-border); color: var(--lp-muted); font-size: 1.05rem; }
.dc-article h2 { margin: 40px 0 12px; color: var(--lp-text); font-size: 1.3rem; font-weight: 600; scroll-margin-top: 84px; }
.dc-article h3 { margin: 26px 0 8px; color: var(--lp-text); font-size: 1.02rem; font-weight: 600; }
.dc-article p { margin: 0 0 14px; }
.dc-article a { color: var(--lp-primary); }
.dc-article ul, .dc-article ol { margin: 0 0 16px; padding-left: 22px; }
.dc-article ul { list-style: disc; }
.dc-article ol { list-style: decimal; }
.dc-article li { margin-bottom: 8px; }
.dc-article ul > li { list-style: disc; }
.dc-article ol > li { list-style: decimal; }
.dc-article .dc-steps > li { list-style: none; }
.dc-article li > ul { margin-top: 8px; margin-bottom: 0; }
.dc-article strong { color: var(--lp-text); font-weight: 600; }

/* Where to click: Settings > Video > Flow */
.dc-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--lp-border); border-radius: 10px; background: #f9fafb; font-size: .86rem; }
.dc-path-label { margin-right: 4px; color: var(--lp-muted); font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dc-path span:not(.dc-path-label), .dc-path a { padding: 2px 9px; border: 1px solid var(--lp-border); border-radius: 6px; background: #fff; color: var(--lp-text); font-weight: 500; text-decoration: none; }
.dc-path a:hover { border-color: var(--lp-primary); color: var(--lp-primary); }
.dc-path i { color: #9ca3af; font-style: normal; }

/* A button or field name as it appears on screen */
.dc-ui { padding: 1px 7px; border: 1px solid var(--lp-border); border-radius: 6px; background: #f9fafb; color: var(--lp-text); font-size: .88em; font-weight: 500; white-space: nowrap; }

/* Numbered steps */
.dc-steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: dcstep; }
.dc-article .dc-steps { padding-left: 0; list-style: none; }
.dc-steps > li { position: relative; margin: 0; padding: 0 0 18px 46px; counter-increment: dcstep; }
.dc-steps > li::before { content: counter(dcstep); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lp-primary-soft); color: var(--lp-primary); font-size: .88rem; font-weight: 600; }
.dc-steps > li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--lp-border); }
.dc-steps > li:last-child { padding-bottom: 0; }
.dc-steps > li:last-child::after { display: none; }
.dc-step-title { display: block; margin-bottom: 2px; padding-top: 3px; color: var(--lp-text); font-weight: 600; }

/* Notes */
.dc-note { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #c7d2fe; border-left-width: 3px; border-radius: 10px; background: var(--lp-primary-soft); color: #3730a3; font-size: .92rem; }
.dc-note.warn { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
.dc-note strong { color: inherit; }
.dc-article .dc-note a { color: inherit; font-weight: 500; }

/* Tables */
.dc-table-wrap { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--lp-border); border-radius: 10px; }
.dc-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: .9rem; }
.dc-table th, .dc-table td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--lp-border); font-size: .9rem; line-height: 1.55; text-align: left; vertical-align: top; }
.dc-table th { background: #f9fafb; color: var(--lp-text); font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.dc-table tr:last-child td { border-bottom: 0; }
.dc-table td { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.dc-table td:first-child { min-width: 150px; color: var(--lp-text); font-weight: 500; }

/* Topic cards on the first page */
.dc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.dc-card { display: block; padding: 14px 16px; border: 1px solid var(--lp-border); border-radius: 12px; background: #fff; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.dc-card:hover { border-color: #c7d2fe; box-shadow: 0 6px 18px rgba(79, 70, 229, .08); }
.dc-card strong { display: block; margin-bottom: 2px; color: var(--lp-text); font-size: .95rem; }
.dc-article .dc-card span { color: var(--lp-muted); font-size: .86rem; }

/* How a video is made */
.dc-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 0 0 20px; }
.dc-flow-item { flex: 1 1 110px; padding: 12px; border: 1px solid var(--lp-border); border-radius: 10px; background: #fff; text-align: center; }
.dc-flow-item b { display: block; color: var(--lp-text); font-size: .88rem; font-weight: 600; }
.dc-flow-item small { color: var(--lp-muted); font-size: .78rem; }
.dc-flow-arrow { align-self: center; color: #9ca3af; }

/* Previous / next */
.dc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--lp-border); }
.dc-pager-link { display: block; padding: 12px 16px; border: 1px solid var(--lp-border); border-radius: 10px; text-decoration: none; }
.dc-pager-link:hover { border-color: var(--lp-primary); }
.dc-pager-link.next { text-align: right; }
.dc-article .dc-pager-link span { display: block; color: var(--lp-muted); font-size: .78rem; }
.dc-pager-link strong { color: var(--lp-primary); font-weight: 500; }
.dc-help { margin: 24px 0 0; color: var(--lp-muted); font-size: .9rem; }

/* On this page */
.dc-toc { position: sticky; top: 84px; font-size: .84rem; }
.dc-toc-title { margin-bottom: 8px; color: var(--lp-muted); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dc-toc ul { margin: 0; padding: 0; border-left: 1px solid var(--lp-border); list-style: none; }
.dc-toc a { display: block; padding: 4px 12px; color: var(--lp-muted); text-decoration: none; }
.dc-toc a:hover { color: var(--lp-primary); }

@media (max-width: 1100px) {
  .dc-main { grid-template-columns: minmax(0, 1fr); }
  .dc-toc { display: none; }
}
@media (max-width: 820px) {
  .dc-burger { display: grid; }
  .dc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 20px; }
  .dc-side { position: static; display: none; max-height: none; margin-bottom: 20px; padding: 14px; border: 1px solid var(--lp-border); border-radius: 12px; background: #fff; }
  .dc-side.open { display: block; }
  .dc-cards { grid-template-columns: minmax(0, 1fr); }
  .dc-flow-arrow { display: none; }
  .dc .lp-btn-ghost { display: none; }
}
@media (max-width: 480px) {
  .dc-tag { display: none; }
  .dc-pager { grid-template-columns: minmax(0, 1fr); }
  .dc-pager-link.next { text-align: left; }
}

/* Full-text search results (sidebar) */
.dc-results { margin: -8px 0 16px; }
.dc-results-head { margin: 0 0 6px; color: var(--lp-muted); font-size: .78rem; font-weight: 500; }
.dc-results-list { margin: 0 0 14px; padding: 0; list-style: none; }
.dc-result { display: block; padding: 8px 10px; border-radius: 8px; color: var(--lp-text); text-decoration: none; }
.dc-result:hover, .dc-result:focus-visible { background: #f3f4f6; }
.dc-result-where { display: block; font-size: .84rem; font-weight: 500; color: var(--lp-primary); }
.dc-result-text { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.45; color: #4b5563; }
.dc-results mark, .dc-article mark { padding: 0 1px; border-radius: 3px; background: #fef08a; color: inherit; }
.dc-results-pages[hidden] { display: none; }
