/* Cache lab for this article: a regular GraphQL POST next to a persisted query GET.
   Built on v3 tokens and the explainer kit aliases (--ink, --line, --accent, --night...).
   Without JavaScript the figure shows a fixed five-request example. */

.pq { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.pq__bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--night); color: var(--bone-2); font: 500 12px/1.4 var(--font-mono); letter-spacing: .02em; }
.pq__demo { color: var(--gold); }
.pq__body { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.pq__controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.pq__group { display: grid; gap: 6px; min-width: 0; }
.pq__label { font: 500 12px/1.2 var(--font-mono); color: var(--ink-2); letter-spacing: .02em; }
.pq__label code { font: inherit; background: none; padding: 0; }
.pq .pvl__switch { margin-bottom: 0; }
.pq__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pq__send { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.pq__send:hover { opacity: .9; }
.pq__send:focus-visible, .pq .ctl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pq__req { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--night); color: var(--bone); font: 400 13px/1.6 var(--font-mono); overflow-wrap: anywhere; }
.pq__m { display: inline-block; min-width: 3.4em; color: var(--lav); font-weight: 700; }
.pq__body pre.pq__req { white-space: pre-wrap; border: 0; }
.pq__path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.pq__path li { position: relative; text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; color: var(--ink-2); background: var(--bg); transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.pq__path li + li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 9px; border-top: 1px solid var(--line-strong); }
.pq__path li.is-on { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); }
.pq__path li.is-hit { border-color: var(--pass-ink); color: var(--ink); }
.pq__path li.is-off { opacity: .45; }
.pq__verdict { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.pq__verdict b { font-weight: 600; }
.pq__log { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pq__log th { text-align: left; font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .03em; color: var(--ink-2); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line-strong); }
.pq__log td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.pq__log td code { font: 500 12px var(--font-mono); background: var(--accent-tint); color: var(--ink); padding: 1px 5px; border-radius: 4px; }
.pq__log tr.is-new td { color: var(--ink); }
.pq__log .hit { color: var(--pass-ink); font-weight: 600; }
.pq__count { margin: 0; font: 500 13px/1.4 var(--font-mono); color: var(--ink-2); }
@container (max-width: 520px) {
  .pq__path { grid-template-columns: 1fr; }
  .pq__path li + li::before { left: 50%; top: -9px; width: 0; height: 9px; border-top: 0; border-left: 1px solid var(--line-strong); }
}
@media (prefers-reduced-motion: reduce) { .pq__path li { transition: none; } }
.pq > figcaption { padding: 0 16px 14px; margin-top: 0; }
.pq__log tr td.hit { color: var(--pass-ink); font-weight: 600; }

/* Quality pass, October 2026 */
/* On wide screens the long URL format wraps instead of hiding past the right edge; phones keep the sideways scroll. */
@media (min-width: 641px) { .article-body pre.code-plain code { white-space: pre-wrap; overflow-wrap: anywhere; } }
/* Locale chips share one width, so "fr" lines up with "en" and "de". */
.pq .chips button { min-width: 44px; }
.pq .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
@media (max-width: 640px) {
  .pq .pvl__switch button, .pq .chips button, .pq__send, .pq .ctl { min-height: 44px; }
  .pq .chips button { min-width: 48px; }
}
