/* The help service's own stylesheet for its "Most read / Recently added" panel (article and category pages) (template hero-search, tenant babelballs), copied from the live page's inline style block on 2026-11-19 (rule for rule; only trailing spaces trimmed)
   so the help pages the shop builds (scripts/support_pages.py) draw exactly as the help service's do. As on the live page it comes AFTER help.css (whose rules for it are more specific). Do not edit: copy it again
   if the help service changes its template (docs/help-center/STATIC_PAGES.md). */
  .qa{
    --qa-w: 300px;
    --qa-handle: 42px;
    --qa-ease: cubic-bezier(.22,.61,.36,1);
  }

  /* ---------- narrow screens: an ordinary card in the flow ---------- */
  .qa-shell{background:var(--bg-secondary);border:1px solid var(--border-color);
            border-radius:var(--border-radius);overflow:hidden}
  .qa-handle{display:none}
  .qa{margin:0 0 1.75rem}

  .qa-sec + .qa-sec{border-top:1px solid var(--border-color)}
  .qa-head{width:100%;display:flex;align-items:center;gap:.6rem;background:transparent;border:0;
           cursor:pointer;padding:.85rem 1rem;color:var(--text-muted);font-size:.7rem;
           letter-spacing:.11em;text-transform:uppercase;font-weight:700;text-align:left}
  .qa-head:hover{color:var(--accent-color)}
  .qa-head .qa-ico{font-size:.78rem;opacity:.85}
  .qa-head .qa-chev{margin-left:auto;font-size:.62rem;transition:transform .2s var(--qa-ease);opacity:.6}
  .qa-sec.closed .qa-chev{transform:rotate(-90deg)}
  .qa-list{padding:.1rem .5rem .6rem}
  .qa-sec.closed .qa-list{display:none}

  .qa-item{display:flex;gap:.65rem;align-items:flex-start;padding:.6rem .55rem;border-radius:10px;
           text-decoration:none;color:var(--text-color);transition:background .15s var(--qa-ease);
           min-height:44px}                                  /* 44px: a real touch target */
  .qa-item:hover,.qa-item:focus-visible{background:var(--bg-tertiary);outline:none}
  .qa-item:focus-visible{box-shadow:inset 0 0 0 2px var(--accent-color)}
  .qa-rank{flex:0 0 20px;height:20px;border-radius:6px;display:grid;place-items:center;
           font-size:.66rem;font-weight:700;color:var(--accent-color);
           background:color-mix(in srgb, var(--accent-color) 12%, transparent);margin-top:.1rem}
  .qa-dot{flex:0 0 20px;height:20px;display:grid;place-items:center;color:var(--text-muted);
          font-size:.6rem;margin-top:.1rem;opacity:.7}
  .qa-txt{min-width:0}
  .qa-title{display:block;font-size:.855rem;line-height:1.34;font-weight:500}
  .qa-meta{display:block;font-size:.7rem;color:var(--text-muted);margin-top:.15rem}

  .qa-foot{display:flex;align-items:center;justify-content:flex-end;gap:.15rem;
           padding:.35rem .55rem .55rem}
  .qa-btn{background:transparent;border:0;cursor:pointer;color:var(--text-muted);
          width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-size:.76rem;
          transition:background .15s var(--qa-ease),color .15s var(--qa-ease)}
  .qa-btn:hover{background:var(--bg-tertiary);color:var(--accent-color)}
  .qa-btn:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--accent-color)}
  .qa-btn.on{color:var(--accent-color)}
  .qa-btn.on .fa-thumbtack{transform:rotate(-40deg)}

  /* ---------- wide screens: flush to the right edge ---------- */
  @media (min-width: 1200px){
    /* The handle is the only thing in normal flow, so the container is exactly handle-sized and
       sits flush against the right edge. The panel is taken OUT of flow: a translated element
       still occupies its layout box, so leaving it in the flex row pushed the handle inward by the
       full panel width and left it floating in the middle of the margin. */
    .qa{position:fixed;top:50%;right:0;transform:translateY(-50%);z-index:60;margin:0}

    .qa-handle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;
               width:var(--qa-handle);min-height:132px;cursor:pointer;
               background:var(--bg-secondary);color:var(--text-muted);
               border:1px solid var(--border-color);border-right:0;
               border-radius:14px 0 0 14px;box-shadow:-6px 0 24px rgba(15,23,42,.07);
               transition:color .18s var(--qa-ease),box-shadow .18s var(--qa-ease),
                          transform .32s var(--qa-ease)}
    .qa-handle:hover,.qa-handle:focus-visible{color:var(--accent-color);outline:none;
               box-shadow:-8px 0 30px rgba(15,23,42,.12)}
    .qa-handle .qa-hico{font-size:.9rem}
    .qa-handle .qa-hlabel{writing-mode:vertical-rl;font-size:.63rem;letter-spacing:.16em;
               text-transform:uppercase;font-weight:700}
    .qa-handle .qa-hpip{width:4px;height:4px;border-radius:50%;background:var(--accent-color);
               opacity:.55}

    /* Absolutely positioned so it contributes no width to the container. Anchored to the right
       edge and parked fully off-screen until opened. */
    .qa-shell{position:absolute;top:50%;right:0;
              width:var(--qa-w);max-height:min(74vh, 640px);overflow-y:auto;
              border-radius:16px 0 0 16px;border-right:0;
              box-shadow:-18px 0 48px rgba(15,23,42,.13);
              transform:translate(100%, -50%);opacity:0;visibility:hidden;
              transition:transform .32s var(--qa-ease), opacity .22s var(--qa-ease),
                         visibility 0s linear .32s}
    .qa.open .qa-shell{transform:translate(0, -50%);opacity:1;visibility:visible;
              transition:transform .32s var(--qa-ease), opacity .22s var(--qa-ease),
                         visibility 0s linear 0s}
    /* Open is the default, so the handle only exists as the way back after closing. */
    .qa.open .qa-handle{display:none}
    .qa-shell::-webkit-scrollbar{width:8px}
    .qa-shell::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:8px}
  }

  @media (prefers-reduced-motion: reduce){
    .qa-shell,.qa-head .qa-chev{transition:none}
  }
