/* tags.css — page layer for /gift-tag-maker/. The shell (header, controls,
   buttons, explainer, footer) is /assets/polyatic.css; this file adds the
   cutting-mat stage with the printed sheet on it, and the design picker.
   The sheet is paper-white in both themes: it is an object on the mat. */
@font-face{font-family:"GTM Classic";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/classic.woff2) format("woff2")}
@font-face{font-family:"GTM Script";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/handwritten.woff2) format("woff2")}

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

/* ---------- the stage: cutting-mat green, warm light, the sheet on top ---------- */
.duo.gt-duo>.pane-result{position:static}
.gt-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:.875rem .875rem 1rem;box-shadow:var(--shadow);min-width:0}
.gt-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 .625rem;text-align:center}
.gt-paper{max-width:30rem;margin:0 auto;line-height:0}
.gt-paper canvas{display:block;width:100%;height:auto;background:#fff;border-radius:2px;
  box-shadow:0 1px 0 rgba(0,0,0,.1),0 18px 40px -16px rgba(0,0,0,.6)}
.gt-pager{display:flex;align-items:center;justify-content:center;gap:.75rem;margin:.625rem 0 0;font-family:var(--mono);font-size:.8125rem;color:var(--mat-ink)}
.gt-pager[hidden]{display:none}
.gt-pg{border:1px solid rgba(255,255,255,.35);background:transparent;color:var(--mat-ink);border-radius:.4375rem;min-width:2.5rem;min-height:2.25rem;font:inherit;cursor:pointer}
.gt-pg:disabled{opacity:.35;cursor:default}
.gt-pg:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.gt-summary{margin:.625rem 0 .625rem;text-align:center;font-size:.875rem;color:var(--mat-ink)}
.gt-summary b{color:#fff}
.gt-dl{display:flex;flex-wrap:wrap;gap:.5rem;max-width:30rem;margin:0 auto}
.gt-dl .btn{flex:1 1 11rem}
.gt-dl .btn:disabled{opacity:.6;cursor:progress}
.gt-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.gt-msg{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.gt-msg:empty{display:none}

/* ---------- the form ---------- */
.gt-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.gt-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.gt-hint code{font-size:.8125rem;white-space:nowrap}
.gt-form textarea{min-height:9rem;resize:vertical;line-height:1.45}
.gt-form .modes button small{display:block;font-weight:500;font-size:.6875rem;opacity:.8}

.gt-designs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.gt-design{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.375rem .25rem .3125rem;border:1px solid var(--line);border-radius:.5rem;
  background:var(--surface-2);color:var(--ink);font:inherit;font-size:.75rem;font-weight:600;cursor:pointer;min-width:0}
.gt-design canvas{display:block;width:100%;max-width:6.5rem;height:auto}
.gt-design span{line-height:1.2;text-align:center}
.gt-design small{display:block;font-weight:500;color:var(--muted);font-size:.625rem;text-transform:uppercase;letter-spacing:.05em}
.gt-design:hover{border-color:var(--muted)}
.gt-design.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.gt-design:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.gt-draft{margin:.5rem 0 0;font-size:.8125rem;color:var(--muted)}
.gt-linkbtn{border:0;background:none;padding:0;font:inherit;color:var(--accent);text-decoration:underline;cursor:pointer}

/* ---------- the optional photo ---------- */
.gt-photo .modes{margin-bottom:.5rem}
.gt-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.gt-photo-all{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
.gt-photo-all[hidden],#photoOn[hidden]{display:none}
.gt-people{list-style:none;margin:0;padding:0;display:grid;gap:.375rem;max-height:21rem;overflow:auto}
.gt-people[hidden]{display:none}
.gt-people li{display:flex;align-items:center;gap:.5rem;padding:.25rem .375rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface-2);min-width:0}
.gt-people li.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.gt-people .who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:600}
.gt-people canvas,.gt-people .ph{width:2.25rem;height:2.25rem;border-radius:.375rem;flex:none;background:var(--surface);border:1px dashed var(--line-2)}
.gt-people canvas{border-style:solid}
.gt-people button{border:1px solid var(--line-2);background:var(--surface);color:var(--ink);font:inherit;font-size:.8125rem;font-weight:600;border-radius:.4375rem;padding:.375rem .625rem;min-height:2.25rem;cursor:pointer}
.gt-people button:focus-visible,.gt-crop canvas:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.gt-crop{display:flex;flex-wrap:wrap;gap:.75rem;margin:.625rem 0 0;align-items:flex-start}
.gt-crop[hidden]{display:none}
.gt-crop canvas{width:10rem;height:10rem;border-radius:.5rem;background:#fff;touch-action:none;cursor:grab;flex:none;box-shadow:0 0 0 1px var(--line)}
.gt-crop canvas:active{cursor:grabbing}
.gt-crop-side{flex:1 1 9rem;min-width:0;display:flex;flex-direction:column;gap:.375rem;align-items:flex-start}
.gt-crop-side input[type=range]{width:100%}
.gt-crop-who{margin:0;font-weight:600;font-size:.875rem}
#photoMsg:empty{display:none}

/* ---------- what to print: a list, or a 12 days of Christmas set ---------- */
.gt-mode{max-width:34rem;margin-bottom:.625rem}
.gt-mode button{padding:.5625rem .5rem;min-height:2.5rem}
.gt-wrap button{flex:1 1 auto}
#twelveFields[hidden],#listFields[hidden],#t12OwnField[hidden],#fillRow[hidden],#photoField[hidden]{display:none}
#twelveFields,#listFields{display:grid;gap:1.25rem;min-width:0}
#twelveFields .modes{margin-bottom:0}
.gt-t12-intro{margin:0}
.gt-days{list-style:none;margin:0;padding:0;display:grid;gap:.375rem}
.gt-days li{display:grid;grid-template-columns:3.5rem minmax(0,1fr);align-items:center;gap:.5rem}
.gt-days label{font-family:var(--mono);font-size:.75rem;font-weight:500;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.gt-days input{min-width:0}

@media(min-width:920px){
  .duo.gt-duo{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);grid-template-areas:none}
  .duo.gt-duo>.pane-result,.duo.gt-duo>.pane-main{grid-area:auto}
  .gt-stage{position:sticky;top:1rem}
  .gt-designs{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:380px){.gt-designs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gt-langs{margin:1.5rem 0 0;font-size:.875rem;color:var(--muted)}
