/* Site navigation bar for the STATIC pages (the ai-connector scorecard).
 *
 * Those pages are generated by a separate tool and ship their own stylesheet, so
 * they cannot use the Tailwind build of the Symfony site. This file is therefore
 * plain, hand-written CSS under a `pqbar-` prefix — the ONE place in this repo
 * where that is allowed. It borrows the host page's own custom properties
 * (--bg / --ink / --line / --accent) so the bar follows the scorecard's light and
 * dark theme; every var() carries a fallback for a page that defines none.
 */
.pqbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line, #e2ded7);
  background: var(--bg, #f6f5f3);
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 14px;
  line-height: 1.4;
}
.pqbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  /* Matches the scorecard's own .wrap (1100px / 28px) so the logo lines up with
     the headline underneath it instead of floating 30px to its right. */
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 28px;
}
.pqbar a { color: inherit; text-decoration: none; }
.pqbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink, #16150f);
}
.pqbar__brand img { width: 26px; height: 26px; display: block; }
.pqbar__dot { color: #ff471f; }
.pqbar__nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pqbar__link {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--ink-2, #55524a);
}
.pqbar__link:hover { background: var(--surface-2, #f0eeea); color: var(--ink, #16150f); }

/* The dropdown is a <details> element — a full menu with zero JavaScript. */
.pqbar__menu { position: relative; }
.pqbar__menu > summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--ink-2, #55524a);
}
.pqbar__menu > summary::-webkit-details-marker { display: none; }
.pqbar__menu > summary:hover { background: var(--surface-2, #f0eeea); color: var(--ink, #16150f); }
.pqbar__caret { display: inline-block; margin-left: 4px; font-size: 11px; }
.pqbar__menu[open] .pqbar__caret { transform: rotate(180deg); }
.pqbar__list {
  position: absolute;
  right: 0;
  margin: 8px 0 0;
  padding: 8px;
  width: 20rem;
  max-height: 70vh;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--line, #e2ded7);
  border-radius: 12px;
  background: var(--surface, #fff);
  box-shadow: var(--shadow, 0 12px 32px -12px rgba(20, 18, 12, .35));
}
.pqbar__list a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; color: var(--ink, #16150f); }
.pqbar__icon { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 5px; object-fit: cover; }
.pqbar__list a:hover { background: var(--surface-2, #f0eeea); }
/* The sub-links are not icon rows, so they opt back out of the flex layout above. */
.pqbar__list a.pqbar__sub { display: block; padding-left: 44px; font-size: 12px; color: var(--accent, #b4441e); }
.pqbar__sub:hover { text-decoration: underline; }
.pqbar__here { font-weight: 600; }

@media (max-width: 640px) {
  .pqbar__inner { padding: 8px 14px; gap: 12px; }
  .pqbar__list { width: min(20rem, calc(100vw - 28px)); }
}
