/* Word Coloring Page Generator. Loaded after name-coloring-pages.css, which
   provides the panel, buttons, sheet and landing-content styles; this file only
   adds what the word tool has on top. */

.word-coloring-wrapper .field-note{text-transform:none;letter-spacing:0;font-weight:600;margin-left:6px}
.word-coloring-wrapper #words{font-size:17px;min-height:132px}
.wc-count{font-size:12.5px;color:var(--muted);font-weight:600;margin:6px 0 0}

/* 17 letter styles in rows of six. */
.word-coloring-wrapper .fonts{grid-template-columns:repeat(6,1fr);gap:6px}
.word-coloring-wrapper .fonts button{height:42px}
.word-coloring-wrapper #layout{grid-template-columns:none;display:flex}
.word-coloring-wrapper #letters button,.word-coloring-wrapper #layout button{font-size:13px}

/* Ready-made list chips, in the panel and in the page copy. */
.wc-lists{display:flex;flex-wrap:wrap;gap:7px}
.wc-chip{display:inline-block;border:2px solid var(--line);background:#FCFAF4;border-radius:999px;
  padding:6px 12px;font-weight:800;font-size:13px;color:var(--text);text-decoration:none;cursor:pointer;
  transition:background .15s,border-color .15s}
.wc-chip:hover{background:#f0ede1;text-decoration:none}
.wc-chip[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:#fff}

/* Page flipper under the preview. */
.wc-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0 0}
.wc-pager__btn{width:38px;height:38px;border-radius:50%;border:2px solid var(--line);background:#FCFAF4;
  font-size:22px;line-height:1;font-weight:800;color:var(--ink);cursor:pointer;padding:0}
.wc-pager__btn:hover:not([disabled]){background:#f0ede1}
.wc-pager__btn[disabled]{opacity:.35;cursor:default}
.wc-pager__label{font-weight:800;font-size:14px;color:var(--text);min-width:0;max-width:70%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Word lists in the landing copy (crawlable text + a link that loads them). */
.wc-wordlists{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.wc-wordlist h3{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.wc-wordlist h3 small{font-family:inherit;font-weight:600;font-size:13px;color:var(--muted)}
.content .wc-wordlist p.wc-words{font-size:14px;line-height:1.7;color:var(--text);margin:0 0 12px}
.wc-wordlist .wc-chip{font-size:13px}
.wc-toolcards{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.wc-toolcards .card p{font-size:14.5px;line-height:1.5;margin:0 0 10px}
.wc-toolcards .card a{font-weight:800}

@media (max-width:880px){
  .wc-wordlists,.wc-toolcards{grid-template-columns:1fr}
  .wc-pager{margin-top:6px}
  /* The pinned preview on mobile is short; keep the flipper but drop the gap. */
  .stage .wc-pager__label{font-size:13px}
}

/* Printing: "Print all pages" fills #wcPrint (outside .app) with every word, one
   per sheet, and only that prints. */
#wcPrint{display:none}
@media print{
  body.wc-printing > *:not(#wcPrint){display:none !important}
  body.wc-printing #wcPrint{display:block}
  .wc-print-page{height:98vh;break-after:page;page-break-after:always;overflow:hidden}
  .wc-print-page:last-child{break-after:auto;page-break-after:auto}
  .wc-print-page svg{display:block;width:100%;height:100%}
}

/* Ready-made PDF downloads under a word list. */
.wc-packs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.wc-packs__label{font-size:12.5px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.wc-pack{display:inline-block;font-weight:800;font-size:13px;color:var(--accent);text-decoration:none;
  border:2px solid var(--accent);border-radius:999px;padding:5px 12px;background:#fff}
.wc-pack:hover{background:var(--accent);color:#fff;text-decoration:none}
.wc-pack small{font-weight:600;opacity:.8}
.wc-pack--pin{border-color:#E60023;color:#E60023}
.wc-pack--pin:hover{background:#E60023;color:#fff}
