/* santa.css - page layer for /letter-from-santa/. The shell (header, controls, buttons, explainer,
   footer) is /assets/polyatic.css; this adds the cutting-mat stage with the printed letter on it,
   as on /word-search-maker/ and /gift-tag-maker/. The paper keeps its own colours in both themes:
   it is an object on the mat. */
.ls-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.ls-head h1{margin-bottom:.25rem}
.ls-head .sub{margin-bottom:.75rem}

/* ---------- the stage ---------- */
.duo.ls-duo>.pane-result{position:static}
.ls-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:.625rem .75rem 1rem;box-shadow:var(--shadow);min-width:0}
.ls-tabs{display:flex;justify-content:center;flex-wrap:wrap;gap:.375rem;margin:0 auto .5rem}
.ls-tabs button{border:1px solid rgba(255,255,255,.3);background:transparent;color:var(--mat-ink);border-radius:999px;padding:.25rem .8125rem;min-height:2.125rem;font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer}
.ls-tabs button.active{background:var(--mat-ink);color:var(--mat);border-color:var(--mat-ink)}
.ls-tabs button:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.ls-tabs button[hidden]{display:none}
.ls-paper{max-width:30rem;margin:0 auto;line-height:0}
.ls-paper canvas{display:block;width:100%;height:auto;background:#fffbf4;border-radius:2px;
  box-shadow:0 1px 0 rgba(0,0,0,.1),0 18px 40px -16px rgba(0,0,0,.6)}
.ls-summary{margin:.625rem 0;text-align:center;font-size:.875rem;color:var(--mat-ink)}
.ls-summary b{color:#fff}
.ls-notes{max-width:30rem;margin:0 auto .625rem}
.ls-notes:empty{display:none}
.ls-note{margin:0 0 .5rem;padding:.625rem .75rem;border-radius:.5rem;font-size:.8125rem;line-height:1.45;background:rgba(255,255,255,.08);border-left:.1875rem solid var(--mat-muted)}
.ls-note.warn{background:rgba(255,190,90,.14);border-left-color:#f2c94c}
.ls-dl{display:flex;flex-wrap:wrap;gap:.5rem;max-width:30rem;margin:0 auto}
.ls-dl .btn{flex:1 1 9rem}
.ls-dl #pdfBtn,.ls-dl #docxBtn{flex:1 1 8.5rem;height:auto;min-height:3.25rem;padding:.4rem .625rem;line-height:1.2}
.ls-dl #pdfBtn small,.ls-dl #docxBtn small{display:block;font-weight:500;opacity:.8;margin:.125rem 0 0}
.ls-dl .btn:disabled{opacity:.55;cursor:not-allowed}
.ls-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.ls-msg{margin:.5rem 0 0;text-align:center;font-size:.8125rem;color:var(--mat-muted)}
.ls-msg:empty{display:none}

/* ---------- the form ---------- */
.ls-form-h{margin:0 0 .75rem;font-size:1.1875rem}
.ls-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.ls-form .modes button small{display:block;font-weight:500;font-size:.6875rem;opacity:.8}
.ls-kids{display:flex;flex-wrap:wrap;gap:.375rem}
.ls-kids button{flex:0 1 auto;max-width:12rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ls-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem}
.ls-row .ls-hint{margin:0}
.ls-deeds input+input{margin-top:.375rem}
.ls-tpl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.ls-store{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin-top:.25rem}
.ls-store .ls-hint{margin:0;flex:1 1 14rem}
.ls-form [hidden]{display:none}

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

/* ---------- the three modes: Santa's reply / from your elf / the child's letter to Santa ---------- */
.ls-stage [hidden]{display:none}
.ls-mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem;max-width:30rem;margin:0 auto .625rem;padding:.25rem;border-radius:1.5rem;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.18)}
.ls-mode a{display:flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.25rem .375rem;border-radius:999px;color:var(--mat-ink);font-size:.8125rem;font-weight:650;text-align:center;line-height:1.2;text-decoration:none}
.ls-mode a.ls-mode-wide{grid-column:1/-1;min-height:2.25rem}
.ls-mode a.active{background:var(--signal);color:var(--signal-ink)}
.ls-mode a:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.ls-paper.ls-white canvas{background:#fff}
.ls-cross{max-width:30rem;margin:.75rem auto 0;font-size:.8125rem;line-height:1.45;color:var(--mat-muted);text-align:center}
.ls-cross a{color:var(--mat-ink);font-weight:650}
.ls-form .grid2>[hidden]+.field{grid-column:1/-1}
.ls-form .grid2>.field:has(+[hidden]){grid-column:1/-1}
.ls-form label.check input{flex-shrink:0}
/* the nice-list check-in: the starter ideas, compact so all sixteen fit a phone screen or so */
.ls-starters{gap:.375rem;margin-top:.5rem}
.ls-starters .chip{font-size:.8125rem;padding:.3125rem .5625rem;line-height:1.3;text-align:left}
/* the "also in" line under the FAQ, linking the language versions */
.ls-langs{margin:1.5rem .125rem 0;font-size:.875rem;color:var(--muted)}
