/* ===== qs-marketing (managed by qsTrack) BEGIN -- do not edit between markers ===== */
/*
 * qs-marketing.css -- canonical Query Streams marketing style contract.
 *
 * Source of truth lives here in the repo. It is published into WordPress by
 * qsTrack (wp_manage_custom_css, target=customizer) into the Customizer
 * "Additional CSS" store, where it prints site-wide. Do not edit the copy
 * inside WordPress; edit this file and re-publish.
 *
 * See Content/Planning/Marketing/2026-06-09-marketing-page-typography-consistency.md
 * This is the Phase 2 scaffold (tokens + base type + buttons + fineprint).
 * Accent colors are mapped to the brand palette; off-brand Tailwind defaults
 * are being retired per the plan.
 */

/* ---------------------------------------------------------------------------
 * Web font + icon loading -- centralized here so marketing pages stop shipping
 * their own <link> tags.
 *
 * IMPORTANT -- Poppins is the brand typeface and is loaded below via inlined
 * @font-face rules (latin + latin-ext, weights 400-800) pointing straight at
 * fonts.gstatic.com. This is deliberate: when this sheet is delivered as
 * Customizer "Additional CSS" (printed inside a <style id="wp-custom-css">),
 * an @import for the font CSS is unreliable -- @import must precede every rule,
 * and host CSS optimizers (SiteGround) reorder/strip it -- so Poppins would
 * race against the theme's own enqueued heading font (Manrope) and lose,
 * dropping headings to a fallback on some loads. Inlined @font-face has no
 * nested-stylesheet fetch, so it loads reliably.
 *
 * JetBrains Mono (code blocks) and Font Awesome (icons) are NOT loaded here any
 * more. They used to be @import rules at the top of this sheet, and an @import
 * inside the <head> style block is render-blocking AND serial: nothing on any
 * marketing page painted until cdnjs and Google Fonts had both answered (~1s of
 * mobile FCP in Lighthouse, 2026-09-25). They are now emitted as non-blocking
 * <link media="print" onload> tags by the Code Snippets snippet
 * "QS Performance Assets" (source: Content/Website/snippets/qs-performance-assets.php),
 * which also skips Font Awesome on the homepage (its icons are inline SVG).
 * Both are lower-stakes if they momentarily fall back, which is what makes
 * loading them late acceptable. Do NOT re-add them here as @import.
 * --------------------------------------------------------------------------- */

/* Poppins -- inlined @font-face (reliable load path; replaces the fragile
 * @import). latin + latin-ext subsets, weights 400/500/600/700/800. Re-pull the
 * gstatic woff2 URLs (Google css2 endpoint) if Google bumps the font version. */
/* latin-ext */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2'); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* latin */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* latin-ext */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2'); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* latin */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* latin-ext */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2'); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* latin */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* latin-ext */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2'); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* latin */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* latin-ext */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:800; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLDD4Z1JlFc-K.woff2) format('woff2'); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* latin */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:800; font-display:swap; src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* Brand palette */
  --qs-light-gray: #F2F7F7;
  --qs-dark-teal:  #13323B;
  --qs-mint-green: #66C0A3;
  --qs-medium-gray:#7D8688;
  --qs-slate-blue: #6589A6;
  --qs-dusty-rose: #BF706D;

  /* Semantic roles -- pages set --qs-accent once, everything else inherits */
  --qs-accent:        var(--qs-mint-green);
  --qs-ink:           var(--qs-dark-teal);
  --qs-muted:         var(--qs-medium-gray);
  --qs-surface:       var(--qs-light-gray);

  /* Type */
  --qs-font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --qs-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Heading scale -- canonical hero H1 spec. Pages used to hand-tune this per
   * page (home 2/4.5vw/3.2 LH1.18, REST 2.1/5vw/3.3 LH1.12, MCP 2/4.6vw/3.3
   * LH1.14, etc.), which is the "hero look/feel differs" drift. This is the one
   * consensus: pages repoint their hero <h1> to these tokens and drop their own
   * clamp + mobile size override so every hero scales identically. */
  --qs-h1: clamp(1.9rem, 4.8vw, 3.3rem);
  --qs-h1-line: 1.14;
  --qs-h1-tracking: -0.015em;
  /* Section H2 -- canonical section-title spec. Pages used to hand-tune this per
   * section (cv3 ran 1.4rem fixed -> 2.8rem clamp; REST/MCP/features 2.4rem;
   * most others 2.0rem), which is the "H2s look different" drift. This is the one
   * consensus: every section <h2> repoints its font-size here so section titles
   * scale identically site-wide. Colour / gradient / alignment stay per-page. */
  --qs-h2: clamp(1.55rem, 3.4vw, 2.1rem);
  --qs-h2-line: 1.2;
  --qs-h2-tracking: -0.015em;
  /* Closing-CTA headline -- a deliberate notch above section H2 for end-of-page
   * emphasis. Every "*-final h2" / cta-title repoints here so the closing
   * headline is identical site-wide (was scattered 2.0rem -> 2.6rem). */
  --qs-h2-cta: clamp(1.7rem, 4vw, 2.4rem);
  --qs-h2-cta-line: 1.18;
  /* Sub-row / in-card heading tier (feature-row sub-headlines, guide-hub
   * sub-headers). One consistent step below section H2 (was 1.7rem / 1.8rem). */
  --qs-h3: clamp(1.3rem, 2.8vw, 1.7rem);
  --qs-h3-line: 1.3;
  --qs-h3-tracking: -0.01em;

  /* Body / prose text scale -- the readable copy tiers BELOW the headings.
   * Pages hand-set these per page (hero sub 1.05/1.08/1.1rem; section intro
   * 1rem; v3 "lead" 0.95rem; eyebrow/trust 0.72-0.85rem), which is the
   * "fonts/sizes still differ" drift under the headline. Each prose tier
   * repoints its font-size here so copy scales identically site-wide; colour /
   * weight / alignment / max-width stay per-page. (Demo-widget chrome -- code
   * editors, result tables, tab bars -- is intentional component styling and
   * is NOT part of this scale.) */
  --qs-lead:       clamp(1.05rem, 1.2vw, 1.1rem); /* hero sub-headline / primary intro */
  --qs-lead-line:  1.7;
  --qs-body:       1rem;                           /* section intros, standard paragraphs */
  --qs-body-line:  1.7;
  --qs-small:      0.95rem;                         /* supporting copy, list items, pills */
  --qs-small-line: 1.6;
  --qs-micro:      0.82rem;                         /* eyebrows, trust lines, captions */
  --qs-micro-line: 1.55;

  /* Buttons + containers */
  --qs-btn-radius: 999px;
  --qs-card-radius: 14px;
  /* Content container system -- one home for hero/section band widths + side
   * gutter so pages stop drifting (e.g. REST 1180 vs MCP 1300). Centered
   * single-column heroes use --qs-container; two-column heroes (text + visual)
   * use --qs-container-wide. --qs-gutter is the shared left/right page padding. */
  --qs-container: 1100px;
  --qs-container-wide: 1300px;
  --qs-gutter: 40px;
}

/* Shared marketing typography helpers. Use these classes inside widgets so
 * they consume the contract instead of redefining private styles. */
.qs-hero-h1 {
  font-family: var(--qs-font-sans);
  font-size: var(--qs-h1);
  line-height: var(--qs-h1-line);
  letter-spacing: var(--qs-h1-tracking);
  font-weight: 800;
  color: var(--qs-ink);
  text-wrap: balance;
}

.qs-section-h2 {
  font-family: var(--qs-font-sans);
  font-size: var(--qs-h2);
  line-height: var(--qs-h2-line);
  font-weight: 700;
  color: var(--qs-ink);
  text-wrap: balance;
}

/* ── Heading typeface enforcement ──
 * Guarantee the brand typeface on every marketing-page heading so all pages
 * render the same bold Poppins as the MCP / REST API pages. The theme (Astra)
 * targets h1..h6 directly, and a direct theme rule beats a value the heading
 * only *inherits* from its wrapper — which is why wrapper-only pages used to
 * fall back to the theme heading font. Scoped to each page's wrapper id +
 * !important so it wins regardless of theme order. This is the single central
 * home for "what font are marketing headings" — pages no longer need their own. */
#hr-demo :is(h1, h2, h3, h4, h5, h6),
#nv-demo :is(h1, h2, h3, h4, h5, h6),
#cv3 :is(h1, h2, h3, h4, h5, h6),
#aq3 :is(h1, h2, h3, h4, h5, h6),
#sh3 :is(h1, h2, h3, h4, h5, h6),
#fv3 :is(h1, h2, h3, h4, h5, h6),
#df3 :is(h1, h2, h3, h4, h5, h6),
#au3 :is(h1, h2, h3, h4, h5, h6),
#pr3 :is(h1, h2, h3, h4, h5, h6),
#ex3 :is(h1, h2, h3, h4, h5, h6),
#gs3 :is(h1, h2, h3, h4, h5, h6),
#qs-mcp-feature-page :is(h1, h2, h3, h4, h5, h6),
#qs-api-feature-page :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--qs-font-sans) !important;
}

/* Hero accent line -- the emphasized second line in each marketing hero.
 * Pages keep their own accent personality by setting gradient tokens here;
 * local page CSS may still set a flat color fallback, but this central rule
 * upgrades it to a themed text fade. */
#hr-demo {
  --qs-hero-gradient-from: var(--qs-mint-green);
  --qs-hero-gradient-mid: #8b5cf6;
  --qs-hero-gradient-to: #38bdf8;
}
#qs-mcp-feature-page {
  --qs-hero-gradient-from: #a78bfa;
  --qs-hero-gradient-mid: var(--qs-mint-green);
  --qs-hero-gradient-to: #38bdf8;
}
#qs-api-feature-page {
  --qs-hero-gradient-from: var(--qs-mint-green);
  --qs-hero-gradient-mid: var(--qs-slate-blue);
  --qs-hero-gradient-to: #a7f3d0;
}
#fv3 {
  --qs-hero-gradient-from: var(--qs-mint-green);
  --qs-hero-gradient-mid: #38bdf8;
  --qs-hero-gradient-to: #a78bfa;
}
#aq3 {
  --qs-hero-gradient-from: #a78bfa;
  --qs-hero-gradient-mid: #66C0A3;
  --qs-hero-gradient-to: #38bdf8;
}
#pr3 {
  --qs-hero-gradient-from: #66C0A3;
  --qs-hero-gradient-mid: #a78bfa;
  --qs-hero-gradient-to: #fbbf24;
}
#nv-demo {
  --qs-hero-gradient-from: #66C0A3;
  --qs-hero-gradient-mid: #38bdf8;
  --qs-hero-gradient-to: #a78bfa;
}
#au3 {
  --qs-hero-gradient-from: #34d399;
  --qs-hero-gradient-mid: #66C0A3;
  --qs-hero-gradient-to: #fbbf24;
}
#df3 {
  --qs-hero-gradient-from: #fbbf24;
  --qs-hero-gradient-mid: #fb923c;
  --qs-hero-gradient-to: #66C0A3;
}
#sh3 {
  --qs-hero-gradient-from: #38bdf8;
  --qs-hero-gradient-mid: #66C0A3;
  --qs-hero-gradient-to: #a78bfa;
}
#cv3 {
  --qs-hero-gradient-from: #fb7185;
  --qs-hero-gradient-mid: #f59e0b;
  --qs-hero-gradient-to: #66C0A3;
}
#gs3 {
  --qs-hero-gradient-from: #66C0A3;
  --qs-hero-gradient-mid: #38bdf8;
  --qs-hero-gradient-to: #a78bfa;
}
#ex3 {
  --qs-hero-gradient-from: #6ee7b7;
  --qs-hero-gradient-mid: #66C0A3;
  --qs-hero-gradient-to: #38bdf8;
}

