/* Reading-focused help, isolated from project forms and maps. */
.docs-header { margin: 8px 0 32px; max-width: 820px; }
.docs-header .back-link { margin-bottom: 24px; }
.docs-header .page-title { font-size: clamp(32px, 4vw, 44px); }
.docs-lead { margin: 16px 0 24px; max-width: 68ch; font-size: 16px; line-height: 1.75; color: var(--app-muted); }
.docs-search-controls { display: flex; gap: 10px; }
.docs-search-controls input { flex: 1; min-width: 0; background: var(--app-surface); }
.docs-search-controls button { flex: none; }
#docs-search-status { margin: 8px 0 0; color: var(--app-muted); font-size: 12px; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 32px; }
.docs-sidebar { position: sticky; top: 88px; max-height: calc(100dvh - 112px); overflow-y: auto; padding: 2px 6px 6px 2px; }
.docs-index summary { padding: 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.docs-index ol { margin: 0; padding: 0; list-style: none; }
.docs-index a { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 7px; color: var(--app-muted); text-decoration: none; font-size: 13px; line-height: 1.4; }
.docs-index a span { flex: none; font-size: 11px; font-variant-numeric: tabular-nums; }
.docs-index a:hover, .docs-index a[aria-current] { color: var(--app-primary-dark); background: #e5edfb; }
.docs-start { margin: 18px 12px 0; }
.docs-content { min-width: 0; }
.docs-section, .docs-empty { padding: 32px; margin-bottom: 24px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--app-surface); overflow-wrap: anywhere; }
.docs-section, #docs-top { scroll-margin-top: 88px; }
.docs-section-number { margin-bottom: 10px; color: var(--app-primary-dark); font-size: 11px; letter-spacing: .08em; font-weight: 650; text-transform: uppercase; }
.docs-section h2, .docs-empty h2 { margin: 0 0 20px; font-size: clamp(22px, 2vw, 27px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.docs-section h3 { font-size: 18px; font-weight: 650; margin: 28px 0 12px; line-height: 1.4; }
.docs-section p, .docs-section li, .docs-section dd { font-size: 14px; line-height: 1.8; }
.docs-section p { margin-bottom: 16px; }
.docs-section > :last-child, .docs-note > :last-child { margin-bottom: 0; }
.docs-section ul, .docs-section ol { padding-left: 24px; margin-bottom: 18px; }
.docs-section li { padding-left: 4px; margin-bottom: 10px; }
.docs-section strong { font-weight: 650; }
.docs-section a { text-underline-offset: 3px; }
.docs-glossary { margin: 24px 0; }
.docs-glossary > div { display: grid; grid-template-columns: 125px minmax(0, 1fr); column-gap: 20px; }
.docs-glossary dt, .docs-glossary dd { padding: 12px 0; border-bottom: 1px solid var(--app-line); margin: 0; }
.docs-glossary dt { font-size: 14px; line-height: 1.8; font-weight: 650; }
.docs-note { margin: 24px 0; padding: 18px 20px; border-left: 3px solid var(--app-primary); background: #f1f5fc; border-radius: 0 8px 8px 0; }
.docs-note > strong { display: block; font-size: 14px; margin-bottom: 6px; }
.docs-note p { margin: 0; }
.docs-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--app-line); border-radius: 8px; margin: 20px 0; }
.docs-table { width: 100%; min-width: 520px; font-size: 13px; line-height: 1.7; }
.docs-table caption { caption-side: top; padding: 12px 16px; font-size: 12px; color: var(--app-muted); border-bottom: 1px solid var(--app-line); }
.docs-table th, .docs-table td { padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--app-line); }
.docs-table thead { background: #f2f5f9; }
.docs-table th { font-weight: 650; }
.docs-table th[scope=row] { min-width: 125px; }
.docs-table tr:last-child > * { border-bottom: 0; }
.docs-format-example { padding: 24px; margin: 20px 0; border: 1px dashed var(--app-line-strong); border-radius: 8px; }
.docs-format-example > div + div { margin-top: 16px; }
.docs-format-example span { display: block; margin-bottom: 4px; color: var(--app-muted); font-size: 11px; }
.docs-format-example .docs-example-h1 { font-size: 26px; font-weight: 750; margin: 0 0 6px; }
.docs-format-example .docs-example-h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.docs-format-example > :last-child { margin: 0; }
.docs-faq details { border-top: 1px solid var(--app-line); }
.docs-faq details:last-child { border-bottom: 1px solid var(--app-line); }
.docs-faq summary { padding: 18px 0; cursor: pointer; font-size: 14px; font-weight: 650; line-height: 1.6; }
.docs-faq details[open] summary { color: var(--app-primary-dark); }
.docs-faq details p { padding: 0 0 4px 18px; }
.docs-footer { margin: 32px 0; padding: 8px 0 16px; }
.docs-footer p { color: var(--app-muted); font-size: 14px; }
.docs-footer .btn { margin: 0 8px 8px 0; }
@media (max-width: 1023.98px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs-sidebar { position: static; max-height: none; padding: 0; }
  .docs-index { background: #fff; border: 1px solid var(--app-line); border-radius: 8px; }
  .docs-index summary { padding: 16px; }
  .docs-index nav { padding: 0 4px 8px; }
  .docs-start { margin: 12px 0 0; }
}
@media (max-width: 575.98px) {
  .docs-header { margin-bottom: 24px; }
  .docs-section, .docs-empty { padding: 20px 16px; }
  .docs-search-controls { flex-wrap: wrap; }
  .docs-search-controls input { flex-basis: 100%; }
  .docs-glossary > div { display: block; }
  .docs-glossary dt { border: 0; padding: 12px 0 0; }
  .docs-glossary dd { padding: 4px 0 12px; }
  .docs-note { padding: 16px; }
  .docs-format-example { padding: 16px; }
}
@media print {
  .app-navbar, .skip-link, .docs-sidebar, .docs-search, .docs-footer, .docs-header .back-link { display: none !important; }
  .docs-layout { display: block; }
  .docs-section[hidden] { display: block !important; }
  .docs-empty { display: none !important; }
  .docs-section { padding: 12px 0; border: 0; }
  .docs-table-wrap { overflow: visible; }
  .docs-table { min-width: 0; }
}
