/* surveyplan.pro/help — same drafting paper as the home page. The videos are drawing sheets
   with a title block; the articles read like a spec book. */
.help-head { padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 48px) 24px; }
.help-head p { font-size: 19px; color: var(--ink-soft); }
.find { max-width: 560px; margin-top: 20px; }
.find label { display: block; font-weight: 600; margin-bottom: 8px; }
.find input { width: 100%; font: 18px var(--body); padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 6px; }
.find input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* videos: four drawing sheets */
.videos { padding: 8px clamp(16px, 4vw, 48px) clamp(32px, 5vw, 56px); }
.videos h2 { font-size: 26px; }
.sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.sheet-v { margin: 0; background: #fff; border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 10px 12px 0 rgba(20, 35, 58, .07); }
.sheet-v video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); }
.sheet-v figcaption { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--ink); }
.sheet-v .no { grid-row: span 2; display: flex; align-items: center; padding: 0 14px; font: 600 20px/1 var(--display); color: var(--blue); border-right: 1px solid var(--ink); }
.sheet-v .t { padding: 9px 12px 2px; font: 600 18px/1.2 var(--display); }
.sheet-v .d { padding: 0 12px 11px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }

/* articles */
.library { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.index { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding-right: 6px; }
.index summary { display: none; }
.index h2 { font-size: 15px; color: var(--ink-soft); margin: 18px 0 6px; }
.index h2:first-of-type { margin-top: 0; }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.index li a:hover { color: var(--blue); border-left-color: var(--blue); }
.index li a[aria-current] { color: var(--blue); border-left: 4px solid var(--blue); padding-left: 10px; font-weight: 600; }

.reader { min-width: 0; }
.article { scroll-margin-top: 84px; }
.article:focus { outline: none; }
.article h2 { font-size: clamp(28px, 3vw, 38px); max-width: 26ch; }
.crumb { margin: 0 0 8px; font-size: 14px; color: var(--blue); font-weight: 600; }
.body { max-width: 70ch; }
.body p, .body li { max-width: 70ch; }
.body h3 { font-size: 21px; margin-top: 1.5em; }
.body ul, .body ol { padding-left: 1.3em; }
.body li { margin: .35em 0; }
.body code, .body kbd { font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; background: #e3e9ee; border-radius: 4px; padding: 1px 5px; }
.body table { border-collapse: collapse; margin: 1em 0 1.4em; font-size: 15px; width: 100%; max-width: 70ch; display: block; overflow-x: auto; }
.body th, .body td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--rule); }
.body th { border-bottom: 2px solid var(--ink); font-weight: 600; }
.body .tip { border-left: 4px solid var(--cable); background: rgba(31, 157, 98, .08); padding: 10px 14px; margin: 1em 0; max-width: 70ch; border-radius: 0 6px 6px 0; }
.body .muted { color: var(--ink-soft); font-size: 15px; }
.body img { border: 1px solid var(--rule); border-radius: 6px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 70ch; }
.pager a { text-decoration: none; color: var(--ink); font: 600 17px/1.25 var(--display); }
.pager a span { display: block; font: 14px var(--body); color: var(--ink-soft); margin-bottom: 2px; }
.pager a[rel="next"] { text-align: right; grid-column: 2; }
.pager a:hover { color: var(--blue); }

.results .count { color: var(--ink-soft); }
.results ol { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
.results li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.results li a { font: 600 20px/1.2 var(--display); text-decoration: none; }
.results li p { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); }

@media (max-width: 980px) {
  .library { grid-template-columns: 1fr; }
  .index { position: static; max-height: none; overflow: visible; padding: 0; }
  .index summary { display: block; cursor: pointer; font: 600 18px/1 var(--display); padding: 13px 14px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; }
  .index details[open] summary { margin-bottom: 12px; }
}