:is(
  #hr-demo .hr-h1,
  #qs-mcp-feature-page .qmcp-h1,
  #qs-api-feature-page .qapi-h1,
  #fv3 .fv3-h1,
  #aq3 .aq3-h1,
  #pr3 .pr3-h1,
  #nv-demo .nv-h1,
  #au3 .au3-h1,
  #df3 .df3-h1,
  #sh3 .sh3-h1,
  #cv3 .cv3-h1,
  #gs3 .gs3-h1,
  #ex3 .ex3-h1
) em {
  color: var(--qs-hero-gradient-from, var(--qs-mint-green)) !important;
  background: linear-gradient(
    105deg,
    var(--qs-hero-gradient-from, var(--qs-mint-green)) 0%,
    var(--qs-hero-gradient-mid, var(--qs-accent)) 52%,
    var(--qs-hero-gradient-to, var(--qs-slate-blue)) 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.qs-btn-primary {
  font-family: var(--qs-font-sans);
  font-weight: 600;
  border-radius: var(--qs-btn-radius);
  background: var(--qs-accent);
  color: var(--qs-dark-teal);
  padding: 0.85rem 1.6rem;
  display: inline-block;
  border: none;
}

/* Faint SEO/support paragraph under heroes. AA-compliant muted tone. */
.qs-marketing-fineprint {
  font-family: var(--qs-font-sans);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--qs-muted);
}

/* ============================================================
   Shared component: OS support badge strip (.qs-osb*)
   Identical across the integration / home / pricing widgets. This is the
   canonical copy -- pages drop their local copy once this is live so the
   strip is styled once. Solid brand hexes are tokenised; the alpha tints
   (rgba mint/slate) stay literal until we add rgb-channel tokens. The dark
   widget surface neutrals (#d4e8e4, white/black alphas) are not brand
   tokens and stay literal by design.
   ============================================================ */
.qs-osb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 4px;font-family:var(--qs-font-sans)}
.qs-osb-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--qs-medium-gray);white-space:nowrap;margin-right:2px}
.qs-osb-badge{position:relative;display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 7px;border-radius:20px;border:1.5px solid transparent;background:rgba(255,255,255,.04);cursor:default;transition:box-shadow .18s,background .18s;line-height:1}
.qs-osb-ok{border-color:var(--qs-mint-green)}.qs-osb-soon{border-color:rgba(101,137,166,.45)}
.qs-osb-badge:hover{box-shadow:0 2px 10px rgba(0,0,0,.22);background:rgba(255,255,255,.07)}
.qs-osb-icon{width:20px;height:20px;min-width:20px;min-height:20px;max-width:20px;max-height:20px;object-fit:contain;flex-shrink:0;display:block}
.qs-osb-icon-dim{opacity:.5}
.qs-osb-name{font-size:12px;font-weight:500;color:#d4e8e4;white-space:nowrap}.qs-osb-soon .qs-osb-name{color:var(--qs-medium-gray)}
.qs-osb-status{font-size:10px;font-weight:600;white-space:nowrap;padding:2px 6px;border-radius:10px}
.qs-osb-ok .qs-osb-status{background:rgba(102,192,163,.18);color:var(--qs-mint-green)}.qs-osb-soon .qs-osb-status{background:rgba(101,137,166,.15);color:var(--qs-slate-blue)}
.qs-osb-tip{visibility:hidden;opacity:0;position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);background:var(--qs-dark-teal);border:1px solid rgba(102,192,163,.25);color:#d4e8e4;font-size:11px;font-weight:400;padding:5px 10px;border-radius:6px;white-space:nowrap;pointer-events:none;transition:opacity .15s;z-index:20;box-shadow:0 4px 14px rgba(0,0,0,.35)}.qs-osb-tip::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border:5px solid transparent;border-top-color:var(--qs-dark-teal)}
.qs-osb-badge:hover .qs-osb-tip{visibility:visible;opacity:1}
@media(max-width:480px){.qs-osb{gap:6px}.qs-osb-label{width:100%}}

/* ============================================================
   Motion system -- hero entrance + scroll reveal (centralized).
   --------------------------------------------------------------
   HERO ENTRANCE: staggered fade-up of a hero's direct children on
   load. Applied to the pages that shipped no entrance of their own.
   Competition (#cv3), MCP (#qs-mcp-feature-page) and text-to-sql
   (#nv-demo) keep their existing hero animations, so they are NOT in
   this list -- including them would double-animate (their local rule
   animates the hero block while this would animate its children).

   SCROLL REVEAL: .qs-reveal elements start hidden and fade up when
   they enter the viewport. The 4 pages that lacked an
   IntersectionObserver (MCP, REST API, text-to-sql, pricing) tag
   their sections .qs-reveal and ship a tiny observer in their widget
   that toggles .qs-visible. A 3s JS safety-timeout in each observer
   plus the reduced-motion guard below guarantee content is never
   left hidden if JS or the observer fails.
   ============================================================ */
@keyframes qs-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

:is(#hr-demo .hr-hero-inner, #fv3 .fv3-hero-inner, #qs-api-feature-page .qapi-hero-inner, #sh3 .sh3-hero-inner, #df3 .df3-hero-inner, #aq3 .aq3-hero-inner, #au3 .au3-hero-inner, #ex3 .ex3-hero-inner, #gs3 .gs3-hero-inner, #pr3 .pr3-hero-inner) > * { animation: qs-fade-up 0.7s ease both; }
:is(#hr-demo .hr-hero-inner, #fv3 .fv3-hero-inner, #qs-api-feature-page .qapi-hero-inner, #sh3 .sh3-hero-inner, #df3 .df3-hero-inner, #aq3 .aq3-hero-inner, #au3 .au3-hero-inner, #ex3 .ex3-hero-inner, #gs3 .gs3-hero-inner, #pr3 .pr3-hero-inner) > *:nth-child(1) { animation-delay: 0.02s; }
:is(#hr-demo .hr-hero-inner, #fv3 .fv3-hero-inner, #qs-api-feature-page .qapi-hero-inner, #sh3 .sh3-hero-inner, #df3 .df3-hero-inner, #aq3 .aq3-hero-inner, #au3 .au3-hero-inner, #ex3 .ex3-hero-inner, #gs3 .gs3-hero-inner, #pr3 .pr3-hero-inner) > *:nth-child(2) { animation-delay: 0.08s; }
:is(#hr-demo .hr-hero-inner, #fv3 .fv3-hero-inner, #qs-api-feature-page .qapi-hero-inner, #sh3 .sh3-hero-inner, #df3 .df3-hero-inner, #aq3 .aq3-hero-inner, #au3 .au3-hero-inner, #ex3 .ex3-hero-inner, #gs3 .gs3-hero-inner, #pr3 .pr3-hero-inner) > *:nth-child(3) { animation-delay: 0.14s; }
:is(#hr-demo .hr-hero-inner, #fv3 .fv3-hero-inner, #qs-api-feature-page .qapi-hero-inner, #sh3 .sh3-hero-inner, #df3 .df3-hero-inner, #aq3 .aq3-hero-inner, #au3 .au3-hero-inner, #ex3 .ex3-hero-inner, #gs3 .gs3-hero-inner, #pr3 .pr3-hero-inner) > *:nth-child(n+4) { animation-delay: 0.20s; }

:is(#qs-mcp-feature-page, #qs-api-feature-page, #nv-demo, #pr3) .qs-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
:is(#qs-mcp-feature-page, #qs-api-feature-page, #nv-demo, #pr3) .qs-reveal.qs-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  :is(#hr-demo .hr-hero-inner, #fv3 .fv3-hero-inner, #qs-api-feature-page .qapi-hero-inner, #sh3 .sh3-hero-inner, #df3 .df3-hero-inner, #aq3 .aq3-hero-inner, #au3 .au3-hero-inner, #ex3 .ex3-hero-inner, #gs3 .gs3-hero-inner, #pr3 .pr3-hero-inner) > * { animation: none !important; }
  :is(#qs-mcp-feature-page, #qs-api-feature-page, #nv-demo, #pr3) .qs-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   v4 PORTAL KIT -- shared components for the Portal-style pages.
   Every v4 page wraps its content in <div id="qspx-*" data-qs="...">,
   so these rules scope under [data-qs]: they touch ONLY the v4 pages,
   and the added attribute specificity beats the per-page .qspx-* base
   rules that load later in the widget body (so central wins without
   !important). Design tokens (--emerald*, --ease, --ink*, --ico,
   --border-2, --glass*, --focus, --font-d) are declared on each v4
   wrapper and inherit inward. This is the single home for these
   components going forward; per-page copies are now redundant and can
   be thinned in a later migration pass.
   ============================================================ */

/* -- Feature-card hover motion (.qspx-cap): icon slides up + grows + casts a
      shadow + emerald glow blooms; card lifts; arrow slides. Decorative only --
      NOTHING is hover-gated, so touch devices & screen readers lose nothing. -- */
[data-qs] .qspx-cap{transition:transform .25s var(--ease),border-color .25s var(--ease),box-shadow .25s var(--ease)}
[data-qs] .qspx-cap-ic{position:relative;transition:transform .3s var(--ease),color .3s var(--ease)}
[data-qs] .qspx-cap-ic::before{content:"";position:absolute;left:-10px;top:50%;width:70px;height:70px;transform:translateY(-50%) scale(.55);
  background:radial-gradient(circle,oklch(64% 0.16 158 / .40),transparent 68%);filter:blur(7px);opacity:0;z-index:0;pointer-events:none;
  transition:opacity .34s var(--ease),transform .34s var(--ease)}
[data-qs] .qspx-cap-ic svg{position:relative;z-index:1;transform-origin:left center;transition:transform .3s var(--ease),filter .3s var(--ease)}
[data-qs] .qspx-cap .qspx-link i{transition:transform .25s var(--ease)}
[data-qs] .qspx-cap:hover{transform:translateY(-5px);border-color:var(--emerald-line);box-shadow:0 26px 54px -24px oklch(64% 0.16 158 / .6)}
[data-qs] .qspx-cap:hover .qspx-cap-ic{transform:translateY(-5px);color:var(--emerald-bright)}
[data-qs] .qspx-cap:hover .qspx-cap-ic svg{transform:scale(1.1);filter:drop-shadow(0 10px 12px rgba(2,8,23,.6))}
[data-qs] .qspx-cap:hover .qspx-cap-ic::before{opacity:1;transform:translateY(-50%) scale(1)}
[data-qs] .qspx-cap:hover .qspx-link i{transform:translateX(4px)}

/* -- Pop-out cross-link chip (.qspx-chip): icon rides an elevated tile that pops
      out of the top-left & ignites emerald on hover. Canonical home. -- */
[data-qs] .qspx-chip-row{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem .7rem;padding-top:.7rem}
[data-qs] .qspx-chip{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1.15rem .6rem .7rem;margin-top:.35rem;
  font-family:var(--font-d);font-weight:600;font-size:.92rem;line-height:1;color:var(--ink-2);text-decoration:none;white-space:nowrap;
  background:linear-gradient(180deg,var(--glass),var(--glass-2));border:1px solid var(--border-2);border-radius:999px;overflow:visible;
  transition:transform .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease),box-shadow .2s var(--ease),background .2s var(--ease)}
[data-qs] .qspx-chip-ic{flex-shrink:0;width:34px;height:34px;margin:-14px 0 -6px -6px;display:grid;place-items:center;border-radius:11px;
  color:var(--ico);font-size:.92rem;background:linear-gradient(150deg,oklch(31% 0.038 260),oklch(23% 0.042 264));border:1px solid var(--border-2);
  box-shadow:0 9px 18px -6px rgba(2,8,23,.75),inset 0 1px 0 oklch(100% 0 0 / .10);
  transition:transform .2s var(--ease),background .2s var(--ease),box-shadow .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease)}
[data-qs] .qspx-chip:hover{transform:translateY(-2px);color:var(--ink);border-color:var(--emerald-line);
  background:linear-gradient(180deg,oklch(64% 0.16 158 / .13),var(--glass-2));box-shadow:0 18px 36px -18px oklch(64% 0.16 158 / .6)}
[data-qs] .qspx-chip:hover .qspx-chip-ic{transform:translateY(-3px) rotate(-4deg);color:var(--ink);
  background:linear-gradient(150deg,var(--emerald),var(--emerald-2));border-color:var(--emerald-bright);
  box-shadow:0 14px 24px -6px oklch(64% 0.16 158 / .75),inset 0 1px 0 oklch(100% 0 0 / .22)}
[data-qs] .qspx-chip:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-color:var(--emerald-line)}
[data-qs] .qspx-chip:active{transform:translateY(0);box-shadow:0 6px 16px -12px oklch(64% 0.16 158 / .5)}
[data-qs] .qspx-chip:active .qspx-chip-ic{transform:translateY(-1px) rotate(0)}
@media (max-width:560px){[data-qs] .qspx-chip{width:100%;justify-content:flex-start}}

@media (prefers-reduced-motion: reduce) {
  [data-qs] .qspx-cap,[data-qs] .qspx-cap-ic,[data-qs] .qspx-cap-ic::before,[data-qs] .qspx-cap-ic svg,[data-qs] .qspx-cap .qspx-link i{transition:none}
  [data-qs] .qspx-cap:hover{transform:none}
  [data-qs] .qspx-cap:hover .qspx-cap-ic,[data-qs] .qspx-cap:hover .qspx-cap-ic svg{transform:none;filter:none}
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- File Set connector family
 *
 * BetterDocs exposes icons per CATEGORY and per LIST (one glyph for every row),
 * never per article, so the theme inlines an identical <svg> into each row. The
 * row's own href is the only per-article hook in the markup, so match on the
 * doc slug and swap the glyph for that connector's icon -- the same art the
 * marketing directory modal uses (see connectors/qs-connectors.js), so a reader
 * who clicks through from the directory meets the mark they just clicked.
 *
 * Two surfaces carry these rows, with different markup:
 *   .betterdocs-articles-list li     -> <li><svg><a href><span>Title</span></a>
 *   h2.betterdocs-entry-title        -> <span><svg></span><a href>Title</a>
 * Unscoped by [data-qs] on purpose -- BetterDocs pages do not carry that attr.
 *
 * Assets are PNGs in WP media, not the Portal's SVGs. WordPress refuses SVG
 * uploads by default and that is a setting worth keeping; at a 64px source for
 * an 18-20px box there is nothing to gain from vector here anyway.
 *
 * Adding an article is ONE new block in the assignment list below -- the four
 * mechanism rules take a slug list each and need the slug appended. Failing to
 * append it means no icon, never the wrong icon, which is the right failure.
 * --------------------------------------------------------------------------- */

/* 1. Per-article assignment. The only part that differs per row. Set on both
      surfaces at once; custom properties inherit into the pseudo-elements. */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-query-a-folder-of-files-with-sql/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-fileset-hub.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/combine-multiple-csv-files-into-one-table/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-csv-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/query-a-folder-of-parquet-files-with-sql/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-parquet-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/merge-multiple-excel-files-into-one-table/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-excel-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/combine-multiple-sqlite-database-files/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-sqlite-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/turn-a-folder-of-json-files-into-sql-tables/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-jsonl-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/query-multi-record-csv-files-with-sql/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-recordtype-csv.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/index-a-file-system-and-query-it-with-sql/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-file-system.png");
}
/* 2026-11-09: the six File Set log guides (same marks as their MCP siblings above/below) */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/cnc-machine-monitoring-with-sql-from-controller-logs/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-machine-logs-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/query-nginx-and-iis-logs-with-sql/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-web-server-logs-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/query-docker-container-logs-with-sql/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-container-logs-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/query-application-logs-with-sql/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-application-logs-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/query-syslog-files-with-sql/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-syslog-files-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/custom-log-analysis-with-sql/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/logbrand-custom-log-folder.png");
}
/* 2026-11-09: the last 11 docs on the theme glyph (setup, MCP hub, security, filters); existing marks only */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/microsoft-access-connector-setup/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/microsoft-access-2019-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/microsoft-sql-server-connector-setup/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-sqlserver-pennant.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/postgresql-connector-setup/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/postgreesql-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/where-the-agent-can-read-files-from/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-file-system.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/create-a-read-only-database-user/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-setup-permissions.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/open-a-firewall-port-on-windows/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/11/tile-connector-setup-t2-180.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/is-the-agent-online/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-mcp-icon-network-agent.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/schema-too-large-to-capture/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-nova-schema.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/connect-query-streams-to-claude-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/11/tile-mcp-simple-t2-60.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/security-overview/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/11/tile-security-trust-t2-180.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/query-streams-sql-filters-and-parameters-overview/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/11/tile-sql-filter-parameters-t2-180.png");
}

/* 2. Surface 1 -- category/tree list. Markup: <li><svg><a href><span>Title.
      The glyph is a bare sibling svg with no tile behind it, so replace it
      outright. :has() takes a selector list and matches on any, which keeps the
      eight slugs to one rule rather than eight. */
.betterdocs-articles-list li:has(
  > a[href*="/docs/how-to-query-a-folder-of-files-with-sql/"],
  > a[href*="/docs/combine-multiple-csv-files-into-one-table/"],
  > a[href*="/docs/query-a-folder-of-parquet-files-with-sql/"],
  > a[href*="/docs/merge-multiple-excel-files-into-one-table/"],
  > a[href*="/docs/combine-multiple-sqlite-database-files/"],
  > a[href*="/docs/turn-a-folder-of-json-files-into-sql-tables/"],
  > a[href*="/docs/query-multi-record-csv-files-with-sql/"],
  > a[href*="/docs/index-a-file-system-and-query-it-with-sql/"],
  > a[href*="/docs/cnc-machine-monitoring-with-sql-from-controller-logs/"],
  > a[href*="/docs/query-nginx-and-iis-logs-with-sql/"],
  > a[href*="/docs/query-docker-container-logs-with-sql/"],
  > a[href*="/docs/query-application-logs-with-sql/"],
  > a[href*="/docs/query-syslog-files-with-sql/"],
  > a[href*="/docs/custom-log-analysis-with-sql/"],
  > a[href*="/docs/microsoft-access-connector-setup/"],
  > a[href*="/docs/microsoft-sql-server-connector-setup/"],
  > a[href*="/docs/postgresql-connector-setup/"],
  > a[href*="/docs/where-the-agent-can-read-files-from/"],
  > a[href*="/docs/create-a-read-only-database-user/"],
  > a[href*="/docs/open-a-firewall-port-on-windows/"],
  > a[href*="/docs/is-the-agent-online/"],
  > a[href*="/docs/schema-too-large-to-capture/"],
  > a[href*="/docs/connect-query-streams-to-claude-mcp/"],
  > a[href*="/docs/security-overview/"],
  > a[href*="/docs/query-streams-sql-filters-and-parameters-overview/"]
) > svg {
  display: none;
}
.betterdocs-articles-list li:has(
  > a[href*="/docs/how-to-query-a-folder-of-files-with-sql/"],
  > a[href*="/docs/combine-multiple-csv-files-into-one-table/"],
  > a[href*="/docs/query-a-folder-of-parquet-files-with-sql/"],
  > a[href*="/docs/merge-multiple-excel-files-into-one-table/"],
  > a[href*="/docs/combine-multiple-sqlite-database-files/"],
  > a[href*="/docs/turn-a-folder-of-json-files-into-sql-tables/"],
  > a[href*="/docs/query-multi-record-csv-files-with-sql/"],
  > a[href*="/docs/index-a-file-system-and-query-it-with-sql/"],
  > a[href*="/docs/cnc-machine-monitoring-with-sql-from-controller-logs/"],
  > a[href*="/docs/query-nginx-and-iis-logs-with-sql/"],
  > a[href*="/docs/query-docker-container-logs-with-sql/"],
  > a[href*="/docs/query-application-logs-with-sql/"],
  > a[href*="/docs/query-syslog-files-with-sql/"],
  > a[href*="/docs/custom-log-analysis-with-sql/"],
  > a[href*="/docs/microsoft-access-connector-setup/"],
  > a[href*="/docs/microsoft-sql-server-connector-setup/"],
  > a[href*="/docs/postgresql-connector-setup/"],
  > a[href*="/docs/where-the-agent-can-read-files-from/"],
  > a[href*="/docs/create-a-read-only-database-user/"],
  > a[href*="/docs/open-a-firewall-port-on-windows/"],
  > a[href*="/docs/is-the-agent-online/"],
  > a[href*="/docs/schema-too-large-to-capture/"],
  > a[href*="/docs/connect-query-streams-to-claude-mcp/"],
  > a[href*="/docs/security-overview/"],
  > a[href*="/docs/query-streams-sql-filters-and-parameters-overview/"]
)::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}

/* 3. Surface 2 -- excerpt card list. Markup: <h2><span><svg></span><a href>Title.
      Here the glyph sits inside a grey rounded tile the theme styles at three-class
      specificity (0,3,0):
        .betterdocs-title-excerpt-lists .betterdocs-title-excerpt-list
        .betterdocs-entry-title span { background:#f2f4f7; height:32px; aspect-ratio:1 }
      No :has() selector we can write reaches (0,3,0) without !important, so setting
      background on the span itself is silently dropped and leaves an empty tile --
      which is exactly how this first shipped, glyph hidden and nothing drawn.
      Keep the tile (it is the intended design) and paint the icon inside it via a
      pseudo-element, which no theme rule targets. 18px matches the theme's own
      `.betterdocs-entry-title span svg { width:18px }` so sizing stays identical. */
h2.betterdocs-entry-title:has(
  > a[href*="/docs/how-to-query-a-folder-of-files-with-sql/"],
  > a[href*="/docs/combine-multiple-csv-files-into-one-table/"],
  > a[href*="/docs/query-a-folder-of-parquet-files-with-sql/"],
  > a[href*="/docs/merge-multiple-excel-files-into-one-table/"],
  > a[href*="/docs/combine-multiple-sqlite-database-files/"],
  > a[href*="/docs/turn-a-folder-of-json-files-into-sql-tables/"],
  > a[href*="/docs/query-multi-record-csv-files-with-sql/"],
  > a[href*="/docs/index-a-file-system-and-query-it-with-sql/"],
  > a[href*="/docs/cnc-machine-monitoring-with-sql-from-controller-logs/"],
  > a[href*="/docs/query-nginx-and-iis-logs-with-sql/"],
  > a[href*="/docs/query-docker-container-logs-with-sql/"],
  > a[href*="/docs/query-application-logs-with-sql/"],
  > a[href*="/docs/query-syslog-files-with-sql/"],
  > a[href*="/docs/custom-log-analysis-with-sql/"],
  > a[href*="/docs/microsoft-access-connector-setup/"],
  > a[href*="/docs/microsoft-sql-server-connector-setup/"],
  > a[href*="/docs/postgresql-connector-setup/"],
  > a[href*="/docs/where-the-agent-can-read-files-from/"],
  > a[href*="/docs/create-a-read-only-database-user/"],
  > a[href*="/docs/open-a-firewall-port-on-windows/"],
  > a[href*="/docs/is-the-agent-online/"],
  > a[href*="/docs/schema-too-large-to-capture/"],
  > a[href*="/docs/connect-query-streams-to-claude-mcp/"],
  > a[href*="/docs/security-overview/"],
  > a[href*="/docs/query-streams-sql-filters-and-parameters-overview/"]
) > span > svg {
  display: none;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/how-to-query-a-folder-of-files-with-sql/"],
  > a[href*="/docs/combine-multiple-csv-files-into-one-table/"],
  > a[href*="/docs/query-a-folder-of-parquet-files-with-sql/"],
  > a[href*="/docs/merge-multiple-excel-files-into-one-table/"],
  > a[href*="/docs/combine-multiple-sqlite-database-files/"],
  > a[href*="/docs/turn-a-folder-of-json-files-into-sql-tables/"],
  > a[href*="/docs/query-multi-record-csv-files-with-sql/"],
  > a[href*="/docs/index-a-file-system-and-query-it-with-sql/"],
  > a[href*="/docs/cnc-machine-monitoring-with-sql-from-controller-logs/"],
  > a[href*="/docs/query-nginx-and-iis-logs-with-sql/"],
  > a[href*="/docs/query-docker-container-logs-with-sql/"],
  > a[href*="/docs/query-application-logs-with-sql/"],
  > a[href*="/docs/query-syslog-files-with-sql/"],
  > a[href*="/docs/custom-log-analysis-with-sql/"],
  > a[href*="/docs/microsoft-access-connector-setup/"],
  > a[href*="/docs/microsoft-sql-server-connector-setup/"],
  > a[href*="/docs/postgresql-connector-setup/"],
  > a[href*="/docs/where-the-agent-can-read-files-from/"],
  > a[href*="/docs/create-a-read-only-database-user/"],
  > a[href*="/docs/open-a-firewall-port-on-windows/"],
  > a[href*="/docs/is-the-agent-online/"],
  > a[href*="/docs/schema-too-large-to-capture/"],
  > a[href*="/docs/connect-query-streams-to-claude-mcp/"],
  > a[href*="/docs/security-overview/"],
  > a[href*="/docs/query-streams-sql-filters-and-parameters-overview/"]
) > span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- MCP Server connector family
 *
 * Same mechanism as the File Set block above (read its header for why this is
 * CSS at all), with one structural difference worth copying next time.
 *
 * Every article in this category ends in `-claude-via-mcp`, so ONE attribute
 * selector matches the whole family and the mechanism rules stay a single
 * selector each instead of the eight-slug lists the File Set block needs.
 * The File Set slugs are deliberately keyword-shaped and share no stem, so that
 * block cannot be rewritten this way -- it is not an oversight there.
 *
 * The shared stem also buys a better failure mode. Rule 1 gives every MCP row
 * the generic MCP glyph, and later rules override it per connector. A future
 * MCP article nobody assigns an icon to therefore lands on the family glyph,
 * where in the File Set block the same omission hides the theme's glyph and
 * draws nothing. Rule 1 MUST stay above every assignment that overrides it --
 * including the whole shared block further down. All of them compute to
 * (0,2,2), so only source order decides.
 *
 * NOTHING is assigned per-article here any more. All sixteen rows -- ten
 * databases and six SaaS connectors -- are served by the two shared connector
 * blocks below, because every one of them shares a slug stem with its guides in
 * other categories. What remains here is the family default and the mechanism,
 * which are the only genuinely category-shaped parts.
 * --------------------------------------------------------------------------- */

/* 1. Family default -- keep above every assignment, here and in the shared
      blocks below. It is now purely a safety net: every current MCP article is
      assigned by a stem, so this only shows if someone adds a connector article
      without adding its stem. */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/05/icons8-mcp-48.png");
}

/* 2. Surface 1 -- category/tree list. Bare sibling svg, no tile: replace it. */
.betterdocs-articles-list li:has(> a[href*="-claude-via-mcp/"]) > svg {
  display: none;
}
.betterdocs-articles-list li:has(> a[href*="-claude-via-mcp/"])::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}

/* 3. Surface 2 -- excerpt card list. The glyph sits in a grey tile the theme
      styles at (0,3,0), which no :has() selector here can outrank without
      !important -- so paint inside the tile via a pseudo-element rather than
      setting background on the span, which is silently dropped. 18px matches
      the theme's own `.betterdocs-entry-title span svg { width:18px }`. */
h2.betterdocs-entry-title:has(> a[href*="-claude-via-mcp/"]) > span > svg {
  display: none;
}
h2.betterdocs-entry-title:has(> a[href*="-claude-via-mcp/"]) > span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- MCP Server connector family -- wave 2 (2026-09-27)
 *
 * Sixteen articles added on 2026-09-27 whose slugs share NO stem with guides in
 * other categories: Supabase (no other guide yet), the two API guides whose
 * other slugs use a different shape, and the thirteen File Set folder/log
 * guides, whose slugs are keyword-shaped on purpose (Google Ads research,
 * BetterDocs/_docs/mcp-sources/keywords-files.md). Whole-slug stems, one rule
 * each, placed AFTER the family default above so they win on source order; the
 * family mechanism rules already hide the glyph and paint --qs-doc-icon on
 * every "-claude-via-mcp/" row, so nothing else is needed here.
 *
 * Icons: the File Set marks reuse the qs-doc-*.png art the older folder guides
 * carry, so a reader sees one mark per source across both families. The six log
 * marks and the container mark are 128px PNGs rasterised from the Portal's
 * data-sources SVGs (Tools/Icons/out/folder-icons, resvg) and uploaded 09-27
 * (media 6745-6751); WordPress refuses SVG, see the File Set header above.
 * Catalog of record: BetterDocs/_scripts/_build-mcp-catalog.mjs FS_ICONS.
 * --------------------------------------------------------------------------- */
/* Supabase */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-supabase-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/supabase.png");
}
/* ShipStation (the query- slug shape the API block does not carry) */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-query-shipstation-with-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-shipstation-icononly.png");
}
/* iTick (its other guides predate the how-to- prefix) */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-query-itick-with-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/03/itick-logo.png");
}
/* File System */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-a-file-system-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-file-system.png");
}
/* CSV Folder */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-csv-files-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-csv-folder.png");
}
/* Parquet Folder */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-parquet-files-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-parquet-folder.png");
}
/* Excel Folder */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-excel-files-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-excel-folder.png");
}
/* SQLite Folder */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-multiple-sqlite-databases-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-sqlite-folder.png");
}
/* JSONL Folder */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-jsonl-files-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-jsonl-folder.png");
}
/* Multi-record CSV */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-multi-record-csv-files-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-recordtype-csv.png");
}
/* Machine Logs */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-cnc-machine-logs-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-machine-logs-128.png");
}
/* Web Server Logs */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-web-server-logs-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-web-server-logs-128.png");
}
/* Container Logs */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-docker-logs-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-container-logs-128.png");
}
/* Application Logs */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-application-logs-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-application-logs-128.png");
}
/* System Logs */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-syslog-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-syslog-files-128.png");
}
/* Custom Log Folder */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-log-files-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/logbrand-custom-log-folder.png");
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- MCP Server connector family -- wave 3 (2026-09-27)
 *
 * Twenty-seven hosted-database presets (Neon, RDS, Azure, Cloud SQL, AlloyDB,
 * DigitalOcean, Aiven, Crunchy Bridge, Heroku, Render, Railway, Fly.io, Vultr,
 * OVHcloud, Scaleway, OCI, HeatWave, IBM Cloud, SkySQL, Xata, Timescale,
 * PlanetScale, Prisma, Koyeb, Nile). Whole-slug stems, one rule each, after the
 * family default so they win on source order; the family mechanism paints them.
 * Icons: the catalog's 32px marks were too small for the 20px box after
 * resampling, so 27 square marks (Portal data-sources art, provider touch icons
 * or Brandfetch) were uploaded 09-27 as media 6785-6811. Catalog of record:
 * BetterDocs/_docs/family-mcp.json extra_sources[key].icon.
 * --------------------------------------------------------------------------- */
