/* Docs site (www). Loaded after the shop's style.css. */
/* Install guide: photos and the embedded video. */
.guide figure { margin: 0.8rem 0 1.2rem; }
.guide figure img { width: 100%; max-width: 520px; border-radius: var(--radius); border: 1px solid var(--border); }
.guide figcaption { font-size: 0.8rem; color: var(--text-muted); }
.guide .video { position: relative; max-width: 720px; aspect-ratio: 16 / 9; }
.guide .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.doc-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 760px) { .doc-layout { grid-template-columns: 1fr; } }
.gallery-main { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.gallery-thumbs { display: flex; gap: 0.4rem; margin-top: 0.4rem; flex-wrap: wrap; }
.gallery-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--border); cursor: pointer; }
.gallery-thumbs img.active { border-color: var(--accent); }
.buy-card { position: sticky; top: calc(var(--nav-h) + 1rem); }
.buy-btn { display: block; text-align: center; padding: 0.7rem 1rem; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.buy-btn:hover { text-decoration: none; opacity: 0.9; }
.buy-offer { display: block; font-weight: 400; font-size: 0.85rem; opacity: 0.9; min-height: 1.2em; }
.buy-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.help-list { padding-left: 1.2rem; }
.help-list li { margin: 0.3rem 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.cards a.card { display: block; color: inherit; text-decoration: none; overflow: hidden; }
.cards a.card:hover { text-decoration: none; border-color: var(--accent); }
.cards img { width: 100%; height: 170px; object-fit: cover; display: block; background: #eee; }
.cards .card-body { padding: 0.75rem 1rem; }
.cards h2 { font-size: 1rem; margin: 0 0 0.25rem; }
.cards p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.prose a, .help-list a { text-decoration: underline; }
.guide .spec-table td:first-child { padding-right: 1rem; white-space: nowrap; }
.cards { align-items: start; }
