/* How to draw, step by step (/how-to-draw/, scripts/how-to-draw.mjs). */
.htd-meta { color: var(--muted); font-size: var(--t-xs); }
.htd-steps { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.htd-steps figure { margin: 0; height: 100%; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px; }
.htd-steps img { display: block; width: 100%; height: auto; border-radius: 10px; }
.htd-steps figcaption { margin-top: 8px; line-height: 1.45; }
.htd-n { display: inline-block; background: #e4572e; color: #fff; font-weight: 800; border-radius: 999px; padding: 1px 10px; margin-right: 4px; font-size: var(--t-xs); }
.htd-print { margin: 32px 0; }
.htd-print-row { display: grid; gap: 16px; align-items: start; }
.htd-print-row img { width: 100%; max-width: 240px; height: auto; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); }
@media (min-width: 720px) { .htd-print-row { grid-template-columns: 240px 1fr; } }
.htd-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.htd-btns .btn { min-height: 44px; }
.htd-cards { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); }
.htd-cards a { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 10px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; text-align: center; font-weight: 700; }
.htd-cards a:hover, .htd-cards a:focus-visible { border-color: var(--sun); }
.htd-cards img { width: 100%; max-width: 150px; height: auto; }
.htd-cards small { font-weight: 400; color: var(--muted); font-size: var(--t-xs); }