/* Neon */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-neon-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-neon.png");
}
/* Amazon RDS */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-amazon-rds-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-aws-rds.png");
}
/* Azure Database for PostgreSQL */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-azure-postgresql-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-azure-postgresql.png");
}
/* Azure Database for MySQL */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-azure-mysql-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-azure-mysql.png");
}
/* Azure SQL */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-azure-sql-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-azure-sql.png");
}
/* Google Cloud SQL */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-google-cloud-sql-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-cloud-sql.png");
}
/* Google AlloyDB */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-alloydb-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-alloydb.png");
}
/* DigitalOcean Managed Databases */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-digitalocean-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-digitalocean.png");
}
/* Aiven */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-aiven-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-aiven.png");
}
/* Crunchy Bridge */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-crunchy-bridge-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/crunchy-bridge-icon-400.png");
}
/* Heroku Postgres */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-heroku-postgres-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/heroku-postgres-icon-400.png");
}
/* Render */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-render-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/render-icon-400.png");
}
/* Railway */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-railway-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/railway-icon-400.png");
}
/* Fly.io Postgres */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-fly-io-postgres-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/flyio-postgres-icon-400.png");
}
/* Vultr Managed Databases */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-vultr-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/vultr-icon-180.png");
}
/* OVHcloud Managed Databases */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-ovhcloud-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/ovhcloud-icon-180.png");
}
/* Scaleway Managed Databases */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-scaleway-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/scaleway-icon-400.png");
}
/* OCI Database with PostgreSQL */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-oci-postgresql-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/oci-postgresql-icon-400.png");
}
/* MySQL HeatWave */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-mysql-heatwave-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/mysql-heatwave-icon.png");
}
/* IBM Cloud Databases for PostgreSQL */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-ibm-cloud-postgresql-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/ibm-cloud-postgresql-connector-icon.png");
}
/* MariaDB SkySQL */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-mariadb-skysql-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/mariadb-skysql-icon.png");
}
/* Xata */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-xata-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/xata-connector-icon.png");
}
/* Timescale Cloud */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-timescale-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/timescale-connector-icon-300x300.png");
}
/* PlanetScale Postgres */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-planetscale-postgres-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/planetscale-postgres-connector-icon.png");
}
/* Prisma Postgres */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-prisma-postgres-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/prisma-postgres-connector-icon.png");
}
/* Koyeb */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-koyeb-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/koyeb-connector-icon.png");
}
/* Nile */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-connect-nile-to-claude-via-mcp/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/nile-connector-icon.png");
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- database connectors, shared across categories
 *
 * The third structural case, and the one to reach for from now on. The two
 * blocks above key on a CATEGORY (a slug stem every article in it shares). This
 * one keys on the CONNECTOR instead, so a single rule follows one database
 * through every category that documents it.
 *
 * Each connector carries TWO stems, one per slug shape the docs use:
 *
 *   how-to-connect-<connector>-to-<target>   Data Connector Setup + MCP Server
 *   <destination>-<connector>-integration    the six Automations sub-categories
 *
 * The first matches 3 articles (Excel, Sheets, MCP); the second matches 6, one
 * per Automations destination (Airtable, Anvil.works, Baserow, Google Sheets,
 * SeaTable, Smartsheet). So ten rules here cover NINETY articles across eight
 * categories, and any future target is covered the day its article is
 * published, with no CSS change at all.
 *
 * That is why the ten MCP database rules are gone rather than sitting here
 * duplicated: they said the same thing as these stems, one target at a time.
 * The Automations rollout needed no new art either -- every one of its sixteen
 * connectors was already assigned an icon by this block or the SaaS one.
 *
 * ⚠ A stem is a substring match, so it must be verified against EVERY doc URL,
 * not just the category being rolled out. All were checked against the 235 URLs
 * in docs-sitemap.xml: `-to-` stems match exactly 3 each, `-integration/` stems
 * exactly 6 each, no URL matches two stems, and nothing outside the intended set
 * is touched. `Website/styles/check-doc-icons.js` runs that check -- do it before
 * adding a stem. A loose one (`-mysql-`) also matches prose slugs in the Articles
 * category (51 posts) and would repaint them.
 *
 * The `-integration` stems keep their trailing slash so they can only match the
 * END of a slug, which is what makes them safe to leave un-prefixed.
 *
 * SQL Server is the one connector whose stems are not `<key>`: the MCP article
 * says `sql-server`, the spreadsheet guides say `microsoft-sql-server`, so the
 * first stem drops the prefix and matches the shared tail instead.
 *
 * Icons are the marketing directory's own art (connectors/qs-connectors.js), so
 * a reader arriving from the directory modal meets the mark they clicked. Oracle
 * and SQL Server are the exceptions: the directory shipped their wordmarks,
 * which are an illegible smear in an 18px box, so both were re-cut from the real
 * vendor files -- Oracle's registered symbol, and the SQL Server pennant with
 * its pale silver cylinder dropped (no contrast against the #f2f4f7 tile).
 * Cropped, never redrawn or recoloured; Tools/Icons/SKILL.md bans both. The
 * catalog now points at the re-cut marks too, so card and docs row agree.
 * --------------------------------------------------------------------------- */

/* 1. Assignment -- one rule per connector, every category at once. */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-postgresql-to-"],
  > a[href*="-postgresql-integration/"],
  > a[href*="/docs/expose-postgresql-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/postgreesql-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-mysql-to-"],
  > a[href*="-mysql-integration/"],
  > a[href*="/docs/expose-mysql-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/my-sql-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-mariadb-to-"],
  > a[href*="-mariadb-integration/"],
  > a[href*="/docs/expose-mariadb-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/maria-db-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="-sql-server-to-"],
  > a[href*="-sql-server-integration/"],
  > a[href*="/docs/expose-sql-server-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-sqlserver-pennant.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-sqlite-to-"],
  > a[href*="-sqlite-integration/"],
  > a[href*="/docs/expose-sqlite-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/iconsqlite40x40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-microsoft-access-to-"],
  > a[href*="-microsoft-access-integration/"],
  > a[href*="/docs/expose-microsoft-access-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/microsoft-access-2019-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-oracle-to-"],
  > a[href*="-oracle-integration/"],
  > a[href*="/docs/expose-oracle-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-oracle-symbol.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-snowflake-to-"],
  > a[href*="-snowflake-integration/"],
  > a[href*="/docs/expose-snowflake-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/11/snowflake.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-duckdb-to-"],
  > a[href*="-duckdb-integration/"],
  > a[href*="/docs/expose-duckdb-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/11/icon-duckdb.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-bigquery-to-"],
  > a[href*="-bigquery-integration/"],
  > a[href*="/docs/expose-bigquery-as-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/01/bigquery40x40.png");
}

/* 2. Mechanism, both surfaces. `:has()` takes a selector LIST, so the ten stems
      fit in one argument instead of being repeated per rule -- and because that
      list is the SAME set the assignments above use, a row can never have its
      glyph hidden without one being painted in its place. That is the failure
      mode the File Set block has to avoid by hand.
      The MCP database rows are covered here AND by the MCP mechanism above.
      Deliberate: the declarations are identical, so the overlap is free, and
      neither block then depends on the other still existing. */
.betterdocs-articles-list li:has(
  > a[href*="/docs/how-to-connect-postgresql-to-"],
  > a[href*="-postgresql-integration/"],
  > a[href*="/docs/expose-postgresql-as-"],
  > a[href*="/docs/how-to-connect-mysql-to-"],
  > a[href*="-mysql-integration/"],
  > a[href*="/docs/expose-mysql-as-"],
  > a[href*="/docs/how-to-connect-mariadb-to-"],
  > a[href*="-mariadb-integration/"],
  > a[href*="/docs/expose-mariadb-as-"],
  > a[href*="-sql-server-to-"],
  > a[href*="-sql-server-integration/"],
  > a[href*="/docs/expose-sql-server-as-"],
  > a[href*="/docs/how-to-connect-sqlite-to-"],
  > a[href*="-sqlite-integration/"],
  > a[href*="/docs/expose-sqlite-as-"],
  > a[href*="/docs/how-to-connect-microsoft-access-to-"],
  > a[href*="-microsoft-access-integration/"],
  > a[href*="/docs/expose-microsoft-access-as-"],
  > a[href*="/docs/how-to-connect-oracle-to-"],
  > a[href*="-oracle-integration/"],
  > a[href*="/docs/expose-oracle-as-"],
  > a[href*="/docs/how-to-connect-snowflake-to-"],
  > a[href*="-snowflake-integration/"],
  > a[href*="/docs/expose-snowflake-as-"],
  > a[href*="/docs/how-to-connect-duckdb-to-"],
  > a[href*="-duckdb-integration/"],
  > a[href*="/docs/expose-duckdb-as-"],
  > a[href*="/docs/how-to-connect-bigquery-to-"],
  > a[href*="-bigquery-integration/"],
  > a[href*="/docs/expose-bigquery-as-"]
) > svg {
  display: none;
}
.betterdocs-articles-list li:has(
  > a[href*="/docs/how-to-connect-postgresql-to-"],
  > a[href*="-postgresql-integration/"],
  > a[href*="/docs/expose-postgresql-as-"],
  > a[href*="/docs/how-to-connect-mysql-to-"],
  > a[href*="-mysql-integration/"],
  > a[href*="/docs/expose-mysql-as-"],
  > a[href*="/docs/how-to-connect-mariadb-to-"],
  > a[href*="-mariadb-integration/"],
  > a[href*="/docs/expose-mariadb-as-"],
  > a[href*="-sql-server-to-"],
  > a[href*="-sql-server-integration/"],
  > a[href*="/docs/expose-sql-server-as-"],
  > a[href*="/docs/how-to-connect-sqlite-to-"],
  > a[href*="-sqlite-integration/"],
  > a[href*="/docs/expose-sqlite-as-"],
  > a[href*="/docs/how-to-connect-microsoft-access-to-"],
  > a[href*="-microsoft-access-integration/"],
  > a[href*="/docs/expose-microsoft-access-as-"],
  > a[href*="/docs/how-to-connect-oracle-to-"],
  > a[href*="-oracle-integration/"],
  > a[href*="/docs/expose-oracle-as-"],
  > a[href*="/docs/how-to-connect-snowflake-to-"],
  > a[href*="-snowflake-integration/"],
  > a[href*="/docs/expose-snowflake-as-"],
  > a[href*="/docs/how-to-connect-duckdb-to-"],
  > a[href*="-duckdb-integration/"],
  > a[href*="/docs/expose-duckdb-as-"],
  > a[href*="/docs/how-to-connect-bigquery-to-"],
  > a[href*="-bigquery-integration/"],
  > a[href*="/docs/expose-bigquery-as-"]
)::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/how-to-connect-postgresql-to-"],
  > a[href*="-postgresql-integration/"],
  > a[href*="/docs/expose-postgresql-as-"],
  > a[href*="/docs/how-to-connect-mysql-to-"],
  > a[href*="-mysql-integration/"],
  > a[href*="/docs/expose-mysql-as-"],
  > a[href*="/docs/how-to-connect-mariadb-to-"],
  > a[href*="-mariadb-integration/"],
  > a[href*="/docs/expose-mariadb-as-"],
  > a[href*="-sql-server-to-"],
  > a[href*="-sql-server-integration/"],
  > a[href*="/docs/expose-sql-server-as-"],
  > a[href*="/docs/how-to-connect-sqlite-to-"],
  > a[href*="-sqlite-integration/"],
  > a[href*="/docs/expose-sqlite-as-"],
  > a[href*="/docs/how-to-connect-microsoft-access-to-"],
  > a[href*="-microsoft-access-integration/"],
  > a[href*="/docs/expose-microsoft-access-as-"],
  > a[href*="/docs/how-to-connect-oracle-to-"],
  > a[href*="-oracle-integration/"],
  > a[href*="/docs/expose-oracle-as-"],
  > a[href*="/docs/how-to-connect-snowflake-to-"],
  > a[href*="-snowflake-integration/"],
  > a[href*="/docs/expose-snowflake-as-"],
  > a[href*="/docs/how-to-connect-duckdb-to-"],
  > a[href*="-duckdb-integration/"],
  > a[href*="/docs/expose-duckdb-as-"],
  > a[href*="/docs/how-to-connect-bigquery-to-"],
  > a[href*="-bigquery-integration/"],
  > a[href*="/docs/expose-bigquery-as-"]
) > span > svg {
  display: none;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/how-to-connect-postgresql-to-"],
  > a[href*="-postgresql-integration/"],
  > a[href*="/docs/expose-postgresql-as-"],
  > a[href*="/docs/how-to-connect-mysql-to-"],
  > a[href*="-mysql-integration/"],
  > a[href*="/docs/expose-mysql-as-"],
  > a[href*="/docs/how-to-connect-mariadb-to-"],
  > a[href*="-mariadb-integration/"],
  > a[href*="/docs/expose-mariadb-as-"],
  > a[href*="-sql-server-to-"],
  > a[href*="-sql-server-integration/"],
  > a[href*="/docs/expose-sql-server-as-"],
  > a[href*="/docs/how-to-connect-sqlite-to-"],
  > a[href*="-sqlite-integration/"],
  > a[href*="/docs/expose-sqlite-as-"],
  > a[href*="/docs/how-to-connect-microsoft-access-to-"],
  > a[href*="-microsoft-access-integration/"],
  > a[href*="/docs/expose-microsoft-access-as-"],
  > a[href*="/docs/how-to-connect-oracle-to-"],
  > a[href*="-oracle-integration/"],
  > a[href*="/docs/expose-oracle-as-"],
  > a[href*="/docs/how-to-connect-snowflake-to-"],
  > a[href*="-snowflake-integration/"],
  > a[href*="/docs/expose-snowflake-as-"],
  > a[href*="/docs/how-to-connect-duckdb-to-"],
  > a[href*="-duckdb-integration/"],
  > a[href*="/docs/expose-duckdb-as-"],
  > a[href*="/docs/how-to-connect-bigquery-to-"],
  > a[href*="-bigquery-integration/"],
  > a[href*="/docs/expose-bigquery-as-"]
) > span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- SaaS / API connectors, shared across categories
 *
 * Same connector-keyed shape as the database block above; read its header for
 * the rules. The only difference is that these connectors are documented under
 * THREE slug shapes rather than two, so most rules carry three stems:
 *
 *     how-to-connect-<connector>-to-<target>   API to SQL Connector Setup   (2)
 *     how-to-query-<connector>-with-<client>   MCP Server                   (1)
 *     <destination>-<connector>-integration    Automations x6               (6)
 *
 * Eight rules cover 56 articles across eight categories. This is also what
 * retired the six per-article SaaS rules that used to live in the MCP block --
 * each is now just another stem on its connector's rule.
 *
 * Three connectors are deliberately short a stem:
 *   - iTick's guides predate the `how-to-` prefix (`connect-itick-to-excel`),
 *     so its stem starts at `connect-` and would still match a `how-to-` one.
 *     It has no Automations articles.
 *   - Google Ads has only the MCP article today; the other stems get added the
 *     day those articles ship, not before.
 *   - ShipStation has no MCP article, so it carries the `-to-` and
 *     `-integration/` stems only.
 *
 * Verified the same way as the database block: every group checked against the
 * 235 URLs in docs-sitemap.xml, no URL claimed by two connectors, nothing
 * outside the intended set touched. Note `google-analytics` vs `google-ads` vs
 * `google-search-console` all share a prefix -- that is exactly the kind of
 * near-collision the sitemap check exists to catch, so do not skip it.
 *
 * ShipStation is the one mark that changed for this rollout, and it needed no
 * art at all: the catalog was pointing at `icon-shipstation-logoname` -- an
 * OPAQUE JPEG of the gear plus a wordmark, which at 18px is a smear on a white
 * rectangle that fights the #f2f4f7 tile. The Portal already shipped
 * `icon-shipstation-icononly.png`, a transparent PNG of the gear alone. Used
 * as-is, not cropped and not recoloured. The catalog now points at it too.
 * --------------------------------------------------------------------------- */

