:root { --family-h: 68px; }
/* Renderer contract: add these classes at the actual family/facet render points.
   Uses qh-portal-og.css tokens; no fixed height or permanent empty image element. */
body.qh-portal-og #qh-charcoal-final .qh-family-header {
  display: block;
  position: sticky;
  top: var(--chrome-h, 96px);
  z-index: 7;
  min-height: 56px;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-left: 3px solid var(--qh-copper);
  border-radius: 0;
  background: var(--qh-header);
  color: #fff;
}
body.qh-portal-og #qh-charcoal-final .app-chrome.is-away ~ .shell .qh-family-header { top: 0; }
body.qh-portal-og #qh-charcoal-final .qh-family-header-main {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
body.qh-portal-og #qh-charcoal-final .qh-family-title {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}
body.qh-portal-og #qh-charcoal-final :is(.qh-family-meta,.qh-family-count) {
  color: #fff;
  font-size: 11px;
  font-weight: 400;
}
body.qh-portal-og #qh-charcoal-final .qh-family-count {
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
body.qh-portal-og #qh-charcoal-final .qh-family-photo {
  display: inline-flex;
  flex: 0 0 72px;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 54px;
}
body.qh-portal-og #qh-charcoal-final .qh-family-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.qh-portal-og #qh-charcoal-final .qh-refine-options {
  max-height: 131px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  border: 1px solid var(--qh-line);
  background: var(--qh-paper);
}
body.qh-portal-og #qh-charcoal-final .qh-refine-options table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}
body.qh-portal-og #qh-charcoal-final .qh-refine-options td { padding: 0; border-bottom: 1px solid var(--qh-line); }
body.qh-portal-og #qh-charcoal-final .qh-refine-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 4px 5px;
  margin: 0;
}
body.qh-portal-og #qh-charcoal-final .qh-refine-options label small { margin-left: auto; font-variant-numeric: tabular-nums; }
body.qh-portal-og #qh-charcoal-final .qh-refine-options input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
}
body.qh-portal-og #qh-charcoal-final .qh-refine-options label:has(input:checked),
body.qh-portal-og #qh-charcoal-final .qh-refine-options label.ff-opt.is-on {
  background: var(--qh-selected);
  color: var(--qh-action);
}
body.qh-portal-og #qh-charcoal-final .cc-sidebar .ff-facet > b,
body.qh-portal-og #qh-charcoal-final .cc-sidebar .rail-kicker,
body.qh-portal-og #qh-charcoal-final .cc-sidebar .facet > b {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 11px;
}
@media (max-width: 800px) {
  body.qh-portal-og #qh-charcoal-final .qh-family-meta { display: none; }
}
@media (max-width: 560px) {
  body.qh-portal-og #qh-charcoal-final .qh-family-header-main { gap: 5px; }
  body.qh-portal-og #qh-charcoal-final .qh-family-title { font-size: 12px; }
  body.qh-portal-og #qh-charcoal-final .qh-family-photo { width: 56px; flex-basis: 56px; height: 42px; }
  body.qh-portal-og #qh-charcoal-final .qh-refine-options { max-height: 145px; }
  body.qh-portal-og #qh-charcoal-final .qh-refine-options label { min-height: 44px; font-size: 12px; }
}
@media (pointer: coarse) {
  body.qh-portal-og #qh-charcoal-final .qh-refine-options label { min-height: 44px; }
}
@media (max-width: 680px) {
  :root { --family-h: 36px; }
  body[data-refine="on"] { --refine-strip: 42px; }
  body.qh-portal-og #qh-charcoal-final .qh-family-header { min-height: 0; padding: 3px 6px; }
  body[data-refine="on"].qh-portal-og #qh-charcoal-final .qh-family-header {
    top: calc(var(--chrome-h, 96px) + var(--refine-strip, 42px));
  }
  body[data-refine="on"].qh-portal-og #qh-charcoal-final .app-chrome.is-away ~ .shell .qh-family-header {
    top: var(--refine-strip, 42px);
  }
  body.qh-portal-og #qh-charcoal-final .qh-family-header-main,
  body.qh-portal-og #qh-charcoal-final button.qh-family-header-main { min-height: 0; gap: 5px; }
  body.qh-portal-og #qh-charcoal-final .qh-family-title {
    font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  body.qh-portal-og #qh-charcoal-final .qh-family-photo { width: 40px; flex-basis: 40px; height: 30px; }
  body.qh-portal-og #qh-charcoal-final .rail.open .qh-refine-options,
  body.qh-portal-og #qh-charcoal-final .rail.open .ff-box {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
  body.qh-portal-og #qh-charcoal-final .qh-refine-options label,
  body.qh-portal-og #qh-charcoal-final .ff-link {
    min-height: 32px;
    font-size: 12px;
    padding: 7px 10px;
  }
}
body.qh-portal-og #qh-charcoal-final .catalog-style .qh-family-header { margin-bottom: 0; }
body.qh-portal-og #qh-charcoal-final .qh-family-xrefs { margin: 4px 0 6px; font-size: 11px; }
body.qh-portal-og #qh-charcoal-final .ff-more-sentinel { min-height: 28px; padding: 8px 0 20px; }
