/* Printable forms shop (/forms/): loaded on top of site.css, only on the shop's pages. */

.forms-shop { padding-block: 28px 64px; }
.forms-shop > * + * { margin-top: 22px; }
.forms-shop h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); }
.forms-shop h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
.forms-shop .lede { max-width: 44em; }

.form-group { margin-top: 44px; }
.form-group h2 { margin-bottom: 16px; }

.form-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.form-card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.form-card-link { display: grid; gap: 6px; height: 100%; padding-bottom: 16px; text-decoration: none; color: var(--ink); }
.form-card-link:hover .form-card-name { text-decoration: underline; text-underline-offset: 0.18em; }
.form-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--rule); }
.form-card-name { padding: 8px 16px 0; font: 700 1.25rem/1.2 var(--font-head); }
.form-card-short { padding: 0 16px; color: var(--ink-2); font-size: 0.9375rem; }
.form-card-price { padding: 4px 16px 0; font-weight: 600; font-size: 0.9375rem; }

.form-top { display: grid; gap: 28px; }
.form-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); }
.form-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.form-buy > * + * { margin-top: 14px; }
.form-price { font: 700 2.5rem/1 var(--font-head); }
.form-meta { color: var(--ink-2); }
.buy .btn { width: 100%; }
.form-fine { font-size: 0.875rem; color: var(--ink-2); }

.form-section { margin-top: 44px; }
.form-section > * + * { margin-top: 14px; }
.form-section .simple-list li + li { margin-top: 6px; }

.forms-shop .prose { margin-top: 32px; }
.forms-shop .prose > * + * { margin-top: 14px; }
.forms-shop .prose h2 { font-size: 1.375rem; }
.forms-shop .prose h2 ~ h2 { margin-top: 28px; }

.forms-dl { margin-top: 24px; }
.forms-files { display: grid; gap: 12px; margin-top: 16px; }

@media (min-width: 880px) {
  .form-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .form-buy { position: sticky; top: 24px; }
  .buy .btn { width: auto; }
}
