/* "Add a name" tool on the /printables/ pages (js/personalize.js). Self-hosted OFL fonts (assets/fonts/print/OFL.txt), no font
 * requests to anyone else. Each choice pairs a Latin + Cyrillic font with an Arabic-script one; the browser picks per letter. */
@font-face { font-family: 'MMC Comfortaa'; src: url('/assets/fonts/print/comfortaa.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-024F, U+02BB-02BC, U+0300-036F, U+0400-045F, U+0490-049F, U+2000-206F, U+20AC; }
@font-face { font-family: 'MMC Caveat'; src: url('/assets/fonts/print/caveat.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-024F, U+02BB-02BC, U+0300-036F, U+0400-045F, U+0490-049F, U+2000-206F, U+20AC; }
@font-face { font-family: 'MMC Pacifico'; src: url('/assets/fonts/print/pacifico.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-024F, U+02BB-02BC, U+0300-036F, U+0400-045F, U+0490-049F, U+2000-206F, U+20AC; }
@font-face { font-family: 'MMC Lobster'; src: url('/assets/fonts/print/lobster.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-024F, U+02BB-02BC, U+0300-036F, U+0400-045F, U+0490-049F, U+2000-206F, U+20AC; }
@font-face { font-family: 'MMC Amatic SC'; src: url('/assets/fonts/print/amaticsc.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-024F, U+02BB-02BC, U+0300-036F, U+0400-045F, U+0490-049F, U+2000-206F, U+20AC; }
@font-face { font-family: 'MMC Baloo Bhaijaan'; src: url('/assets/fonts/print/baloobhaijaan2.woff2') format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'MMC Aref Ruqaa'; src: url('/assets/fonts/print/arefruqaa.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'MMC Marhey'; src: url('/assets/fonts/print/marhey.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'MMC Lalezar'; src: url('/assets/fonts/print/lalezar.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
.pzf-round { font-family: 'MMC Comfortaa', 'MMC Baloo Bhaijaan', sans-serif; font-weight: 700; }
.pzf-hand { font-family: 'MMC Caveat', 'MMC Aref Ruqaa', 'MMC Comfortaa', cursive; font-weight: 700; }
.pzf-fancy { font-family: 'MMC Pacifico', 'MMC Marhey', 'MMC Comfortaa', cursive; font-weight: 400; }
.pzf-bold { font-family: 'MMC Lobster', 'MMC Lalezar', 'MMC Comfortaa', sans-serif; font-weight: 400; }
.pzf-tall { font-family: 'MMC Amatic SC', 'MMC Marhey', 'MMC Comfortaa', sans-serif; font-weight: 700; }
.pz .pz-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 400px); gap: 20px; align-items: start; }
.pz fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.pz legend, .pz .pz-field { display: block; font-weight: 800; font-size: 17px; margin: 0 0 6px; padding: 0; }
.pz .pz-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.pz .pz-seg legend { flex: 0 0 100%; }
.pz label { cursor: pointer; }
.pz .pz-seg label span { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px; border-radius: 999px; background: #FFF4F8; border: 2px solid #F5D3E4; font-weight: 700; }
.pz input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pz input[type=radio]:checked + span { background: linear-gradient(135deg, var(--pink), var(--lilac)); border-color: transparent; color: #fff; }
.pz input[type=radio]:focus-visible + span, .pz input[type=checkbox]:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }
.pz #pzName { width: 100%; min-height: 52px; font: inherit; font-size: 22px; padding: 8px 16px; border-radius: 16px; border: 2px solid #F5D3E4; background: #fff; color: var(--ink); margin: 0 0 14px; }
.pz #pzName:focus { outline: 3px solid var(--lilac); outline-offset: 1px; border-color: var(--lilac); }
.pz .pz-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pz .pz-fonts legend { grid-column: 1 / -1; }
.pz .pz-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 8px 6px; border-radius: 18px; background: #FFF4F8; border: 2px solid #F5D3E4; text-align: center; overflow: hidden; }
.pz .pz-chip .pz-sample { font-size: 26px; line-height: 1.25; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.pz .pz-chip small { font: 700 13px/1.2 ui-rounded, "Nunito", "Segoe UI", system-ui, sans-serif; color: var(--soft); }
.pz input[type=radio]:checked + .pz-chip { background: #fff; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(174,140,255,.35); }
.pz input[type=radio]:checked + .pz-chip .pz-sample { color: var(--ink); }
.pz .pz-check { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 0 12px; font-weight: 700; }
.pz .pz-check input { width: 26px; height: 26px; accent-color: #C27CF0; flex: none; }
.pz .pz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.pz .pz-actions .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 48px; }
.pz .pz-actions .btn.alt { border: 2px solid var(--pink); }
.pz .pz-actions .btn.ghost { border: 2px solid var(--line); }
.pz .pz-actions .btn[disabled] { opacity: .6; cursor: progress; }
.pz .pz-preview { margin: 0; position: sticky; top: 12px; text-align: center; }
.pz canvas { display: block; width: 100%; height: auto; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(170,100,160,.22); }
.pz .pz-hint { color: var(--soft); font-size: 15px; margin: .4em 0; }
@media (max-width: 760px) { .pz .pz-wrap { grid-template-columns: 1fr; } .pz .pz-preview { position: static; order: -1; max-width: 420px; margin: 0 auto; } }
.pz-sheet { display: none; }
@media print {
  body.pz-printing > :not(.pz-sheet) { display: none !important; }
  body.pz-printing { background: #fff !important; margin: 0 !important; }
  body.pz-printing .pz-sheet { display: block; margin: 0; padding: 0; }
  body.pz-printing .pz-sheet img { display: block; margin: 0; page-break-inside: avoid; break-inside: avoid; }
}