/* 1. Assignment -- one rule per connector, every slug shape, every category. */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-stripe-to-"],
  > a[href*="/docs/how-to-query-stripe-with-"],
  > a[href*="-stripe-integration/"],
  > a[href*="/docs/stripe-reporting-api-"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/12/icon-stripe.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-shopify-to-"],
  > a[href*="/docs/how-to-query-shopify-with-"],
  > a[href*="-shopify-integration/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/12/icon-shopify-large.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-hubspot-to-"],
  > a[href*="/docs/how-to-query-hubspot-with-"],
  > a[href*="-hubspot-integration/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/12/icon-hubspot.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-google-analytics-to-"],
  > a[href*="/docs/how-to-query-google-analytics-4-with-"],
  > a[href*="-google-analytics-integration/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/12/icon-google-analytics.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-google-search-console-to-"],
  > a[href*="/docs/how-to-query-google-search-console-with-"],
  > a[href*="-google-search-console-integration/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/12/icon-google-search-console.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/how-to-query-google-ads-with-"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-googleads.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/how-to-connect-shipstation-to-"],
  > a[href*="-shipstation-integration/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-shipstation-icononly.png");
}

/* The RestAPI Platform hub article. Not a connector, so it gets no stem family
   -- its eleven siblings in that category are all `expose-<connector>-as-rest-api`
   and are served by the database block plus the Stripe rule above. It rides in
   this block rather than getting four mechanism rules of its own for one article.
   Icon 8729 is the category's own tile (tile-api-platform t3 re-keyed 2026-11-10
   to drop the paper fill in the arch; it replaced 7866, which replaced 5807), so
   hub row and category tile agree. */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/instant-rest-api-for-sql-databases"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/11/tile-api-platform-t3k-180-150x150.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/connect-itick-to-"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/03/itick-logo.png");
}

