/*
 * Listing flyer layouts (src/views/flyers.tsx). Every size is in container units: 100cqw is the
 * page width (8.5 in), so a flyer is the same design as a thumbnail, a PDF page or a printout.
 * Loaded only on the flyer templates guide, and by scripts/guide-pdf.ts.
 */
.flyer-frame { container-type: inline-size; width: 100%; }
.flyer {
  --fl-ink: #111418; --fl-muted: #4f565f; --fl-accent: #f2a541; --fl-line: #e6e3dd; --fl-warm: #f4f2ee;
  --fl-display: 'Plus Jakarta Sans', 'Jakarta Fallback', Inter, system-ui, sans-serif;
  position: relative; box-sizing: border-box; width: 100cqw; height: 129.4cqw; overflow: hidden;
  display: flex; flex-direction: column; gap: 2.2cqw; padding: 4.7cqw;
  background: #ffffff; color: var(--fl-ink); font: 400 1.75cqw/1.4 Inter, 'Inter Fallback', system-ui, sans-serif;
  box-shadow: 0 0 0 1px var(--fl-line);
}
.flyer *, .flyer *::before { box-sizing: border-box; }
.flyer > * { flex-shrink: 0; }
/* Headings beat the page's own h2/h3 rules (home.css, the PDF), so they're scoped twice. */
.flyer-frame.flyer-frame .flyer h2, .flyer-frame.flyer-frame .flyer h3 { margin: 0; padding: 0; border: 0; }
.flyer p, .flyer ul, .flyer dl { margin: 0; }
.flyer img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0.8cqw; background: var(--fl-warm); }
.flyer img[hidden] { display: none; }
.fl-hero { position: relative; flex: 0 0 auto; }
.flyer-classic .fl-hero { height: 47cqw; }
.flyer-open .fl-hero { height: 36cqw; }
.flyer-open .fl-row2 { height: 21cqw; }
.fl-status { position: absolute; left: 2cqw; top: 2cqw; padding: 0.8cqw 1.8cqw; border-radius: 0.6cqw; background: var(--fl-accent); font: 800 1.9cqw var(--fl-display); text-transform: uppercase; letter-spacing: 0.04em; }
.fl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqw; }
.flyer-frame.flyer-frame .fl-head h2, .flyer-frame.flyer-frame .fl-band h2 { font: 800 4.2cqw/1.05 var(--fl-display); letter-spacing: -0.02em; }
.flyer-frame.flyer-frame .fl-head h3 { font: 800 3.4cqw/1.1 var(--fl-display); }
.fl-head p, .fl-band p { color: var(--fl-muted); font-size: 2cqw; }
.fl-price { font: 800 4.6cqw/1 var(--fl-display) !important; color: var(--fl-ink) !important; white-space: nowrap; }
.fl-stats { display: flex; gap: 3.5cqw; padding: 1.4cqw 0; border-top: 0.3cqw solid var(--fl-accent); border-bottom: 1px solid var(--fl-line); font-size: 2cqw; color: var(--fl-muted); }
.fl-stats b { color: var(--fl-ink); font: 800 2.4cqw var(--fl-display); }
.fl-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; height: 18cqw; }
.fl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; height: 24cqw; }
.fl-row2, .fl-row3 { grid-template-rows: minmax(0, 1fr); }
.fl-row2 img, .fl-row3 img { min-height: 0; }
.flyer-feature .fl-row2 { grid-template-columns: 1.6fr 1fr; height: 30cqw; }
.fl-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3cqw; }
.fl-blurb { font-size: 2cqw; color: #3b4149; }
.fl-features { list-style: none; padding: 0; display: grid; gap: 0.9cqw; align-content: start; }
.fl-features li { position: relative; padding-left: 2.6cqw; }
.fl-features li::before { content: ''; position: absolute; left: 0; top: 0.7cqw; width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--fl-accent); }
.fl-band { display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqw; padding: 3cqw 3.4cqw; margin: -4.7cqw -4.7cqw 0; background: var(--fl-ink); color: #ffffff; }
.fl-band p { color: #c9ced4; }
.fl-band .fl-price { color: var(--fl-accent) !important; }
.fl-kicker { display: block; margin-bottom: 0.8cqw; color: var(--fl-accent); font: 800 1.7cqw var(--fl-display); text-transform: uppercase; letter-spacing: 0.08em; }
.fl-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5cqw; }
.flyer-frame.flyer-frame .fl-cols h3 { margin-bottom: 1.2cqw; font: 800 2.3cqw var(--fl-display); }
.fl-details div { display: flex; justify-content: space-between; gap: 2cqw; padding: 0.8cqw 0; border-bottom: 1px solid var(--fl-line); }
.fl-details dt { color: var(--fl-muted); }
.fl-details dd { margin: 0; font-weight: 600; text-align: right; }
.fl-open-head { display: flex; justify-content: space-between; align-items: center; gap: 3cqw; }
.flyer-frame.flyer-frame .fl-open-head h2 { font: 800 9cqw/0.95 var(--fl-display); letter-spacing: -0.03em; text-transform: uppercase; }
.fl-open-head p { padding: 1.6cqw 2.4cqw; border-radius: 0.8cqw; background: var(--fl-accent); font: 800 2.6cqw/1.25 var(--fl-display); text-align: right; }
.flyer-open .fl-features { grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.fl-agent { display: grid; grid-template-columns: 9cqw 1fr 9cqw; align-items: center; gap: 2.4cqw; margin-top: auto; padding-top: 2cqw; border-top: 1px solid var(--fl-line); }
.fl-agent-text { display: grid; gap: 0.3cqw; font-size: 1.8cqw; color: var(--fl-muted); }
.fl-agent-text strong { color: var(--fl-ink); font: 800 2.4cqw var(--fl-display); }
.fl-headshot, .fl-qr { position: relative; width: 9cqw; height: 9cqw; display: grid; place-items: center; background: var(--fl-warm); color: var(--fl-muted); font-size: 1.3cqw; text-align: center; }
.fl-headshot { border-radius: 50%; overflow: hidden; }
.fl-headshot img { border-radius: 0; }
.fl-qr { border-radius: 0.6cqw; border: 1px dashed #cfc9bf; }
.fl-headshot img:not([hidden]), .fl-qr img:not([hidden]) { position: absolute; inset: 0; }
.fl-qr img { object-fit: contain; background: #ffffff; }
.fl-eho { grid-column: 1 / -1; font-size: 1.2cqw; color: var(--fl-muted); text-align: center; }

/* Flyer maker (flyer-maker.js) on the guide page. */
.flyer-maker { display: grid; gap: 28px; margin-top: 24px; }
.flyer-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.flyer-tabs label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid #cfc9bf; border-radius: 999px; cursor: pointer; font-weight: 600; }
.flyer-tabs input { accent-color: #111418; }
.flyer-tabs label:has(input:checked) { border-color: #111418; background: #111418; color: #ffffff; }
.flyer-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 24px; background: var(--warm, #f4f2ee); border-radius: 16px; }
.flyer-fields label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.flyer-fields .wide { grid-column: 1 / -1; }
.flyer-fields input, .flyer-fields textarea { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-weight: 400; min-height: 44px; padding: 8px 12px; border: 1.5px solid #cfc9bf; border-radius: 10px; background: #ffffff; color: #111418; }
.flyer-fields textarea { min-height: 110px; resize: vertical; }
.flyer-fields input[type="file"] { padding: 8px; }
.flyer-fields small { font-weight: 400; color: var(--muted, #4f565f); }
.flyer-preview { max-width: 640px; }
.flyer-maker [data-layout]:not(.is-active) { display: none; }
.flyer-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.flyer-actions button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.guide-flyer { max-width: 520px; margin: 20px 0 8px; }

/* Printing: flyer-maker.js copies the chosen flyer into a .flyer-print element straight under <body>. */
.flyer-print { display: none; }
@media print {
  @page { size: letter; margin: 0; }
  body.printing-flyer > :not(.flyer-print) { display: none !important; }
  body.printing-flyer { margin: 0; padding: 0; background: #ffffff; }
  body.printing-flyer > .flyer-print { display: block; width: 8.5in; }
  .flyer-print .flyer { box-shadow: none; }
  .flyer { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
