/* Pinterest Tag Code Builder & Checker (ROADMAP-Calcs-PinPin.md PP54) — the code blocks with their Copy buttons, the checker's
   lines, the event ticks and the paste box. Everything else is the core stylesheet. */
.tg { align-items: start; }
/* phones: the answer, then the questions, then the code (the engine's email box after it); desktop: the answer and the code left, the
   questions right */
.chqt .tg-result { min-height: 0; }
.tg > .chqt-em { order: 1; }
@media (min-width: 860px) {
  .chqt-grid.tg { grid-template-rows: auto auto 1fr; }
  .tg-result { grid-column: 1; grid-row: 1; }
  .tg-detail { grid-column: 1; grid-row: 2 / span 2; }
  .tg-form { grid-column: 2; grid-row: 1 / span 2; }
  .tg > .chqt-em { grid-column: 2; grid-row: 3; }
}
.chqt .tg-sub { margin: .1rem 0 0; color: var(--chqt-muted, #4c4658); }
.tg-blocks { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.tg-blocks[hidden], .tg-issues[hidden] { display: none; }
.tg-block { background: #fff; border: 1px solid var(--chqt-line, #ddd5e6); border-radius: 12px; padding: .7rem .8rem; min-width: 0; }
.chqt .tg-block__h { margin: 0; font-weight: 700; }
.chqt .tg-where { margin: .15rem 0 .45rem; font-size: .92rem; color: var(--chqt-muted, #4c4658); }
/* the code scrolls inside its own box, never the page */
.tg-code { margin: 0 0 .5rem; max-height: 260px; overflow: auto; background: #1f1a26; color: #f4eff8; border-radius: 8px; padding: .6rem .7rem; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.tg-copy1 { font: inherit; font-size: 16px; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--chqt-ink, #191320); background: #fff; color: var(--chqt-ink, #191320); cursor: pointer; }
.tg-issues { margin: .2rem 0 0; padding-left: 1.2rem; }
.tg-issues li { margin: .45rem 0; }
.tg-issues li[data-level="fail"] b { color: #7a1717; }
.tg-issues li[data-level="warn"] b { color: #6b3d00; }
.tg-ticks { display: grid; gap: .1rem; }
.chqt .tg-tick { font-weight: 400; }
.tg-tick { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; padding: .4rem .2rem; cursor: pointer; text-decoration: none; }
.tg-tick input { flex: 0 0 auto; width: 22px; height: 22px; font-size: 16px; margin: .1rem 0 0; accent-color: var(--chqt-accent, #b3124e); }
.tg-tick small { display: block; font-size: 13.5px; color: var(--chqt-muted, #4c4658); }
.tg-more summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.tg-opts .tg-tick { min-height: 44px; }
.tg-paste { display: block; width: 100%; box-sizing: border-box; font: 16px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .6rem .7rem; border: 1.5px solid var(--chqt-line, #ddd5e6); border-radius: 12px; background: #fff; color: var(--chqt-ink, #191320); resize: vertical; }
.tg-sample { font: inherit; font-size: 16px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--chqt-accent, #b3124e); text-decoration: underline; cursor: pointer; }
