/* cover-templates.html: the cover template maker (cover-templates.js). Phones: the even scale from styles.css
   (buttons 44px, fields 48px / 16px, labels 12px and up). Printing gives only the template and its figures. */
.ct-head { max-width: 820px; }
.ct-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; margin-top: 34px; align-items: start; }
.ct-form .field select, .ct-form .field input { min-height: 48px; font-size: 16px; }
.ct-form .checks-inline .check { min-height: 44px; align-items: center; }
.ct-form .checks { margin-bottom: 14px; }
.ct-form fieldset.checks.checks-inline { gap: 4px 24px; } /* over the phones' .checks { gap: 0 } in styles.css */
.ct-figures-h { font-size: 28px; color: var(--burgundy); line-height: 1.1; }
.ct-dl { display: grid; gap: 0; margin: 12px 0 0; }
.ct-dl div { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.6fr); gap: 4px 16px; padding: 9px 0; border-top: 1px solid rgba(90, 64, 30, .18); }
.ct-dl dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6f521c; }
.ct-dl dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-dark); font-variant-numeric: tabular-nums; }

.ct-sheet { margin: 34px 0 0; padding: clamp(12px, 2vw, 24px); border-radius: 6px; background: var(--paper); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); }
.ct-drawing svg { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px rgba(90, 64, 30, .25); }
.ct-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--text-dark); }
.ct-key span { display: inline-flex; align-items: center; gap: 8px; }
.ct-key span[hidden] { display: none; }
.ct-key b { font-weight: 500; }
.ct-key i { display: inline-block; width: 26px; height: 14px; flex: none; }
.ct-key-bleed { background: #f6d4d1; }
.ct-key-trim { border: 3px solid #1d1a1a; }
.ct-key-fold { border-top: 3px dashed #6e1f2c; height: 0 !important; }
.ct-key-safe { border: 2px dashed #2f7d4a; }
.ct-key-hinge { background: repeating-linear-gradient(45deg, #fbf1d6 0 4px, #e0c27a 4px 7px); }
.ct-key-code { border: 2px solid #333; background: #fff; }

.ct-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 24px; }
.ct-status { min-height: 1.4em; margin-top: 10px; }
.ct-notes { margin-top: 46px; }
.ct-notes ul { margin: 12px 0 0; padding-left: 1.2em; }
.ct-notes li + li { margin-top: 10px; }
.ct-notes a { color: var(--gold-hi); }

@media (max-width: 860px) {
  .ct-tool { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 520px) {
  .ct-dl div { grid-template-columns: 1fr; }
  .ct-figures-h { font-size: 24px; }
  .ct-actions .btn { flex: 1 1 100%; justify-content: center; min-height: 48px; }
  .ct-key { font-size: 12.5px; }
  .paper-card.ct-form, .paper-card.ct-figures { padding: 22px 18px 18px; }
}

/* Printing: the template and its figures only, across a landscape page */
@media print {
  @page { size: landscape; margin: 10mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .site-header, .site-footer, .skip-link, .grain, .nl-pop, .note, .ct-head, .ct-form, .ct-actions, .ct-status, .ct-notes, .paper-card::before { display: none !important; }
  .ct-page { padding: 0 !important; background: none !important; }
  .ct-tool { display: block; margin: 0; }
  .ct-figures { padding: 0 !important; box-shadow: none !important; background: none !important; }
  .ct-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .ct-dl dd { font-size: 10pt; }
  .ct-sheet { margin: 4mm 0 0; padding: 0; box-shadow: none; background: none; break-inside: avoid; }
  .ct-key { font-size: 9pt; }
}
