/* Current manual additions: inherit the site's light/dark palette. */
.wt-manual { min-width: 0; }
.wt-manual p, .wt-manual li { line-height: 1.85; }
.wt-manual h3 { margin-top: 32px; scroll-margin-top: 90px; }
.wt-manual section { scroll-margin-top: 90px; }
.wt-guide-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 24px 0; }
.wt-guide-cards article { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 16px; padding: 20px; }
.wt-guide-cards h3 { margin-top: 0; }
.wt-guide-steps { padding-left: 1.5em; }
.wt-guide-steps li { padding-left: 6px; margin: 14px 0; }
.wt-guide-table { width: 100%; overflow-x: auto; margin: 24px 0; }
.wt-guide-table table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.wt-guide-table th, .wt-guide-table td { padding: 16px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.wt-guide-table th:first-child, .wt-guide-table td:first-child { width: 28%; }
.wt-guide-table th { background: var(--accent-wash); }
.wt-page .wt-guide-screen { max-width: 320px; margin: 28px auto; }
.wt-page .wt-guide-screen.wide { max-width: 900px; }
.wt-guide-screen img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rule-soft); }
.wt-guide-screen figcaption { color: var(--graphite); font-size: 14px; line-height: 1.65; margin-top: 12px; }
.wt-guide-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.wt-guide-remote { max-width: 640px; padding: 18px; border: 1px solid var(--rule-soft); border-radius: 18px; background: var(--surface); margin: 24px auto; }
.wt-guide-row { display: grid; gap: 8px; margin: 8px 0; }
.wt-guide-row.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.wt-guide-row.five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.wt-guide-row > span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: 8px 2px; text-align: center; border: 1px solid var(--rule); border-radius: 12px; background: var(--accent-wash); color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.wt-guide-row small { display: block; font-size: 12px; font-weight: 400; margin-top: 6px; }
.wt-guide-remote > p { font-size: 14px; color: var(--graphite); margin-bottom: 0; }
.wt-guide-update { border: 1px solid var(--rule-soft); border-radius: 16px; padding: 18px 24px; background: var(--accent-wash); }
.wt-guide-jumps { display: flex; gap: 10px 20px; flex-wrap: wrap; margin: 14px 0 0; }
.wt-guide-jumps a { padding: 5px 0; font-weight: 600; }
@media(max-width:600px) {
 .wt-manual { font-size: 17px; }
 .wt-guide-cards, .wt-guide-gallery { grid-template-columns: 1fr; }
 .wt-guide-table th, .wt-guide-table td { padding: 12px 8px; font-size: 16px; }
 .wt-guide-table th:first-child, .wt-guide-table td:first-child { width: 30%; }
 .wt-guide-remote { padding: 10px; }
 .wt-guide-row { gap: 5px; }
 .wt-guide-row > span { font-size: 12px; }
 .wt-guide-row small { font-size: 10px; }
}

/* Manual structure (generated by tools/build-windtouch-manual.py) */
.wt-toc ol { list-style: none; margin: 0; padding: 0; }
.wt-toc li a { display: block; padding: 6px 0; font-size: 14px; }
.wt-toc a[aria-current="page"] { font-weight: 700; color: var(--accent-ink); }
.wt-toc .wt-toc-extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule-soft); }
.wt-quick { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: wtq; }
.wt-quick li { counter-increment: wtq; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--rule-soft); border-radius: 16px; background: var(--surface); }
.wt-quick li > strong:first-child { font-size: 18px; }
.wt-quick li > strong:first-child::before { content: counter(wtq) ". "; color: var(--accent-ink); }
.wt-quick li > a { margin-top: auto; font-weight: 600; }
.wt-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.wt-pager a { font-weight: 600; }
.wt-pager .next { margin-left: auto; text-align: right; }
@media(max-width:900px) { .wt-quick { grid-template-columns: 1fr; } }

/* Intro: what WindTouch is */
.wt-intro-hero { margin: 8px 0 24px; }
.wt-intro-hero img { display: block; width: 100%; height: auto; border-radius: 16px; }
.wt-intro-hero figcaption { margin-top: 8px; font-size: 14px; color: var(--graphite); }
.wt-intro-flow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; }
.wt-intro-flow > span { padding: 12px 18px; border: 1px solid var(--rule-soft); border-radius: 14px; background: var(--surface); font-weight: 700; text-align: center; }
.wt-intro-flow > span small { display: block; font-weight: 400; font-size: 13px; color: var(--graphite); }
.wt-intro-flow > i { font-style: normal; color: var(--accent-ink); font-weight: 700; text-align: center; }
.wt-intro-flow > i small { display: block; font-size: 12px; font-weight: 600; }
.wt-intro-cards article img { display: block; width: 100%; height: 300px; object-fit: contain; background: #e2e8e4; border-radius: 12px; margin-bottom: 14px; }
@media(max-width:600px) { .wt-intro-cards article img { height: 260px; } .wt-intro-flow { gap: 8px; } }
