/* The answer pages (web/site/answers.mjs): the comparison table, the book pages shown as proof,
   and the guide's makers. Every size, corner and colour is a design.css token. */

.ans { max-width: var(--width-page); }
.ans .src { font-size: var(--text-13); color: var(--muted); }
.ans .faq h3 { font-size: var(--text-16); margin-top: 1.2em; }

/* Book pages, square, in a grid that folds to two across on a phone. */
.ans .figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.ans .figs.words { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ans figure { margin: 0; }
.ans figure img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-12); background: var(--sunk); }
.ans .figs.sheets { grid-template-columns: repeat(auto-fill, minmax(140px, 200px)); }
.ans .figs.sheets img { aspect-ratio: 3 / 4; object-fit: contain; background: var(--surface); border: 1px solid var(--line); }
.ans figcaption { font-size: var(--text-13); color: var(--muted); margin-top: 8px; line-height: 1.45; }
.ans figcaption strong { color: var(--ink); }
.ans figcaption .src { display: block; margin-top: 4px; }

/* The comparison: scrolls inside its own box on a phone, never the page. */
.ans .table-wrap { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: var(--r-card); }
.ans table.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--text-14); }
.ans table.compare th, .ans table.compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.ans table.compare thead th { background: var(--sunk); font-weight: 700; }
.ans table.compare tbody th { font-weight: 600; width: 22%; }
.ans table.compare tr:last-child > * { border-bottom: 0; }

/* The guide: one card per maker. */
.ans .maker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; margin: 0 0 16px; }
.ans .maker h2 { margin-top: 0; font-size: var(--text-22); }
.ans .maker p:last-child { margin-bottom: 0; }
.ans .maker.us { border-color: var(--accent); }
