/* Agent detail page hero — 64px glass orb, title/author, governance pills,
 * actions. Lives on the public storefront detail (catalog_detail, dark). */

.kw-detail-hero {
  background: transparent;
  border-bottom: 1px solid var(--kw-border-color);
}
/* Shown to signed-in non-admins in place of the Install button. */
.kw-detail-hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--kw-fg-muted);
}
.kw-detail-hero__inner {
  max-width: var(--kw-width-content);
  margin: 0 auto;
  padding: 1.5rem var(--kw-space-8) 2rem var(--kw-space-8);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .kw-detail-hero__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.kw-detail-hero__lhs {
  display: flex;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

/* Icon orb — 64px circular glass (dark) / solid brand blue (light); icon white.
   Category colour deliberately does NOT tint the orb (brand rule). */
.kw-detail-hero__icon {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--kw-glass-fill);
  box-shadow:
    0 12px 19px rgba(0, 0, 0, 0.16),
    inset 1.9px 3.81px 15.24px rgba(248, 248, 248, 0.10),
    inset 0 0 40px rgba(197, 185, 246, 0.15);
}
.kw-detail-hero__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(197,185,246,0.45) 0%, rgba(197,185,246,0.01) 38%, rgba(197,185,246,0.01) 64%, rgba(197,185,246,0.12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.kw-detail-hero__icon > * { position: relative; z-index: 1; }
.kw-detail-hero__icon .kw-ico { color: #fff; }
html.light .kw-detail-hero__icon {
  background: var(--kw-blue);
  box-shadow: 0 6px 16px -6px rgba(74, 86, 175, 0.55);
}

.kw-detail-hero__body { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.kw-detail-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--kw-fg);
  margin: 0;
  line-height: 1.05;
  font-family: var(--kw-font-headline);
}
.kw-detail-hero__author {
  font-size: 0.875rem;
  color: var(--kw-fg-muted);
  margin: 0.25rem 0 0 0;
}
.kw-detail-hero__author strong { color: var(--kw-fg); font-weight: 600; }
.kw-detail-hero__desc {
  font-size: 1.0625rem;
  color: var(--kw-fg-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 38rem;
}
.kw-detail-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.kw-detail-hero__rhs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 220px;
}
.kw-detail-hero__pricing {
  font-family: var(--kw-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--kw-fg-muted);
}