/* 2. Mechanism, both surfaces -- same stem set as the assignments above, so a
      row can never be blanked without being repainted. */
.betterdocs-articles-list li:has(
  > a[href*="/docs/how-to-connect-stripe-to-"],
  > a[href*="/docs/how-to-query-stripe-with-"],
  > a[href*="-stripe-integration/"],
  > a[href*="/docs/stripe-reporting-api-"],
  > a[href*="/docs/instant-rest-api-for-sql-databases"],
  > a[href*="/docs/how-to-connect-shopify-to-"],
  > a[href*="/docs/how-to-query-shopify-with-"],
  > a[href*="-shopify-integration/"],
  > a[href*="/docs/how-to-connect-hubspot-to-"],
  > a[href*="/docs/how-to-query-hubspot-with-"],
  > a[href*="-hubspot-integration/"],
  > a[href*="/docs/how-to-connect-google-analytics-to-"],
  > a[href*="/docs/how-to-query-google-analytics-4-with-"],
  > a[href*="-google-analytics-integration/"],
  > a[href*="/docs/how-to-connect-google-search-console-to-"],
  > a[href*="/docs/how-to-query-google-search-console-with-"],
  > a[href*="-google-search-console-integration/"],
  > a[href*="/docs/how-to-query-google-ads-with-"],
  > a[href*="/docs/how-to-connect-shipstation-to-"],
  > a[href*="-shipstation-integration/"],
  > a[href*="/docs/connect-itick-to-"]
) > svg {
  display: none;
}
.betterdocs-articles-list li:has(
  > a[href*="/docs/how-to-connect-stripe-to-"],
  > a[href*="/docs/how-to-query-stripe-with-"],
  > a[href*="-stripe-integration/"],
  > a[href*="/docs/stripe-reporting-api-"],
  > a[href*="/docs/instant-rest-api-for-sql-databases"],
  > a[href*="/docs/how-to-connect-shopify-to-"],
  > a[href*="/docs/how-to-query-shopify-with-"],
  > a[href*="-shopify-integration/"],
  > a[href*="/docs/how-to-connect-hubspot-to-"],
  > a[href*="/docs/how-to-query-hubspot-with-"],
  > a[href*="-hubspot-integration/"],
  > a[href*="/docs/how-to-connect-google-analytics-to-"],
  > a[href*="/docs/how-to-query-google-analytics-4-with-"],
  > a[href*="-google-analytics-integration/"],
  > a[href*="/docs/how-to-connect-google-search-console-to-"],
  > a[href*="/docs/how-to-query-google-search-console-with-"],
  > a[href*="-google-search-console-integration/"],
  > a[href*="/docs/how-to-query-google-ads-with-"],
  > a[href*="/docs/how-to-connect-shipstation-to-"],
  > a[href*="-shipstation-integration/"],
  > a[href*="/docs/connect-itick-to-"]
)::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/how-to-connect-stripe-to-"],
  > a[href*="/docs/how-to-query-stripe-with-"],
  > a[href*="-stripe-integration/"],
  > a[href*="/docs/stripe-reporting-api-"],
  > a[href*="/docs/instant-rest-api-for-sql-databases"],
  > a[href*="/docs/how-to-connect-shopify-to-"],
  > a[href*="/docs/how-to-query-shopify-with-"],
  > a[href*="-shopify-integration/"],
  > a[href*="/docs/how-to-connect-hubspot-to-"],
  > a[href*="/docs/how-to-query-hubspot-with-"],
  > a[href*="-hubspot-integration/"],
  > a[href*="/docs/how-to-connect-google-analytics-to-"],
  > a[href*="/docs/how-to-query-google-analytics-4-with-"],
  > a[href*="-google-analytics-integration/"],
  > a[href*="/docs/how-to-connect-google-search-console-to-"],
  > a[href*="/docs/how-to-query-google-search-console-with-"],
  > a[href*="-google-search-console-integration/"],
  > a[href*="/docs/how-to-query-google-ads-with-"],
  > a[href*="/docs/how-to-connect-shipstation-to-"],
  > a[href*="-shipstation-integration/"],
  > a[href*="/docs/connect-itick-to-"]
) > span > svg {
  display: none;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/how-to-connect-stripe-to-"],
  > a[href*="/docs/how-to-query-stripe-with-"],
  > a[href*="-stripe-integration/"],
  > a[href*="/docs/stripe-reporting-api-"],
  > a[href*="/docs/instant-rest-api-for-sql-databases"],
  > a[href*="/docs/how-to-connect-shopify-to-"],
  > a[href*="/docs/how-to-query-shopify-with-"],
  > a[href*="-shopify-integration/"],
  > a[href*="/docs/how-to-connect-hubspot-to-"],
  > a[href*="/docs/how-to-query-hubspot-with-"],
  > a[href*="-hubspot-integration/"],
  > a[href*="/docs/how-to-connect-google-analytics-to-"],
  > a[href*="/docs/how-to-query-google-analytics-4-with-"],
  > a[href*="-google-analytics-integration/"],
  > a[href*="/docs/how-to-connect-google-search-console-to-"],
  > a[href*="/docs/how-to-query-google-search-console-with-"],
  > a[href*="-google-search-console-integration/"],
  > a[href*="/docs/how-to-query-google-ads-with-"],
  > a[href*="/docs/how-to-connect-shipstation-to-"],
  > a[href*="-shipstation-integration/"],
  > a[href*="/docs/connect-itick-to-"]
) > span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- Nova AI
 *
 * Same mechanism as the blocks above, but NOT the same keying, and the
 * difference is the point. Every other block is keyed on a connector, because
 * connector articles share a slug grammar (`how-to-connect-<x>-to-<y>`) and one
 * stem therefore sweeps up a whole family across categories. Nova's eight
 * articles are topic pages with no shared grammar at all -- `text-to-sql`,
 * `bi-and-data-analytics`, `nova-concierge-mode-...` -- so there is no family to
 * key on. These stems are whole slugs, anchored `/docs/<slug>/` at both ends,
 * and each matches exactly one article. Do not "simplify" them to a shared
 * prefix: `ai-data-analytics` is a substring of nothing here, but
 * `data-analytics` is a substring of `bi-and-data-analytics`, and dropping the
 * anchors is how you silently hand one article's icon to another.
 *
 * Five marks for eight articles -- the three analytics pages are one subject
 * from three search angles and share a mark rather than getting three
 * near-identical sheets-with-bars. Marks are new, generated through the
 * qs-icons `docs-tile` theme (requests/docs-nova-*.yaml), shipped at 64px
 * transparent: these render at 18-20px and nothing here is used on the
 * marketing directory cards, so 64 is already ~3x. The connector marks around
 * them are vendor files at whatever size the vendor shipped; that inconsistency
 * is theirs, not something to copy into generated art.
 *
 * Two of the five were redrawn after failing the 18px board. `nl-sql` was a
 * wide prompt-bar-into-sheet that read as two grey slabs once shrunk, and
 * `concierge` started as a robot mascot -- which the motif rules forbid, and
 * which at 18px is an indistinct blob besides. It is now a service bell: an
 * analyst you summon, legible as a silhouette. Check any new Nova mark on the
 * 18px board before shipping it; a concept that works at 128 routinely dies at
 * 18 and the category list is the surface that matters.
 * --------------------------------------------------------------------------- */

