/* cards.css — page layer for /thank-you-card-maker/. The shell (header, controls,
   buttons, explainer, footer) is /assets/polyatic.css; this adds the cutting-mat stage
   with one card close up beside its whole sheet, and the set picker. The cards and the
   sheet are paper in both themes: objects on the mat. */
@font-face{font-family:"TYC Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/address-label-maker/fonts/classic.woff2) format("woff2")}
@font-face{font-family:"TYC Script";font-style:normal;font-weight:400;font-display:swap;src:url(/address-label-maker/fonts/handwritten.woff2) format("woff2")}

.ty-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.ty-head h1{margin-bottom:.25rem}
.ty-head .sub{margin-bottom:.75rem}

/* ---------- the stage ---------- */
.duo.ty-duo>.pane-result{position:static}
.ty-stage{background:radial-gradient(120% 80% at 50% 0%,rgba(255,196,120,.16),transparent 60%),linear-gradient(180deg,var(--mat),var(--mat-2));
  color:var(--mat-ink);border-radius:var(--r);padding:.75rem .75rem .875rem;box-shadow:var(--shadow);min-width:0}
.ty-stage-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;font-family:var(--mono);font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.07em;color:var(--mat-muted);margin:0 0 .5rem;text-align:center}
.ty-chip{font-family:var(--mono);text-transform:none;letter-spacing:0;font-size:.6875rem;font-weight:600;color:var(--signal-ink);background:var(--signal);border-radius:999px;padding:.0625rem .5rem}
.ty-view{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:.75rem;align-items:center;max-width:36rem;margin:0 auto}
.ty-one,.ty-sheet{margin:0;line-height:0;text-align:center;min-width:0}
.ty-one canvas{display:block;width:100%;height:auto;max-height:24rem;object-fit:contain;border-radius:2px;box-shadow:0 1px 0 rgba(0,0,0,.1),0 16px 26px -12px rgba(0,0,0,.6)}
.ty-sheet canvas{display:block;width:100%;height:auto;background:#fff;border-radius:2px;box-shadow:0 1px 0 rgba(0,0,0,.1),0 14px 30px -14px rgba(0,0,0,.6)}
.ty-one figcaption,.ty-sheet figcaption{line-height:1.3;margin-top:.4375rem;font-family:var(--mono);font-size:.6875rem;color:var(--mat-muted)}
.ty-one figcaption:empty{display:none}
.ty-pager{display:flex;gap:.375rem;justify-content:center;margin-top:.375rem;line-height:1}
.ty-pager button{font:inherit;font-size:.8125rem;font-weight:600;color:var(--mat-ink);background:transparent;border:1px solid rgba(255,255,255,.35);border-radius:.4375rem;padding:.3125rem .625rem;cursor:pointer;min-width:2.75rem}
.ty-pager button:disabled{opacity:.4;cursor:default}
.ty-pager button[hidden]{display:none}
.ty-pager button:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.ty-warn{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:#ffd27a}
.ty-warn[hidden]{display:none}
.ty-dl{display:flex;flex-wrap:wrap;gap:.5rem;max-width:36rem;margin:.75rem auto 0}
.ty-dl .btn{flex:1 1 9rem}
.ty-dl .btn:disabled{opacity:.6;cursor:progress}
.ty-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.ty-msg{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.ty-msg:empty{display:none}

/* ---------- the form ---------- */
.ty-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.ty-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.ty-hint:empty,.ty-hint[hidden]{display:none}
.ty-form input[type=text]{width:100%;max-width:100%}
.ty-form textarea{width:100%;max-width:100%;min-height:7.5rem;resize:vertical;line-height:1.5;font-family:var(--sans)}
.ty-sets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.375rem;margin-bottom:.25rem}
.ty-set{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.375rem .125rem .3125rem;border:1px solid var(--line);border-radius:.5rem;
  background:var(--surface-2);color:var(--ink);font:inherit;font-size:.75rem;font-weight:600;line-height:1.15;cursor:pointer;min-width:0}
.ty-set canvas{display:block;width:100%;max-width:3.5rem;height:auto;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.ty-set:hover{border-color:var(--muted)}
.ty-set.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.ty-set:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- the examples under the tool ---------- */
.ty-examples{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.75rem;margin:.75rem 0 1.25rem}
.ty-examples blockquote{margin:0;padding:.75rem .875rem;border:1px solid var(--line);border-radius:.625rem;background:var(--surface);font-size:.9375rem;line-height:1.55}
.ty-examples blockquote b{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:.375rem}

@media(min-width:920px){
  .duo.ty-duo{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-areas:none}
  .duo.ty-duo>.pane-result,.duo.ty-duo>.pane-main{grid-area:auto}
  .ty-stage{position:sticky;top:1rem}
}
