/* Tattoo Font Generator (NS99). Source: sites/needle-tools/tools/tattoo-font-generator/tool.css. Scoped .chqt-tf*. */
.chqt-tf-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.chqt-tf-quick button { min-height: 44px; min-width: 56px; padding: 6px 12px; border-radius: 22px; border: 1px solid var(--chqt-line); background: #fff; color: var(--chqt-ink); font: inherit; font-size: 16px; cursor: pointer; }
.chqt-tf-quick button[aria-pressed="true"] { background: var(--chqt-ink); border-color: var(--chqt-ink); color: #fff; }
.chqt-tf-sy { flex-wrap: wrap; margin-bottom: 8px; }
/* the list: each font with the reader's words in it, and its level at this length */
.chqt-tf-fonts { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 700px) { .chqt-tf-fonts { grid-template-columns: 1fr 1fr; } }
.chqt-tf-font { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; width: 100%; padding: 8px 12px; text-align: left; cursor: pointer; border: 1px solid var(--chqt-line); border-radius: 10px; background: #fff; color: var(--chqt-ink); font: inherit; overflow: hidden; }
.chqt-tf-font[hidden] { display: none; }
.chqt-tf-font[aria-pressed="true"] { border: 2px solid var(--chqt-accent); background: var(--chqt-cream); padding: 7px 11px; }
.chqt-tf-sample { display: block; max-width: 100%; font-size: 28px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #111; }
.chqt-tf-font small { font-size: 13.5px; color: var(--chqt-muted); }
.chqt-tf-font i { font-style: normal; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; padding: 1px 8px; border-radius: 10px; background: #eee; color: #333; }
.chqt-tf-font i[hidden] { display: none; }
.chqt-tf-font i[data-lv="good"] { background: #dcefe0; color: #1d5b2c; }
.chqt-tf-font i[data-lv="ok"] { background: #e6eef8; color: #1f4370; }
.chqt-tf-font i[data-lv="edge"] { background: #fbefd5; color: #6b4a07; }
.chqt-tf-font i[data-lv="small"] { background: #f8dede; color: #7a1d1d; }
.chqt-tf-guides { margin: 8px 0; }
.chqt-tf-guides li { font-size: 15px; line-height: 1.45; }
/* the drawing: the words at true size when the line fits, a ruler under them */
.chqt-tf-draw { margin: 10px 0; }
.chqt-tf-stage { overflow: hidden; background: #fff; border: 1px solid var(--chqt-line); border-radius: 10px; padding: 8px; }
.chqt-tf-line { white-space: nowrap; line-height: 1.5; color: #111; }
.chqt-tf-stage svg { display: block; max-width: 100%; }
.chqt-tf-note { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--chqt-ink); }
.chqt-tf-note:empty { display: none; }
.chqt-tf-note cite, .chqt-tf-box cite { font-style: normal; font-size: 13px; color: var(--chqt-muted); }
.chqt-tf-note cite a, .chqt-tf-box cite a { color: inherit; }
.chqt-tf-box { background: #fff; border: 1px solid var(--chqt-line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14.5px; line-height: 1.45; color: var(--chqt-ink); }
.chqt-tf-box p { margin: 0 0 6px; }
.chqt-tf-box p:last-child { margin: 0; }
.chqt-tf-cal summary { cursor: pointer; font-size: 15px; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--chqt-ink); }
.chqt-tf-calstage { margin: 8px 0; min-height: 40px; }
.chqt-tf-calrow { display: flex; align-items: center; gap: 8px; }
.chqt-tf-pm { min-width: 44px; min-height: 44px; font-size: 20px; padding: 0; }
.chqt-tf-callabel { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.chqt-tf-callabel input { flex: 1 1 auto; min-width: 0; min-height: 44px; font-size: 16px; }
.chqt-tf-lic { margin: 8px 0 0; font-size: 13.5px; color: var(--chqt-muted); }
.chqt-tf-lic a { color: inherit; }
.chqt-tf-posts { margin: 10px 0 0; font-size: 15px; }
.chqt-tf-posts:empty { display: none; }
.chqt-tf-posts a { color: var(--chqt-accent); font-weight: 600; }
/* NS75: the answer on the first phone screen — phones skip the lede and the length hint, which the labels already say */
@media (max-width: 460px) {
  .chqt[data-tool="tattoo-font-generator"] .chqt-lede { display: none; }
  .chqt[data-tool="tattoo-font-generator"] .chqt-tf-lnhint { display: none; }
  .chqt-tf-sample { font-size: 24px; }
}
.chqt-ns-peek { display: none; }
@media (max-width: 460px) {
  .chqt-ns-peek { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; font: inherit; text-align: left; cursor: pointer; border: 0; border-left: 4px solid var(--chqt-accent); border-radius: 10px; background: var(--chqt-cream); color: var(--chqt-ink); }
  .chqt-ns-peek small { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--chqt-muted); }
  .chqt-ns-peek b { font-size: 18px; line-height: 1.25; }
  .chqt-ns-peek[hidden] { display: none; }
}