/* 1. Assignment -- one rule per mark. */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/natural-language-to-sql/"],
  > a[href*="/docs/text-to-sql/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-nova-nl-sql.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/ai-data-analytics/"],
  > a[href*="/docs/ai-powered-analytics/"],
  > a[href*="/docs/bi-and-data-analytics/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-nova-analytics.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/nova-ai-schema-intelligence/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-nova-schema.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/nova-concierge-mode-"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-nova-concierge.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/nova-taught-knowledge-"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-nova-knowledge.png");
}

/* 2. Mechanism, both surfaces -- same stem set as the assignments above, so a
      row can never be blanked without being repainted. */
.betterdocs-articles-list li:has(
  > a[href*="/docs/natural-language-to-sql/"],
  > a[href*="/docs/text-to-sql/"],
  > a[href*="/docs/ai-data-analytics/"],
  > a[href*="/docs/ai-powered-analytics/"],
  > a[href*="/docs/bi-and-data-analytics/"],
  > a[href*="/docs/nova-ai-schema-intelligence/"],
  > a[href*="/docs/nova-concierge-mode-"],
  > a[href*="/docs/nova-taught-knowledge-"]
) > svg {
  display: none;
}
.betterdocs-articles-list li:has(
  > a[href*="/docs/natural-language-to-sql/"],
  > a[href*="/docs/text-to-sql/"],
  > a[href*="/docs/ai-data-analytics/"],
  > a[href*="/docs/ai-powered-analytics/"],
  > a[href*="/docs/bi-and-data-analytics/"],
  > a[href*="/docs/nova-ai-schema-intelligence/"],
  > a[href*="/docs/nova-concierge-mode-"],
  > a[href*="/docs/nova-taught-knowledge-"]
)::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/natural-language-to-sql/"],
  > a[href*="/docs/text-to-sql/"],
  > a[href*="/docs/ai-data-analytics/"],
  > a[href*="/docs/ai-powered-analytics/"],
  > a[href*="/docs/bi-and-data-analytics/"],
  > a[href*="/docs/nova-ai-schema-intelligence/"],
  > a[href*="/docs/nova-concierge-mode-"],
  > a[href*="/docs/nova-taught-knowledge-"]
) > span > svg {
  display: none;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/natural-language-to-sql/"],
  > a[href*="/docs/text-to-sql/"],
  > a[href*="/docs/ai-data-analytics/"],
  > a[href*="/docs/ai-powered-analytics/"],
  > a[href*="/docs/bi-and-data-analytics/"],
  > a[href*="/docs/nova-ai-schema-intelligence/"],
  > a[href*="/docs/nova-concierge-mode-"],
  > a[href*="/docs/nova-taught-knowledge-"]
) > span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- Setup
 *
 * Whole-slug stems like the Nova block; these are five unrelated articles, not
 * a family. Four of the five marks already existed in the library and are used
 * as-is:
 *
 *     4376  icons8-windows-48      installing-query-streams-agent-windows
 *     4373  icons8-apple-inc-48    installing-query-streams-agent-macos
 *     4375  icons8-linux-48        installing-query-streams-agent-linux
 *     2283  icons8-google-sheets   install-query-streams-google-sheets-addon
 *     6071  docs-setup-permissions query-streams-user-permissions   <- new
 *
 * The three OS marks share the prefix `installing-query-streams-agent-` and are
 * separated only by the trailing OS word, so all three stems are anchored with
 * a trailing slash. Note `install-` (the Sheets add-on) is a prefix of
 * `installing-` (the agent guides) -- a stem of `/docs/install-` would claim all
 * four. Anchoring is not optional here.
 *
 * Tux was the legibility risk and passed: the yellow feet and beak against the
 * black-and-white body give it enough contrast to still read as a penguin at
 * 18px. Windows is icons8's four-colour pane, i.e. the pre-Windows-11 logo. Kept
 * because it is the same file the rest of the site already uses; swapping it is
 * a site-wide vendor-mark refresh, not a change to make from inside this block.
 * --------------------------------------------------------------------------- */

/* 1. Assignment -- one rule per mark. */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/installing-query-streams-agent-windows/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/03/icons8-windows-48.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/installing-query-streams-agent-macos/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/03/icons8-apple-inc-48.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/installing-query-streams-agent-linux/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/03/icons8-linux-48.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/install-query-streams-google-sheets-addon/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/icons8-google-sheets-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/query-streams-user-permissions/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-setup-permissions.png");
}

/* 2. Mechanism, both surfaces -- same stem set as the assignments above, so a
      row can never be blanked without being repainted. */
.betterdocs-articles-list li:has(
  > a[href*="/docs/installing-query-streams-agent-windows/"],
  > a[href*="/docs/installing-query-streams-agent-macos/"],
  > a[href*="/docs/installing-query-streams-agent-linux/"],
  > a[href*="/docs/install-query-streams-google-sheets-addon/"],
  > a[href*="/docs/query-streams-user-permissions/"]
) > svg {
  display: none;
}
.betterdocs-articles-list li:has(
  > a[href*="/docs/installing-query-streams-agent-windows/"],
  > a[href*="/docs/installing-query-streams-agent-macos/"],
  > a[href*="/docs/installing-query-streams-agent-linux/"],
  > a[href*="/docs/install-query-streams-google-sheets-addon/"],
  > a[href*="/docs/query-streams-user-permissions/"]
)::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/installing-query-streams-agent-windows/"],
  > a[href*="/docs/installing-query-streams-agent-macos/"],
  > a[href*="/docs/installing-query-streams-agent-linux/"],
  > a[href*="/docs/install-query-streams-google-sheets-addon/"],
  > a[href*="/docs/query-streams-user-permissions/"]
) > span > svg {
  display: none;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/installing-query-streams-agent-windows/"],
  > a[href*="/docs/installing-query-streams-agent-macos/"],
  > a[href*="/docs/installing-query-streams-agent-linux/"],
  > a[href*="/docs/install-query-streams-google-sheets-addon/"],
  > a[href*="/docs/query-streams-user-permissions/"]
) > span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- Articles, pass 1 (surfaces + comparisons)
 *
 * The Articles category is 51 prose pages with no slug grammar, so unlike the
 * connector blocks there is no family to key on. It splits into three piles and
 * this block ships the two that need no invention:
 *
 *   SURFACE   the page is about Excel, Google Sheets, Oracle, SQL Server,
 *             Access, Airtable or Smartsheet -- use that product's mark, which
 *             already exists in the library. Fifteen articles, zero new art.
 *   SWITCH    the page is "X alternative" -- one shared mark, fourteen articles.
 *
 * The third pile (~22 concept pages: bi-tools, data-democratization,
 * real-time-analytics ...) has no reusable art and no shared subject; it needs
 * generated thematic marks and is a separate pass.
 *
 * `-alternative` IS THE WHOLE STEM, and it is exact: fourteen live doc URLs
 * contain it and all fourteen are comparison pages. That is the widest stem in
 * this file by a distance, so re-run check-doc-icons.js after publishing any
 * article with "alternative" in the slug -- it will be swept in automatically,
 * which is usually right and occasionally not.
 *
 * ORDER IS LOAD-BEARING: `-alternative` sits LAST so it wins the tie. Six of the
 * fourteen also name a surface (`odbc-alternative-excel`,
 * `flatly-alternative-google-sheets`, `microsoft-excel-power-query-alternative`
 * ...). Today the surface stems are fully anchored whole slugs so nothing
 * actually overlaps, but if that ever changes the comparison framing is the one
 * that should win -- the page is about switching, not about Excel.
 *
 * Every surface stem is a whole slug anchored `/docs/<slug>/` at both ends. That
 * is not stylistic: `/docs/google-sheets-` would also claim the Sheets add-on
 * install guide already owned by the Setup block, and a bare `excel` would claim
 * `connect-itick-to-excel` and `merge-multiple-excel-files-into-one-table` from
 * the API and File Set blocks.
 *
 * No competitor logos here, deliberately. Only Power BI has a mark in the
 * library; the other nine vendors would each need one sourced, and per
 * brand/motifs.json "recognition of the viewer's own stack is a vendor mark, not
 * a QS icon" -- our own marks are for our own verbs. One shared switch mark also
 * covers the four comparison pages that name no vendor at all (ETL tools, ODBC
 * x2, Power Query).
 * --------------------------------------------------------------------------- */

