/* banner.css — page layer for /banner-maker/. The shell (header, controls, buttons, explainer,
   footer) is /assets/polyatic.css; this adds the cutting-mat stage with the hanging banner, the
   design tiles and the quick-word buttons. Built from the site's tokens only. */
.bm-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.bm-head h1{margin-bottom:.25rem}
.bm-head .sub{margin-bottom:.875rem}

/* ---------- the stage ---------- */
.duo.bm-duo>.pane-result{position:static}
.bm-stage{background:radial-gradient(120% 70% at 50% 0%,rgba(255,206,120,.13),transparent 60%),linear-gradient(180deg,var(--mat),var(--mat-2));
  color:var(--mat-ink);border-radius:var(--r);padding:.625rem .75rem .875rem;box-shadow:var(--shadow);min-width:0}
.bm-stage-h{font-family:var(--mono);font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.07em;color:var(--mat-muted);margin:0 0 .25rem;text-align:center}
.bm-preview{line-height:0}
.bm-preview svg{display:block;width:100%;height:auto;max-height:52vh}
.bm-notice{margin:.375rem 0 0;font-size:.8125rem;line-height:1.4;color:var(--mat-ink);border-left:3px solid var(--warn);padding-left:.5rem}
.bm-notice:empty{display:none}
.bm-summary{margin:.5rem 0;text-align:center;font-size:.8125rem;line-height:1.35;color:var(--mat-ink)}
.bm-dl{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:.375rem}
.bm-dl .btn{min-width:0;font-size:.9375rem}
.bm-dl .btn:disabled{opacity:.55;cursor:not-allowed}
.bm-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.bm-pager{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:.375rem;font-family:var(--mono);font-size:.75rem;color:var(--mat-muted)}
.bm-pager[hidden]{display:none}
.bm-pg{width:2.25rem;height:2rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.3);background:transparent;color:var(--mat-ink);font:inherit;font-size:1rem;cursor:pointer}
.bm-pg:disabled{opacity:.35;cursor:default}
.bm-pg:focus-visible{outline:2px solid var(--mat-ink);outline-offset:2px}
.bm-sheet{line-height:0;display:flex;justify-content:center;margin-top:.75rem}
.bm-sheet svg{display:block;width:auto;max-width:100%;height:min(28vh,14rem);border-radius:2px;box-shadow:0 1px 0 rgba(0,0,0,.1),0 16px 34px -16px rgba(0,0,0,.65)}
.bm-sheet:empty{display:none}
.bm-msg{margin:.375rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.bm-msg:empty{display:none}

/* ---------- the form ---------- */
.bm-form-h{margin:0 0 .5rem;font-size:1.1875rem}
.bm-form input[type=text]{width:100%;font-weight:600;letter-spacing:.04em}
.bm-out{margin-left:auto;font-family:var(--mono);font-size:.8125rem;color:var(--muted)}
.bm-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.bm-hint:empty{display:none}
.bm-quick{display:flex;flex-wrap:wrap;gap:.375rem;margin:.5rem 0}
.bm-quick .btn{padding:.3125rem .625rem;font-size:.8125rem}
.bm-check{margin-top:.25rem}
#shapeBtns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:480px){#shapeBtns{grid-template-columns:repeat(4,minmax(0,1fr))}}
.bm-two{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.bm-designs{display:grid;grid-template-columns:repeat(auto-fill,minmax(4.75rem,1fr));gap:.375rem}
.bm-design{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.375rem .25rem .4375rem;border:1px solid var(--line);border-radius:.5rem;
  background:var(--surface);color:var(--ink);font:inherit;font-size:.6875rem;line-height:1.2;cursor:pointer;min-width:0}
.bm-design[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.bm-design:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.bm-design svg{width:2.5rem;height:3.25rem}
.bm-design span{text-align:center;overflow-wrap:anywhere}

@media(min-width:560px){.bm-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem}}
@media(min-width:920px){
  .duo.bm-duo{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-areas:none}
  .duo.bm-duo>.pane-result,.duo.bm-duo>.pane-main{grid-area:auto}
  .bm-stage{position:sticky;top:1rem}
  .bm-preview svg{max-height:62vh}
  .bm-sheet svg{height:min(34vh,26rem)}
}
