/* [2026-04-23] Overlay-specific tweaks inside Shadow DOM — supplements topbar.css. */

:host { display: block; }

/* Shadow host is already position:fixed at top. Cancel duplicate sticky from topbar.css. */
.mhp-topbar .page-header {
  position: static;
  top: auto;
}

/* Loading placeholder shown while templates.json is in flight */
.mhp-loading {
  padding: 32px 48px;
  color: var(--muted, #8b949e);
  font-size: 13px;
  text-align: center;
}

/* Pre-rendered per-card chip (category tag inside each card head) */
.mhp-topbar .mhp-cat-chip {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e6edf3;
  background: rgba(88, 166, 255, 0.14);
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 999px;
}

/* Cards are <a> in the overlay (whole-card link). Remove default link styling. */
.mhp-topbar a.card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.mhp-topbar a.card:hover {
  transform: translateY(-2px);
  border-color: #3a4452;
}

/* Inline brand-icon SVGs (React/Angular/Vue/PHP/WP) in card-formats row */
.mhp-topbar .brand-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
}
.mhp-topbar .brand-svg:last-child { margin-right: 0; }
.mhp-topbar .brand-svg svg {
  width: 20px;
  height: 20px;
}