/* 1. Assignment -- surfaces first, comparison last (see ORDER note above). */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/sql-in-excel/"],
  > a[href*="/docs/data-query-in-excel/"],
  > a[href*="/docs/import-database-into-excel/"],
  > a[href*="/docs/excel-automation/"],
  > a[href*="/docs/connect-rest-apis-to-excel-without-vba/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/icons8-excel-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/google-sheets-database/"],
  > a[href*="/docs/google-sheets-reporting/"],
  > a[href*="/docs/power-query-for-google-sheets/"],
  > a[href*="/docs/stop-struggling-with-apps-script-jdbc/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/icons8-google-sheets-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/oracle-reporting/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-oracle-symbol.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/sql-server-reporting-without-ssrs/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-sqlserver-pennant.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/microsoft-access-reports/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/microsoft-access-2019-40.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/airtable-reporting/"],
  > a[href*="/docs/airtable-automation-sync-database-api-data/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/01/icon-airtable.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/smartsheet-database-automation/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/01/icon-smartsheet.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="-alternative"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-switch-alternative.png");
}

/* 2. Mechanism, both surfaces -- same stem set as the assignments above, so a
      row can never be blanked without being repainted. */
.betterdocs-articles-list li:has(
  > a[href*="/docs/sql-in-excel/"],
  > a[href*="/docs/data-query-in-excel/"],
  > a[href*="/docs/import-database-into-excel/"],
  > a[href*="/docs/excel-automation/"],
  > a[href*="/docs/connect-rest-apis-to-excel-without-vba/"],
  > a[href*="/docs/google-sheets-database/"],
  > a[href*="/docs/google-sheets-reporting/"],
  > a[href*="/docs/power-query-for-google-sheets/"],
  > a[href*="/docs/stop-struggling-with-apps-script-jdbc/"],
  > a[href*="/docs/oracle-reporting/"],
  > a[href*="/docs/sql-server-reporting-without-ssrs/"],
  > a[href*="/docs/microsoft-access-reports/"],
  > a[href*="/docs/airtable-reporting/"],
  > a[href*="/docs/airtable-automation-sync-database-api-data/"],
  > a[href*="/docs/smartsheet-database-automation/"],
  > a[href*="-alternative"]
) > svg {
  display: none;
}
.betterdocs-articles-list li:has(
  > a[href*="/docs/sql-in-excel/"],
  > a[href*="/docs/data-query-in-excel/"],
  > a[href*="/docs/import-database-into-excel/"],
  > a[href*="/docs/excel-automation/"],
  > a[href*="/docs/connect-rest-apis-to-excel-without-vba/"],
  > a[href*="/docs/google-sheets-database/"],
  > a[href*="/docs/google-sheets-reporting/"],
  > a[href*="/docs/power-query-for-google-sheets/"],
  > a[href*="/docs/stop-struggling-with-apps-script-jdbc/"],
  > a[href*="/docs/oracle-reporting/"],
  > a[href*="/docs/sql-server-reporting-without-ssrs/"],
  > a[href*="/docs/microsoft-access-reports/"],
  > a[href*="/docs/airtable-reporting/"],
  > a[href*="/docs/airtable-automation-sync-database-api-data/"],
  > a[href*="/docs/smartsheet-database-automation/"],
  > a[href*="-alternative"]
)::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/sql-in-excel/"],
  > a[href*="/docs/data-query-in-excel/"],
  > a[href*="/docs/import-database-into-excel/"],
  > a[href*="/docs/excel-automation/"],
  > a[href*="/docs/connect-rest-apis-to-excel-without-vba/"],
  > a[href*="/docs/google-sheets-database/"],
  > a[href*="/docs/google-sheets-reporting/"],
  > a[href*="/docs/power-query-for-google-sheets/"],
  > a[href*="/docs/stop-struggling-with-apps-script-jdbc/"],
  > a[href*="/docs/oracle-reporting/"],
  > a[href*="/docs/sql-server-reporting-without-ssrs/"],
  > a[href*="/docs/microsoft-access-reports/"],
  > a[href*="/docs/airtable-reporting/"],
  > a[href*="/docs/airtable-automation-sync-database-api-data/"],
  > a[href*="/docs/smartsheet-database-automation/"],
  > a[href*="-alternative"]
) > span > svg {
  display: none;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/sql-in-excel/"],
  > a[href*="/docs/data-query-in-excel/"],
  > a[href*="/docs/import-database-into-excel/"],
  > a[href*="/docs/excel-automation/"],
  > a[href*="/docs/connect-rest-apis-to-excel-without-vba/"],
  > a[href*="/docs/google-sheets-database/"],
  > a[href*="/docs/google-sheets-reporting/"],
  > a[href*="/docs/power-query-for-google-sheets/"],
  > a[href*="/docs/stop-struggling-with-apps-script-jdbc/"],
  > a[href*="/docs/oracle-reporting/"],
  > a[href*="/docs/sql-server-reporting-without-ssrs/"],
  > a[href*="/docs/microsoft-access-reports/"],
  > a[href*="/docs/airtable-reporting/"],
  > a[href*="/docs/airtable-automation-sync-database-api-data/"],
  > a[href*="/docs/smartsheet-database-automation/"],
  > a[href*="-alternative"]
) > span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- Articles, pass 2 (topic marks)
 *
 * The concept pages left over from pass 1: no vendor to borrow a mark from, no
 * shared slug grammar, and individually too generic to earn their own art. They
 * are grouped by SUBJECT into five topic marks, generated together through the
 * qs-icons `docs-tile` theme (requests/docs-topic-*.yaml), 64px transparent.
 *
 *     bi           5  bi-tools, ...-for-small-business, business-intelligence-
 *                     software, database-dashboard, data-visualization-tools
 *     analytics    6  database-analytics, data-analytics-platform, real-time-,
 *                     financial-, ...-to-increase-sales, sql-for-data-analysts
 *     reporting    4  sql-reporting, database-reporting-tool, database-
 *                     automation, ...-schedule-sql-reports
 *     sharing      4  share-erp-crm-wms-data-easily, share-live-data-not-
 *                     credentials, data-democratization, sql-global-database-...
 *     integration  4  data-integration-platform, connect-cloud-databases-...,
 *                     no-code-database-apps-live-sql, database-vs-spreadsheet
 *
 * Two more reuse existing marks rather than adding a sixth and seventh:
 * `conversational-bi` is natural-language querying, which is exactly what the
 * Nova NL-SQL mark already depicts, and the SiteGround article is a MySQL
 * how-to, so it takes the MySQL vendor mark like every other MySQL page.
 *
 * These five were generated as a SET and boarded as a set, because the binding
 * constraint was not "is each legible at 18px" but "are these five different
 * shapes at 18px" -- they all appear in the same category list. Silhouettes are
 * deliberately one-per-family: wide tiled panel / ring / sheet-plus-disc /
 * three-disc fan / stacked slab. `sharing` and `integration` both failed the
 * first board (thin ribbons, small nodes, a narrow stack floating in the frame)
 * and were re-cut with explicit "fill the frame, nothing thin" direction. If a
 * sixth topic mark is ever added, board it against these five first.
 *
 * NOT styled, deliberately: `security-overview` and
 * `query-streams-sql-filters-and-parameters-overview` are the ONLY article in
 * their categories. A per-article icon distinguishes rows from each other, so on
 * a one-row list it buys nothing and just adds a stem to maintain.
 * --------------------------------------------------------------------------- */

/* 1. Assignment -- one rule per mark. */:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/bi-tools/"],
  > a[href*="/docs/bi-tools-for-small-business/"],
  > a[href*="/docs/business-intelligence-software/"],
  > a[href*="/docs/database-dashboard/"],
  > a[href*="/docs/data-visualization-tools/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-topic-bi.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/database-analytics/"],
  > a[href*="/docs/data-analytics-platform/"],
  > a[href*="/docs/real-time-analytics/"],
  > a[href*="/docs/financial-data-analytics/"],
  > a[href*="/docs/data-analytics-to-increase-sales/"],
  > a[href*="/docs/sql-for-data-analysts/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-topic-analytics.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/sql-reporting/"],
  > a[href*="/docs/database-reporting-tool/"],
  > a[href*="/docs/database-automation/"],
  > a[href*="/docs/database-automation-schedule-sql-reports/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-topic-reporting.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/share-erp-crm-wms-data-easily/"],
  > a[href*="/docs/share-live-data-not-credentials/"],
  > a[href*="/docs/data-democratization/"],
  > a[href*="/docs/sql-global-database-access-without-drivers-or-gateways/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-topic-sharing.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(
  > a[href*="/docs/data-integration-platform/"],
  > a[href*="/docs/connect-cloud-databases-excel-google-sheets/"],
  > a[href*="/docs/no-code-database-apps-live-sql/"],
  > a[href*="/docs/database-vs-spreadsheet/"]
) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-topic-integration.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/conversational-bi/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/docs-nova-nl-sql.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/wordpress-mysql-server-using-query-streams-hosted-on-siteground/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/09/my-sql-40.png");
}

