/* P1 research discovery UI (params.discoveryUI). docs/p1/07-frontend-components.md is the DOM contract.
   Loaded by partials/discovery_head.html only when the flag is on. Uses the PaperMod variables
   (--entry --border --primary --secondary --tertiary --code-bg --theme --radius --gap) so light and dark both work.
   Package D2 extends this file (facet controls, chips, pagination, dataset header); this part is the shell, the card and the skeletons. */

:root { --dq-accent: #3b82f6; --dq-good: #15803d; --dq-warn: #b45309; --dq-bad: #b91c1c; --dq-focus: #2563eb; }
/* Dark mode: PaperMod sets data-theme="dark" on <html> (the auto theme resolves to it in a script, or by prefers-color-scheme without one);
   `.dark` is kept for older markup. The light values above are 2.1 to 2.7:1 on the dark card background, these are 4.9:1 and more. */
:root[data-theme="dark"], .dark { --dq-good: #4ade80; --dq-warn: #fbbf24; --dq-bad: #f87171; --dq-focus: #60a5fa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dq-good: #4ade80; --dq-warn: #fbbf24; --dq-bad: #f87171; --dq-focus: #60a5fa; } }

.dq-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.dq-lede { margin: .3rem 0 0; color: var(--secondary); font-size: 1rem; max-width: 46rem; }
.dq-explorer-link { margin: 0 0 .8rem; color: var(--secondary); font-size: .92rem; }

/* ---------------------------------------------------------------- explorer shell */
/* No JavaScript: the shell is not shown at all, the page is the plain paginated list. */
.dq-explorer { display: none; margin: 0 0 1.4rem; }
html.dq-js .dq-explorer { display: block; }
.dq-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; min-height: 2.4rem; }
.dq-title { margin: 0; font-size: 1.15rem; }
.dq-count { margin: 0; min-height: 1.4em; color: var(--secondary); font-size: .92rem; }
.dq-count strong { color: var(--primary); }
.dq-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; min-height: 2.75rem; padding: .35rem 0 .6rem; border-bottom: 1px solid var(--border); }
.dq-sort { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--secondary); }
.dq-sort select { max-width: 100%; padding: .4rem .6rem; font: inherit; color: var(--primary); background: var(--entry); border: 1px solid var(--border); border-radius: 8px; min-height: 2.5rem; }
.dq-chips { display: flex; flex-wrap: wrap; gap: .35rem; flex: 1 1 100%; min-height: 0; }
.dq-chips:empty { display: none; }
.dq-notice { margin: .6rem 0 0; padding: .55rem .8rem; border: 1px solid var(--border); border-left: 3px solid #f59e0b; border-radius: 8px; background: var(--entry); font-size: .9rem; color: var(--primary); }
.dq-notice[hidden] { display: none; }

.dq-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.5rem; padding: .4rem .9rem; font: inherit; font-size: .9rem; color: var(--primary); background: var(--entry); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.dq-btn:hover { border-color: var(--dq-accent); }
.dq-btn-primary { color: #fff; background: #2563eb; border-color: #2563eb; }
.dq-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.dq-filters-btn { display: none; min-height: 2.5rem; padding: .4rem .9rem; font: inherit; font-size: .9rem; color: var(--primary); background: var(--entry); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
html.dq-js .dq-filters-btn { display: inline-flex; align-items: center; gap: .35rem; }
.dq-filters-count:not(:empty)::before { content: "("; }
.dq-filters-count:not(:empty)::after { content: ")"; }

.dq-layout { display: block; margin-top: .9rem; }
.dq-main { min-width: 0; }
.dq-results { min-height: 12rem; }
.dq-results[aria-busy="true"] { opacity: .55; }
.dq-pagination { min-height: 2.6rem; margin-top: 1rem; }

/* Facet panel: sidebar from 900 px, full-screen sheet below (D2 sets role=dialog / focus trap when it opens). */
.dq-panel { display: none; }
.dq-panel-head, .dq-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.dq-panel-title { margin: 0; font-size: 1rem; }
.dq-panel-body { overflow-y: auto; }
.dq-panel[data-open="true"] { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; padding: 1rem; background: var(--theme); overflow: hidden; }
.dq-panel[data-open="true"] .dq-panel-body { flex: 1 1 auto; margin: .8rem 0; }
@media (min-width: 900px) {
  html.dq-js .dq-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 1.4rem; align-items: start; }
  html.dq-js .dq-panel, html.dq-js .dq-panel[data-open="true"] { position: sticky; top: 4.5rem; z-index: auto; display: block; max-height: calc(100vh - 5.5rem); padding: 0 .2rem 0 0; background: none; overflow-y: auto; }
  html.dq-js .dq-panel[data-open="true"] .dq-panel-body { margin: 0; }
  html.dq-js .dq-panel-head .dq-panel-close, html.dq-js .dq-panel-foot .dq-panel-apply { display: none; }
  html.dq-js .dq-filters-btn { display: none; }
}

/* State handling: while loading the plain list is the content; once the controller says ready, it takes over.
   The toolbar keeps its height (no layout shift) but is invisible and inert until the controller is running, so a controller
   that never loads leaves no dead controls behind. */
.dq-explorer[data-state="loading"] .dq-toolbar { visibility: hidden; }
.dq-explorer[data-state="loading"] .dq-results, .dq-explorer[data-state="loading"] .dq-pagination, .dq-explorer[data-state="loading"] .dq-panel { display: none; }
@media (min-width: 900px) { html.dq-js .dq-explorer[data-state="loading"] .dq-layout { display: none; } }
html.dq-js .dq-explorer[data-state="ready"] ~ [data-dq-fallback],
html.dq-js .dq-explorer[data-state="updating"] ~ [data-dq-fallback],
html.dq-js .dq-explorer[data-state="empty"] ~ [data-dq-fallback] { display: none; }

/* Skeleton, empty and error states */
.dq-skeleton { display: block; }
.dq-skel-card { margin-bottom: var(--gap, 1rem); padding: var(--gap, 1rem); min-height: 7rem; border: 1px solid var(--border); border-radius: var(--radius, 8px); background: var(--entry); }
.dq-skel-line { display: block; height: .8rem; margin: .55rem 0; border-radius: 4px; background: var(--code-bg); animation: dq-pulse 1.4s ease-in-out infinite; }
.dq-skel-title { width: 70%; height: 1.2rem; }
.dq-skel-short { width: 40%; }
@keyframes dq-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .dq-skel-line { animation: none; } .dq-card { transition: none; } }
.dq-empty, .dq-error { padding: 1.4rem 1rem; border: 1px dashed var(--border); border-radius: 10px; text-align: center; background: var(--entry); }
.dq-error { border-style: solid; border-left: 3px solid #ef4444; text-align: left; }
.dq-empty-title { margin: 0 0 .3rem; font-size: 1.05rem; }
.dq-empty-hint { margin: 0 0 .8rem; color: var(--secondary); }
.dq-error-link { margin-left: .6rem; font-size: .9rem; }
.dq-noscript { margin: 1.2rem 0; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--entry); }
.dq-noscript h2 { margin: 0 0 .3rem; font-size: 1.05rem; }

/* ---------------------------------------------------------------- the paper card (partials/paper_card.html) */
.dq-card { position: relative; display: block; margin-bottom: var(--gap, 1rem); padding: var(--gap, 1rem); background: var(--entry); border: 1px solid var(--border); border-radius: var(--radius, 8px); transition: border-color .2s ease; }
.dq-card.post-entry:hover, .dq-card.post-entry:focus-within { transform: none; border-color: var(--tertiary); }
.dq-card.post-entry:active { transform: none; }
.dq-card:focus-within { outline: 2px solid var(--dq-focus); outline-offset: 1px; }
.dq-card-head { margin: 0; }
.dq-card-title { margin: 0; font-size: 1.2rem; line-height: 1.3; overflow-wrap: anywhere; }
/* Stretched link: the title anchor's ::after covers the whole card; every other interactive element sits above it. */
.dq-card-link { color: var(--primary); text-decoration: none; box-shadow: none; }
.dq-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dq-card-link:hover { text-decoration: underline; }
.dq-card-link:focus-visible { outline: 2px solid var(--dq-focus); outline-offset: 2px; border-radius: 3px; }
.dq-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; margin: .25rem 0 0; color: var(--secondary); font-size: .85rem; }
.dq-authors + .dq-date::before { content: "\00b7"; margin-right: .4rem; }
.dq-date[data-precision="unknown"] { font-style: italic; }
.dq-card-summary { margin: .5rem 0 0; color: var(--secondary); font-size: .92rem; line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow-wrap: anywhere; }
.dq-card-scores, .dq-card-tags, .dq-card-flags { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; margin-top: .6rem; }
.dq-card-tags { position: relative; z-index: 1; }
.dq-card .score-capped { position: relative; z-index: 1; }  /* keeps its title tooltip reachable above the stretched link */
.dq-val { font-variant-numeric: tabular-nums; color: var(--primary); }
.score-quadrant[data-quadrant="holy-grail"] { font-weight: 600; }
.dq-dataset-list { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.dq-dataset-badge, .ev-dataset-link { color: var(--primary); }
.dq-dataset-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 1.6rem; padding: .1rem .55rem; border: 1px solid var(--border); border-radius: 999px; background: var(--code-bg); font-size: .8rem; text-decoration: none; box-shadow: none; }
.dq-dataset-badge:hover { border-color: var(--dq-accent); text-decoration: underline; }
.dq-dataset-badge:focus-visible, .ev-dataset-link:focus-visible, .dq-card-more summary:focus-visible { outline: 2px solid var(--dq-focus); outline-offset: 2px; }
.dq-more { color: var(--secondary); font-size: .8rem; }
/* Methodology flags: text always present; the icon is a second cue, never the only one. */
.dq-flag { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border: 1px solid var(--border); border-radius: 999px; background: var(--entry); color: var(--primary); font-size: .78rem; white-space: nowrap; }
.dq-flag::before { content: "\2013"; content: "\2013" / ""; font-weight: 700; color: var(--secondary); }
.dq-flag[data-tone="good"] { border-color: #22c55e; } .dq-flag[data-tone="good"]::before { content: "\2713"; content: "\2713" / ""; color: var(--dq-good); }
.dq-flag[data-tone="warn"] { border-color: #f59e0b; } .dq-flag[data-tone="warn"]::before { content: "!"; content: "!" / ""; color: var(--dq-warn); }
.dq-flag[data-tone="bad"] { border-color: #ef4444; } .dq-flag[data-tone="bad"]::before { content: "\2715"; content: "\2715" / ""; color: var(--dq-bad); }
.dq-flag[data-tone="unclear"]::before { content: "?"; content: "?" / ""; }
.dq-card-more { position: relative; z-index: 1; margin-top: .6rem; font-size: .85rem; color: var(--secondary); }
.dq-card-more summary { cursor: pointer; display: inline-block; min-height: 1.6rem; }
.dq-card-more-body { margin: .4rem 0 0; }
.dq-card-more-body > div { display: flex; flex-wrap: wrap; gap: .1rem .6rem; margin: .2rem 0; }
.dq-card-more-body dt { font-weight: 600; color: var(--primary); }
.dq-card-more-body dd { margin: 0; }
.dq-card--compact { padding: .6rem .9rem; }
.dq-card--compact .dq-card-title { font-size: 1.02rem; }
.dq-card--compact .dq-card-scores, .dq-card--compact .dq-card-tags { margin-top: .35rem; }
.ev-dataset-link { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; box-shadow: none; }
.ev-dataset-link:hover { text-decoration-style: solid; }

/* Touch devices: buttons and the sort select are at least 44 px high. */
@media (pointer: coarse) {
  .dq-btn, .dq-filters-btn, .dq-sort select { min-height: 2.75rem; }
  .dq-dataset-badge, .dq-card-more summary { min-height: 2rem; align-items: center; }  /* WCAG 2.2 AA asks for 24 px; in-card links stay compact */
  .dq-card-more summary { display: inline-flex; }
}
@media (max-width: 600px) {
  .dq-card-title { font-size: 1.1rem; }
  .dq-sort { flex: 1 1 100%; }
  .dq-sort select { flex: 1 1 auto; }
}

/* ================================================================ D2: the explorer controller (static/js/discovery/controller.mjs)
   States added to the shell contract: idle (hub or search page whose URL carries no state: toolbar usable, plain list stays) and
   semantic (search page with q and no filter: the P0 semantic results run untouched, the panel is shown disabled). */
.dq-explorer, .dq-main, .dq-card, .dq-panel, .dq-panel-body { min-width: 0; }
.dq-explorer [hidden] { display: none !important; }
.dq-explorer :focus-visible { outline: 2px solid var(--dq-focus); outline-offset: 2px; }
.dq-explorer[data-state="idle"] .dq-layout, .dq-explorer[data-state="idle"] .dq-results, .dq-explorer[data-state="idle"] .dq-pagination { display: none; }
html.dq-js .dq-explorer[data-state="idle"] .dq-filters-btn { display: inline-flex; align-items: center; gap: .35rem; }
.dq-explorer[data-state="semantic"] .dq-main, .dq-explorer[data-state="semantic"] .dq-sort { display: none; }
@media (min-width: 900px) { html.dq-js .dq-explorer[data-state="semantic"] .dq-layout { grid-template-columns: minmax(0, 26rem); } }

/* No flash: a hub page whose URL carries state hides the plain list until the controller has taken over; if the controller never
   starts, the list is revealed after 4 s (the animation needs no script). html.dq-q is set by the inline script of discovery_head.html. */
html.dq-q .dq-explorer[data-state="loading"] ~ [data-dq-fallback] { visibility: hidden; animation: dq-reveal 0s linear 4s forwards; }
/* ...and says so when it reveals the plain list: its filters were not applied, and its count is the unfiltered total. */
.dq-fallback-note { display: none; }
html.dq-q .dq-explorer[data-state="loading"] .dq-fallback-note { display: block; visibility: hidden; animation: dq-reveal 0s linear 4s forwards; margin: .6rem 0 0; padding: .55rem .75rem; border: 1px solid var(--border); border-left: 3px solid #f59e0b; border-radius: 8px; background: var(--entry); font-size: .9rem; }

/* Keyboard bypass of the facet sidebar (a long list of controls ahead of the results): visible on focus only, from the width where the sidebar sits ahead of the results. */
.dq-skip { display: none; }
@media (min-width: 900px) {
  html.dq-js .dq-skip { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  html.dq-js .dq-skip:focus { position: static; width: auto; height: auto; margin: .5rem 0 0; padding: .45rem .75rem; overflow: visible; clip: auto; clip-path: none; white-space: normal; border: 1px solid var(--border); border-radius: 8px; background: var(--entry); }
  html.dq-js .dq-explorer[data-state="loading"] .dq-skip, html.dq-js .dq-explorer[data-state="idle"] .dq-skip, html.dq-js .dq-explorer[data-state="semantic"] .dq-skip { display: none; }
}
.dq-results:focus { outline: none; }
.dq-results:focus-visible { outline: 2px solid var(--dq-focus); outline-offset: 2px; }
@keyframes dq-reveal { to { visibility: visible; } }

/* ---------------------------------------------------------------- facet panel */
.dq-panel-hint { margin: 0 0 .8rem; padding: .55rem .75rem; border: 1px solid var(--border); border-left: 3px solid #f59e0b; border-radius: 8px; background: var(--entry); font-size: .9rem; }
.dq-link-btn { display: inline; min-height: 0; padding: .2rem 0; font: inherit; color: var(--primary); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.dq-facets-all { min-width: 0; margin: 0; padding: 0; border: 0; }
.dq-facets-all[disabled] { opacity: .6; }
.dq-facet { border-bottom: 1px solid var(--border); }
.dq-facet-title { display: flex; align-items: center; gap: .5rem; min-height: 2.5rem; font-weight: 600; font-size: .95rem; cursor: pointer; }
.dq-facet-n:not(:empty) { min-width: 1.3rem; padding: 0 .4rem; border-radius: 999px; background: var(--code-bg); border: 1px solid var(--border); font-size: .75rem; font-weight: 600; text-align: center; }
.dq-fieldset { min-width: 0; margin: 0; padding: .1rem 0 .7rem; border: 0; }
.dq-options { margin: 0; padding: 0; list-style: none; }
.dq-options--scroll { max-height: 14rem; overflow-y: auto; overscroll-behavior: contain; padding-right: .3rem; }
.dq-option label { display: flex; align-items: flex-start; gap: .45rem; min-height: 1.9rem; padding: .2rem .1rem; font-size: .9rem; cursor: pointer; overflow-wrap: anywhere; }
.dq-option input { flex: none; width: 1rem; height: 1rem; margin: .22rem 0 0; }
.dq-opt-label { min-width: 0; }
.dq-opt-count { margin-left: auto; padding-left: .4rem; color: var(--secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dq-opt-kind { align-self: center; padding: 0 .4rem; border: 1px solid var(--border); border-radius: 999px; color: var(--secondary); font-size: .7rem; white-space: nowrap; }
.dq-zero label { color: var(--secondary); }
.dq-zero-selected .dq-opt-count { color: var(--dq-warn); font-weight: 700; }
.dq-range { display: flex; flex-wrap: wrap; gap: .6rem; }
.dq-field { display: flex; flex: 1 1 6rem; flex-direction: column; gap: .2rem; min-width: 0; margin-bottom: .4rem; }
.dq-field label { font-size: .82rem; color: var(--secondary); }
.dq-num, .dq-date-input, .dq-opt-search { box-sizing: border-box; width: 100%; min-width: 0; min-height: 2.4rem; padding: .35rem .5rem; font: inherit; color: var(--primary); background: var(--entry); border: 1px solid var(--border); border-radius: 8px; }
.dq-num[aria-invalid="true"], .dq-date-input[aria-invalid="true"] { border-color: var(--dq-bad); border-width: 2px; }
.dq-field-error { margin: .3rem 0; color: var(--dq-bad); font-size: .85rem; font-weight: 600; }
.dq-field-error::before { content: "\2715  "; content: "\2715  " / ""; }
.dq-field-help { margin: .1rem 0 .4rem; color: var(--secondary); font-size: .8rem; }
.dq-facet-clear { min-height: 2rem; padding: .15rem .7rem; font-size: .8rem; }

/* ---------------------------------------------------------------- chips, notices, results */
.dq-chip { display: inline-flex; align-items: center; gap: .1rem; max-width: 100%; padding: .1rem .15rem .1rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--code-bg); font-size: .85rem; }
.dq-chip-text { min-width: 0; overflow-wrap: anywhere; }
.dq-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; padding: 0; font: inherit; font-size: 1.15rem; line-height: 1; color: var(--primary); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.dq-chip-x:hover { background: var(--border); }
.dq-chip-clear { min-height: 1.9rem; padding: .1rem .7rem; font-size: .82rem; }
.dq-notice-line { margin: .15rem 0; overflow-wrap: anywhere; }
.dq-notice-line code { overflow-wrap: anywhere; }
.dq-notice-dismiss { margin-top: .4rem; min-height: 2rem; font-size: .82rem; }
.dq-suggest { margin: .4rem 0 1rem; }
.dq-suggest-title { margin: 0; color: var(--secondary); }
.dq-suggest-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.dq-suggest-btn { max-width: 100%; text-align: center; white-space: normal; }

.dq-pages { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.dq-page { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; min-height: 2.4rem; padding: 0 .6rem; color: var(--primary); background: var(--entry); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; box-shadow: none; box-sizing: border-box; }
a.dq-page:hover { border-color: var(--dq-accent); text-decoration: underline; }
.dq-page-current { color: #fff; background: #2563eb; border-color: #2563eb; font-weight: 700; }
.dq-page-gap { padding: 0 .2rem; color: var(--secondary); }
.dq-page-of, .dq-page-note { margin: .5rem 0 0; color: var(--secondary); font-size: .85rem; }

.dq-dataset { margin: 0 0 var(--gap, 1rem); }
.dq-dataset-card { margin: 0 0 .6rem; padding: .8rem 1rem; background: var(--entry); border: 1px solid var(--border); border-radius: 10px; }
.dq-dataset-title { margin: 0 0 .3rem; font-size: 1.15rem; overflow-wrap: anywhere; }
.dq-dataset-kind { margin-left: .3rem; padding: .05rem .5rem; border: 1px solid var(--border); border-radius: 999px; color: var(--secondary); font-size: .75rem; font-weight: 400; vertical-align: middle; }
.dq-dataset-card p { margin: .25rem 0; font-size: .92rem; overflow-wrap: anywhere; }
.dq-dataset-note { color: var(--secondary); }

/* narrow screens: nothing may force a horizontal scroll */
.dq-flag, .dq-dataset-badge, .dq-card .score-badge { max-width: 100%; overflow-wrap: anywhere; }
.dq-flag { white-space: normal; }
@media (max-width: 899px) {
  .dq-panel[data-open="true"] { overscroll-behavior: contain; }
  .dq-panel[data-open="true"] .dq-panel-foot { padding-top: .6rem; border-top: 1px solid var(--border); }
  .dq-options--scroll { max-height: none; overflow: visible; }
}
@media (pointer: coarse) {
  /* 44 px targets (WCAG 2.2 AAA / platform guidance; AA asks for 24 px). Dataset badges stay compact on purpose, see above. */
  .dq-chip-x { width: 2.75rem; height: 2.75rem; }
  .dq-option label { min-height: 2.75rem; align-items: center; }
  .dq-facet-title, .dq-card-more summary { min-height: 2.75rem; }
  .dq-num, .dq-field input { min-height: 2.75rem; box-sizing: border-box; }
  .dq-page { min-width: 2.75rem; }
  .dq-page, .dq-facet-clear, .dq-chip-clear, .dq-notice-dismiss { min-height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) { .dq-explorer * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- P1.2.1 frontend: layout stability (perf-baseline.md FE-03, FE-05)
   A card painted from an index row keeps its summary line reserved (three clamped lines, the card's own line-height) until the answer arrives, and keeps that
   height once the line is filled, so the arrival moves nothing below it (a short summary leaves a little room under it: cheaper than a page that moves under
   the pointer; the browser suite's "Next" click hit a card while this was not so and cards below the fold also had content-visibility: auto, which is not used
   any more). A card's layout does not leak outside it (contain: layout style). The explorer list is given the height it had before a refresh by the controller
   (inline min-height). Both are for NARROW viewports (below 900 px, where the filter panel is a sheet) only. Scripted session of the local harness (P1.2.1 gap
   round, frontend; integrate-impl.md): the list hold lowers the synthetic CLS on a narrow viewport (/flowcharts/ 5.93 -> 5.25) and raises it on a wide one
   (2.49 with it, 1.81 without); the summary reserve is neutral on a narrow one (5.93 / 5.94) and adds 0.64 on a wide /flowcharts/ (1.81 -> 1.17 without it).
   Not measured: a wide viewport with an API slower than 500 ms (the arrival of a summary then moves the cards below it). */
@media not all and (min-width: 900px) { .dq-summary-pending, .dq-summary-reserved { min-height: calc(3 * 1.55 * .92rem); } }
.dq-list > .dq-card, [data-dq-fallback] > .dq-card { contain: layout style; }
.dq-page-first, .dq-page-prev { margin-right: .3rem; }
