/* Keep the product UI distinguishable from the surrounding marketing page. */
html body.preview.sitewide #main .product-excerpt {
  box-sizing: border-box;
  width: 100%;
  margin: clamp(24px, 4vw, 44px) 0;
  padding: clamp(14px, 3vw, 28px);
  border-radius: 6px;
}
html body.preview.sitewide #main .product-excerpt-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  margin-bottom: 16px;
}
html body.preview.sitewide #main .product-excerpt-header h3 {
  margin: 0;
  color: #e5f2f9 !important;
}
html body.preview.sitewide #main .product-excerpt-header p,
html body.preview.sitewide #main .excerpt-note {
  flex-basis: 100%;
  margin: 0;
  color: #bed2de !important;
  font-size: .9rem;
}
html body.preview.sitewide #main .excerpt-note { margin-top: 14px; }
.excerpt-badge {
  padding: 3px 8px;
  border: 1px solid #516e7e;
  border-radius: 4px;
  color: #d1e5f0;
  font-size: .75rem;
  white-space: nowrap;
}
html body.preview.sitewide #main .product-excerpt :is(.excerpt-heat-metrics,.excerpt-agent-grid) {
  display: grid;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
}
.excerpt-heat-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.excerpt-agent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}
html body.preview.sitewide #main .product-excerpt :is(.excerpt-heat-metrics > div,.excerpt-agent-grid > li) {
  min-width: 0;
  margin: 0 !important;
  padding: 11px 12px;
  border: 1px solid #3d5765 !important;
  border-radius: 4px;
  background: var(--excerpt-tile, #203744) !important;
}
.excerpt-heat-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 5px;
}
.excerpt-heat-metrics dt {
  color: #e2edf4;
  font-size: .8rem;
  line-height: 1.3;
}
html body.preview.sitewide #main .product-excerpt .excerpt-heat-metrics dd {
  margin: 0;
  font-size: clamp(25px, 3.3vw, 44px);
  font-weight: 680;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.excerpt-critical { --excerpt-tile: #3b2532; --excerpt-accent: #ffa0af; }
.excerpt-high { --excerpt-tile: #3a2d24; --excerpt-accent: #ffc491; }
.excerpt-symbols { position: absolute; width: 0; height: 0; }
.excerpt-agent-grid > li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.excerpt-agent-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: var(--excerpt-accent, #a4cae8);
}
.excerpt-agent-grid > li:nth-child(2) { --excerpt-accent: #97d3ca; --excerpt-tile: #213a40; }
.excerpt-agent-grid > li:nth-child(4) { --excerpt-accent: #c6b1e5; --excerpt-tile: #2a3146; }
.excerpt-agent-grid > li:nth-child(5) { --excerpt-accent: #e2b4d2; --excerpt-tile: #333341; }
.excerpt-agent-grid > li:nth-child(6) { --excerpt-accent: #e7ca91; --excerpt-tile: #313b3e; }
.excerpt-agent-grid strong, .excerpt-agent-grid span {
  display: block;
  font-size: .86rem;
  line-height: 1.3;
}
html body.preview.sitewide #main .excerpt-agent-grid strong { color: #e5f2f9 !important; }
.excerpt-agent-grid span { margin-top: 4px; color: #bdcfdd; }
@media (max-width: 700px) {
  .excerpt-heat-metrics,.excerpt-agent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 435px) {
  .excerpt-agent-grid { grid-template-columns: minmax(0,1fr); }
}


/* Keep these surfaces and severity colors above legacy page resets. */
@layer product-excerpts {
  .product-excerpt {
    border: 1px solid #3b5562 !important;
    border-top-color: #7aaabd !important;
    background: #15262f !important;
    box-shadow: 0 20px 42px #0006 !important;
  }
  .product-excerpt .excerpt-heat-metrics dd {
    color: var(--excerpt-accent, #e5f2f9) !important;
  }
}
