/* Weekly flyer: the four templates (same look as the website's flyer section) and the builder's pickers.
   A template sets --f-* colours on .fly; the layout is shared. */
.fly{--f-bg:#fff;--f-ink:#1b1b1b;--f-muted:#666;--f-band:#d7262e;--f-band-ink:#fff;--f-burst:#ffd400;--f-burst-ink:#c4161c;--f-price:#d7262e;--f-card:#fff;--f-line:#e6e6e6;
  --f-display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  background:var(--f-bg);color:var(--f-ink);border-radius:10px;overflow:hidden;font:14px/1.35 Inter,"Segoe UI",system-ui,sans-serif;display:flex;flex-direction:column;gap:14px;padding-bottom:12px}
.fly.t-classic{--f-bg:#fff7c2;--f-band:#c4161c;--f-burst:#c4161c;--f-burst-ink:#fff;--f-price:#c4161c;--f-line:#efd56b}
.fly.t-fresh{--f-bg:#f5f7ee;--f-band:#2e7d32;--f-burst:#ff8f00;--f-burst-ink:#fff;--f-price:#2e7d32;--f-line:#dfe6cf}
.fly.t-festival{--f-bg:#5a0f1d;--f-ink:#fff6e3;--f-muted:#e9c98a;--f-band:#3c0812;--f-band-ink:#ffd27a;--f-burst:#e3a72f;--f-burst-ink:#3c0812;--f-price:#ffd27a;--f-card:#6d1626;--f-line:#8a2a3a}

.fly-top{background:var(--f-band);color:var(--f-band-ink);padding:16px 18px;display:flex;flex-direction:column;gap:2px}
.fly-brand{font:700 11px/1 var(--mono,monospace);letter-spacing:.12em;text-transform:uppercase;opacity:.85}
.fly-title{font:800 30px/1.05 var(--f-display);margin:4px 0 0;letter-spacing:-.01em}
.fly-tag{margin:0;font-size:15px;opacity:.95}
.fly-dates{margin:4px 0 0;font:600 12px/1.2 var(--mono,monospace)}
.fly.t-festival .fly-top{border-bottom:3px double var(--f-burst);text-align:center;align-items:center}
.fly.t-festival .fly-title::before,.fly.t-festival .fly-title::after{content:" ✦ ";color:var(--f-burst)}
.fly.t-classic .fly-top{border-bottom:6px solid #ffd400}

.fly-heroes{display:grid;gap:10px;padding:0 14px}
.fly-hero{--h-bg:var(--f-band);--h-ink:var(--f-band-ink);display:grid;grid-template-columns:1.2fr 1fr;align-items:center;min-height:150px;border-radius:12px;overflow:hidden;background:var(--h-bg);color:var(--h-ink)}
.fly-hero.th-red{--h-bg:#d7262e;--h-ink:#fff}.fly-hero.th-green{--h-bg:#2e7d32;--h-ink:#fff}.fly-hero.th-gold{--h-bg:#e3a72f;--h-ink:#3c0812}.fly-hero.th-dark{--h-bg:#1b1b1b;--h-ink:#ffd400}
.fly-hero-text{padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.fly-hero-text b{font:800 28px/1.02 var(--f-display);text-transform:uppercase}
.fly-hero-text span{font-size:15px}
.fly-hero-text em{font-style:normal;align-self:flex-start;margin-top:6px;background:var(--f-burst);color:var(--f-burst-ink);font-weight:700;font-size:12px;padding:5px 10px;border-radius:99px}
.fly-hero img{width:100%;height:100%;max-height:200px;object-fit:cover}
.fly.t-classic .fly-heroes,.fly.t-fresh .fly-heroes{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.fly.t-classic .fly-hero,.fly.t-fresh .fly-hero{min-height:120px}
.fly.t-classic .fly-hero-text b,.fly.t-fresh .fly-hero-text b{font-size:22px}

.fly-front{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;padding:0 14px}
.fly-dept{padding:0 14px;display:flex;flex-direction:column;gap:8px}
.fly-dept h4{margin:0;font:800 16px/1.1 var(--f-display);text-transform:uppercase;letter-spacing:.03em;color:var(--f-price);border-bottom:2px solid var(--f-price);padding-bottom:4px}
.fly-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.fly.t-classic .fly-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px}

.fly-card{background:var(--f-card);border:1px solid var(--f-line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.fly-pic{position:relative;aspect-ratio:4/3;background:#eee;display:grid;place-items:center}
.fly-pic img{width:100%;height:100%;object-fit:cover}
.fly-noimg{font:800 40px/1 var(--f-display);color:#bbb}
.fly-burst{position:absolute;right:6px;top:6px;max-width:72%;background:var(--f-burst);color:var(--f-burst-ink);font:800 13px/1.05 var(--f-display);text-transform:uppercase;padding:6px 8px;border-radius:8px;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.fly-card.big .fly-burst{font-size:20px;padding:10px 12px;border-radius:50%;aspect-ratio:1;display:grid;place-items:center;max-width:58%;right:8px;top:8px;transform:rotate(-8deg)}
.fly.t-bigbox .fly-card.big .fly-burst{border:3px solid #fff}
.fly.t-fresh .fly-burst{border-radius:99px}
.fly-info{padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.fly-name{font-weight:700;font-size:13px}
.fly-card.big .fly-name{font-size:16px}
.fly-alt{color:var(--f-muted);font-size:12px}
.fly-price{display:flex;flex-direction:column}
.fly-price .now{font:800 22px/1 var(--f-display);color:var(--f-price)}
.fly-price .now small{font-size:12px;font-weight:600}
.fly-price .now.small{font:600 12px/1.2 Inter,system-ui,sans-serif}
.fly-card.big .fly-price .now:not(.small){font-size:32px}
.fly-price s{color:var(--f-muted);font-size:12px}
.fly-when{align-self:flex-start;margin-top:2px;font:700 11px/1 var(--mono,monospace);background:var(--f-ink);color:var(--f-bg);padding:3px 6px;border-radius:4px}
.fly-empty{padding:0 14px;color:var(--f-muted)}
.fly-foot{padding:4px 14px 0;font-size:11px;color:var(--f-muted)}

/* builder */
.fly-frame{max-height:1300px;overflow:auto;border-radius:10px;border:1px solid var(--line)}
.fly-templates{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.fly-tpl{display:flex;flex-direction:column;gap:4px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px;font:inherit;color:inherit}
.fly-templates.pick .fly-tpl{cursor:pointer}
.fly-tpl.on{border:2px solid var(--accent);padding:9px}
.fly-thumb{align-self:stretch;width:100%;box-sizing:border-box;height:64px;border-radius:6px;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:22px 1fr;gap:4px;padding:5px;background:#fff7c2}
.fly-thumb i{display:block;border-radius:3px;background:#fff}
.fly-thumb i:first-child{grid-column:1/-1}
.fly-thumb.t-bigbox{background:#fff}.fly-thumb.t-bigbox i:first-child{background:#d7262e;grid-row:1/2}.fly-thumb.t-bigbox i{background:#ffd400}
.fly-thumb.t-classic i:first-child{background:#c4161c}.fly-thumb.t-classic i{background:#fff;border:1px solid #efd56b}
.fly-thumb.t-fresh{background:#f5f7ee}.fly-thumb.t-fresh i:first-child{background:#2e7d32}.fly-thumb.t-fresh i{background:#dfe6cf;border-radius:10px}
.fly-thumb.t-festival{background:#5a0f1d}.fly-thumb.t-festival i:first-child{background:#3c0812;border-bottom:2px solid #e3a72f}.fly-thumb.t-festival i{background:#6d1626;border:1px solid #e3a72f}
.fly-hero-edit{border:1px dashed var(--line);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:6px}
button.star{border:0;background:none;font-size:20px;line-height:1;padding:2px 6px;color:var(--muted);cursor:pointer}
button.star.on{color:#e3a72f}

/* Print flyer: only the flyer, full width. */
@media print{
  body.printing-flyer *{visibility:hidden}
  body.printing-flyer .fly,body.printing-flyer .fly *{visibility:visible}
  body.printing-flyer .fly{position:absolute;left:0;top:0;width:100%;border-radius:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.printing-flyer .fly-frame{max-height:none;overflow:visible;border:0}
}