/* 2. Mechanism, both surfaces -- same stem set as the assignments above, so a
      row can never be blanked without being repainted. */.betterdocs-articles-list li:has(
  > a[href*="/docs/bi-tools/"],
  > a[href*="/docs/bi-tools-for-small-business/"],
  > a[href*="/docs/business-intelligence-software/"],
  > a[href*="/docs/database-dashboard/"],
  > a[href*="/docs/data-visualization-tools/"],
  > a[href*="/docs/database-analytics/"],
  > a[href*="/docs/data-analytics-platform/"],
  > a[href*="/docs/real-time-analytics/"],
  > a[href*="/docs/financial-data-analytics/"],
  > a[href*="/docs/data-analytics-to-increase-sales/"],
  > a[href*="/docs/sql-for-data-analysts/"],
  > a[href*="/docs/sql-reporting/"],
  > a[href*="/docs/database-reporting-tool/"],
  > a[href*="/docs/database-automation/"],
  > a[href*="/docs/database-automation-schedule-sql-reports/"],
  > a[href*="/docs/share-erp-crm-wms-data-easily/"],
  > a[href*="/docs/share-live-data-not-credentials/"],
  > a[href*="/docs/data-democratization/"],
  > a[href*="/docs/sql-global-database-access-without-drivers-or-gateways/"],
  > a[href*="/docs/data-integration-platform/"],
  > a[href*="/docs/connect-cloud-databases-excel-google-sheets/"],
  > a[href*="/docs/no-code-database-apps-live-sql/"],
  > a[href*="/docs/database-vs-spreadsheet/"],
  > a[href*="/docs/conversational-bi/"],
  > a[href*="/docs/wordpress-mysql-server-using-query-streams-hosted-on-siteground/"]
) > svg {
  display: none;
}
.betterdocs-articles-list li:has(
  > a[href*="/docs/bi-tools/"],
  > a[href*="/docs/bi-tools-for-small-business/"],
  > a[href*="/docs/business-intelligence-software/"],
  > a[href*="/docs/database-dashboard/"],
  > a[href*="/docs/data-visualization-tools/"],
  > a[href*="/docs/database-analytics/"],
  > a[href*="/docs/data-analytics-platform/"],
  > a[href*="/docs/real-time-analytics/"],
  > a[href*="/docs/financial-data-analytics/"],
  > a[href*="/docs/data-analytics-to-increase-sales/"],
  > a[href*="/docs/sql-for-data-analysts/"],
  > a[href*="/docs/sql-reporting/"],
  > a[href*="/docs/database-reporting-tool/"],
  > a[href*="/docs/database-automation/"],
  > a[href*="/docs/database-automation-schedule-sql-reports/"],
  > a[href*="/docs/share-erp-crm-wms-data-easily/"],
  > a[href*="/docs/share-live-data-not-credentials/"],
  > a[href*="/docs/data-democratization/"],
  > a[href*="/docs/sql-global-database-access-without-drivers-or-gateways/"],
  > a[href*="/docs/data-integration-platform/"],
  > a[href*="/docs/connect-cloud-databases-excel-google-sheets/"],
  > a[href*="/docs/no-code-database-apps-live-sql/"],
  > a[href*="/docs/database-vs-spreadsheet/"],
  > a[href*="/docs/conversational-bi/"],
  > a[href*="/docs/wordpress-mysql-server-using-query-streams-hosted-on-siteground/"]
)::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/bi-tools/"],
  > a[href*="/docs/bi-tools-for-small-business/"],
  > a[href*="/docs/business-intelligence-software/"],
  > a[href*="/docs/database-dashboard/"],
  > a[href*="/docs/data-visualization-tools/"],
  > a[href*="/docs/database-analytics/"],
  > a[href*="/docs/data-analytics-platform/"],
  > a[href*="/docs/real-time-analytics/"],
  > a[href*="/docs/financial-data-analytics/"],
  > a[href*="/docs/data-analytics-to-increase-sales/"],
  > a[href*="/docs/sql-for-data-analysts/"],
  > a[href*="/docs/sql-reporting/"],
  > a[href*="/docs/database-reporting-tool/"],
  > a[href*="/docs/database-automation/"],
  > a[href*="/docs/database-automation-schedule-sql-reports/"],
  > a[href*="/docs/share-erp-crm-wms-data-easily/"],
  > a[href*="/docs/share-live-data-not-credentials/"],
  > a[href*="/docs/data-democratization/"],
  > a[href*="/docs/sql-global-database-access-without-drivers-or-gateways/"],
  > a[href*="/docs/data-integration-platform/"],
  > a[href*="/docs/connect-cloud-databases-excel-google-sheets/"],
  > a[href*="/docs/no-code-database-apps-live-sql/"],
  > a[href*="/docs/database-vs-spreadsheet/"],
  > a[href*="/docs/conversational-bi/"],
  > a[href*="/docs/wordpress-mysql-server-using-query-streams-hosted-on-siteground/"]
) > span > svg {
  display: none;
}
h2.betterdocs-entry-title:has(
  > a[href*="/docs/bi-tools/"],
  > a[href*="/docs/bi-tools-for-small-business/"],
  > a[href*="/docs/business-intelligence-software/"],
  > a[href*="/docs/database-dashboard/"],
  > a[href*="/docs/data-visualization-tools/"],
  > a[href*="/docs/database-analytics/"],
  > a[href*="/docs/data-analytics-platform/"],
  > a[href*="/docs/real-time-analytics/"],
  > a[href*="/docs/financial-data-analytics/"],
  > a[href*="/docs/data-analytics-to-increase-sales/"],
  > a[href*="/docs/sql-for-data-analysts/"],
  > a[href*="/docs/sql-reporting/"],
  > a[href*="/docs/database-reporting-tool/"],
  > a[href*="/docs/database-automation/"],
  > a[href*="/docs/database-automation-schedule-sql-reports/"],
  > a[href*="/docs/share-erp-crm-wms-data-easily/"],
  > a[href*="/docs/share-live-data-not-credentials/"],
  > a[href*="/docs/data-democratization/"],
  > a[href*="/docs/sql-global-database-access-without-drivers-or-gateways/"],
  > a[href*="/docs/data-integration-platform/"],
  > a[href*="/docs/connect-cloud-databases-excel-google-sheets/"],
  > a[href*="/docs/no-code-database-apps-live-sql/"],
  > a[href*="/docs/database-vs-spreadsheet/"],
  > a[href*="/docs/conversational-bi/"],
  > a[href*="/docs/wordpress-mysql-server-using-query-streams-hosted-on-siteground/"]
) > span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}

/* --------------------------------------------------------------------------- *
 * BetterDocs per-article icons -- REST API connector family (generated 2026-09-27 by _scripts/_build-api-icon-css.mjs)
 * Family default + mechanism for every "-rest-api/" row, then one assignment per generated connector guide.
 * Regenerate with the script; do not hand-edit. Existing expose-* / stripe-reporting-api- / hub / power-bi rows are painted by the shared blocks above.
 * --------------------------------------------------------------------------- */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/database-rest-api.128.png");
}
.betterdocs-articles-list li:has(> a[href*="-rest-api/"]) > svg { display: none; }
.betterdocs-articles-list li:has(> a[href*="-rest-api/"])::before {
  content: ""; display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}
h2.betterdocs-entry-title:has(> a[href*="-rest-api/"]) > span > svg { display: none; }
h2.betterdocs-entry-title:has(> a[href*="-rest-api/"]) > span::before {
  content: ""; display: block; width: 18px; height: 18px; margin: auto;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/shopify-data-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/12/icon-shopify-large.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/hubspot-data-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/12/icon-hubspot.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/google-ads-data-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-googleads.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/google-analytics-4-data-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/12/icon-google-analytics.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/google-search-console-data-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2025/12/icon-google-search-console.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/neon-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-neon.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/amazon-rds-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-aws-rds.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/azure-database-for-postgresql-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-azure-postgresql.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/azure-database-for-mysql-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-azure-mysql.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/azure-sql-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-azure-sql.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/google-cloud-sql-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-cloud-sql.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/google-alloydb-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-alloydb.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/digitalocean-managed-databases-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-digitalocean.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/aiven-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-aiven.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/crunchy-bridge-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/crunchy-bridge-icon-400.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/heroku-postgres-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/heroku-postgres-icon-400.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/render-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/render-icon-400.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/railway-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/railway-icon-400.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/fly-io-postgres-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/flyio-postgres-icon-400.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/vultr-managed-databases-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/vultr-icon-180.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/ovhcloud-managed-databases-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/ovhcloud-icon-180.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/scaleway-managed-databases-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/scaleway-icon-400.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/oci-database-with-postgresql-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/oci-postgresql-icon-400.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/mysql-heatwave-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/mysql-heatwave-icon.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/ibm-cloud-databases-for-postgresql-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/ibm-cloud-postgresql-connector-icon.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/mariadb-skysql-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/mariadb-skysql-icon.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/xata-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/xata-connector-icon.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/timescale-cloud-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/timescale-connector-icon-300x300.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/planetscale-postgres-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/planetscale-postgres-connector-icon.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/prisma-postgres-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/prisma-postgres-connector-icon.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/koyeb-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/koyeb-connector-icon.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/nile-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/nile-connector-icon.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/file-system-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-fileset-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/csv-to-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-csv-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/parquet-folder-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-parquet-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/excel-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-excel-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/sqlite-folder-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-sqlite-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/jsonl-folder-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/qs-doc-jsonl-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/multi-record-csv-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-recordtype-csv-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/machine-logs-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-machine-logs-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/web-server-logs-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-web-server-logs-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/container-logs-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-container-logs-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/application-logs-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-application-logs-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/system-logs-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/icon-syslog-files-128.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/custom-logs-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/09/logbrand-custom-log-folder.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/supabase-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/supabase.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/shipstation-data-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/08/icon-shipstation-icononly.png");
}
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/itick-data-rest-api/"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/03/itick-logo.png");
}
/* ---- end REST API family ---- */

/* ---------------------------------------------------------------------------
 * BetterDocs per-article icons -- MCP "Analyse your data" set (2026-10-19)
 *
 * Fourteen MCP capability guides (posts 7380-7393, category MCP Server) whose
 * slugs share the stem `/docs/mcp-` (built by
 * BetterDocs/_scripts/build-analyse-docs.mjs). They do not end in
 * `-claude-via-mcp`, so the MCP family block above never matches them; this
 * block is the same mechanism keyed on the new stem, with the generic MCP glyph.
 * It sits at the end of the file so no earlier substring stem can repaint
 * these rows. Any future `/docs/mcp-...` guide lands on the MCP glyph too.
 * --------------------------------------------------------------------------- */
:is(.betterdocs-articles-list li, h2.betterdocs-entry-title):has(> a[href*="/docs/mcp-"]) {
  --qs-doc-icon: url("https://querystreams.com/wp-content/uploads/2026/05/icons8-mcp-48.png");
}
.betterdocs-articles-list li:has(> a[href*="/docs/mcp-"]) > svg {
  display: none;
}
.betterdocs-articles-list li:has(> a[href*="/docs/mcp-"])::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: var(--qs-doc-icon) center / 20px 20px no-repeat;
}
h2.betterdocs-entry-title:has(> a[href*="/docs/mcp-"]) > span > svg {
  display: none;
}
h2.betterdocs-entry-title:has(> a[href*="/docs/mcp-"]) > span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--qs-doc-icon) center / 18px 18px no-repeat;
}
/* ---- end MCP Analyse set ---- */

/* ---- Header mega menu column headings (Astra Pro Nav Menu) ----
 * The Features mega menu groups its links under custom "#" items
 * (AI / Work with data / Build & integrate / Automate). On desktop those
 * headings render as small uppercase labels and do not respond to clicks.
 * Mobile is left alone: there the heading is the accordion toggle.
 *
 * Each column carries its own colour zone (product look: per-section hues,
 * not one accent): a top bar, a soft tinted wash and zone-coloured text.
 * Zones go by column position, so a fifth column only needs a fifth rule.
 */
.ast-desktop .astra-megamenu > li { --qs-mm-zone: var(--qs-mint-green); }
.ast-desktop .astra-megamenu > li:nth-child(1) { --qs-mm-zone: #8B6FD6; }               /* AI: violet */
.ast-desktop .astra-megamenu > li:nth-child(2) { --qs-mm-zone: var(--qs-mint-green); }  /* Work with data */
.ast-desktop .astra-megamenu > li:nth-child(3) { --qs-mm-zone: var(--qs-slate-blue); }  /* Build & integrate */
.ast-desktop .astra-megamenu > li:nth-child(4) { --qs-mm-zone: #E0A33A; }               /* Automate: amber */

/* faint divider between columns */
.ast-desktop .astra-megamenu > li + li {
  border-left: 1px solid color-mix(in oklch, var(--qs-ink) 8%, transparent);
}

.ast-desktop .ast-builder-menu-1 .astra-megamenu > li.menu-item-has-children > .menu-link {
  pointer-events: none;
  cursor: default;
  display: block;
  margin: 0 0.5rem 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--qs-mm-zone) 70%, var(--qs-ink));
  background: linear-gradient(180deg,
    color-mix(in oklch, var(--qs-mm-zone) 16%, transparent),
    color-mix(in oklch, var(--qs-mm-zone) 3%, transparent));
  border-top: 3px solid var(--qs-mm-zone);
  border-radius: 4px 4px 8px 8px;
}
.ast-desktop .ast-builder-menu-1 .astra-megamenu > li.menu-item-has-children > .menu-link .dropdown-menu-toggle,
.ast-desktop .ast-builder-menu-1 .astra-megamenu > li.menu-item-has-children > .menu-link .ast-icon {
  display: none;
}

/* links line up with the heading text; hover picks up the column's hue */
.ast-desktop .ast-builder-menu-1 .astra-megamenu > li > .sub-menu .menu-link {
  margin-inline: 0.5rem;
  padding-inline: 0.75rem;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ast-desktop .ast-builder-menu-1 .astra-megamenu > li > .sub-menu .menu-link:hover {
  background: color-mix(in oklch, var(--qs-mm-zone) 10%, transparent);
  color: color-mix(in oklch, var(--qs-mm-zone) 70%, var(--qs-ink));
}
/* Top-level menu items that only open a dropdown (custom "#" link, e.g.
 * Features): on desktop the link ignores clicks so the page never jumps to
 * the top; hover still reaches the <li> underneath and opens the menu. */
.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link[href="#"] {
  pointer-events: none;
  cursor: default;
}
/* Mobile menu: Astra prints a decorative "›" arrow in front of every
 * submenu link, which reads as "this has children". The chevron toggle
 * button on the right already marks real parents, so drop the leading one.
 * Astra re-shows it on childless submenu items with
 * `.ast-header-break-point .main-navigation ul .sub-menu .menu-item:not(.menu-item-has-children) .menu-link .icon-arrow:first-of-type`,
 * so these selectors are deliberately one class heavier than that rule. */
.ast-header-break-point .ast-builder-menu-mobile .main-navigation ul .sub-menu .menu-item .menu-link > .ast-icon.icon-arrow:first-of-type,
.ast-header-break-point .ast-builder-menu-1 .main-navigation ul .sub-menu .menu-item .menu-link > .ast-icon.icon-arrow:first-of-type {
  display: none;
}
/* ---- end header mega menu headings ---- */
/* ===== qs-marketing (managed by qsTrack) END ===== */