/* Scoped adaptation of the homepage BidMatching preview. */
.sg-blog-req {
  --sg-req-blue: #1363c6;
  --sg-req-navy: #092f5d;
  --sg-req-line: #e3e8ef;
  --sg-req-muted: #5b6b80;
  container: requirements-preview / inline-size;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid var(--sg-req-line);
  border-radius: 16px;
  background: #fff;
  color: #49576a;
  text-align: left;
  box-shadow: 0 20px 50px rgba(9, 47, 93, .10);
}
.sg-blog-req .sg-req-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--sg-req-line);
  background: #fff;
  color: var(--sg-req-muted);
  font: 12px/1.5 ui-monospace, monospace;
  letter-spacing: .12em;
}
.sg-blog-req .sg-req-head span:last-child { white-space: nowrap; }
.sg-blog-req .sg-req-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 110px 30px;
  gap: 14px;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--sg-req-line);
  font-size: 17px;
  line-height: 1.5;
  transition: background .35s ease, box-shadow .35s ease;
}
.sg-blog-req .sg-id { color: var(--sg-req-muted); font: 12px/1.5 ui-monospace, monospace; }
.sg-blog-req .sg-req-label { min-width: 0; }
.sg-blog-req .sg-tag {
  display: inline-block;
  margin: 5px 4px 0 0;
  padding: 3px 8px;
  border-radius: 4px;
  background: #e8f0fc;
  color: var(--sg-req-navy);
  font-size: 12px;
}
.sg-blog-req .sg-source { color: var(--sg-req-muted); font-size: 13px; white-space: nowrap; }
.sg-blog-req .sg-req-score { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-blog-req .sg-req-score.ok { color: #218951; }
.sg-blog-req .sg-req-score.mid { color: #a8690f; }
.sg-blog-req .sg-req-foot { padding: 18px 26px; background: #f5f8fc; color: var(--sg-req-muted); font-size: 15px; line-height: 1.5; }
.sg-blog-req .sg-req-row.is-processing { background: linear-gradient(90deg, rgba(31, 111, 235, .11), rgba(31, 111, 235, .035)); box-shadow: inset 3px 0 0 var(--sg-req-blue); }
.sg-blog-req .sg-req-row.is-complete { background: rgba(47, 191, 113, .035); }
.sg-blog-req.is-running .sg-req-foot { background: #edf4ff; color: var(--sg-req-navy); }
.sg-blog-req.is-started .sg-req-row { animation: sgBlogReqReveal .45s both; }
.sg-blog-req.is-started .sg-req-row:nth-child(3) { animation-delay: .10s; }
.sg-blog-req.is-started .sg-req-row:nth-child(4) { animation-delay: .20s; }
.sg-blog-req.is-started .sg-req-row:nth-child(5) { animation-delay: .30s; }
.sg-blog-req::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: var(--sg-req-head-height, 59px);
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sg-req-blue), transparent);
  opacity: 0;
  pointer-events: none;
}
.sg-blog-req.is-running::before { opacity: .75; animation: sgBlogReqScan 5.9s linear both; }
.sg-blog-req.reader-paused::before, .sg-blog-req.reader-paused .sg-req-row { animation-play-state: paused; }
.sg-blog-req-compact { max-width: 100%; margin-bottom: 1.5rem; box-shadow: 0 12px 32px rgba(9, 47, 93, .07); }
@keyframes sgBlogReqReveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sgBlogReqScan { from { transform: translateY(0); } to { transform: translateY(var(--sg-req-scan-distance, 400px)); } }
@container requirements-preview (max-width: 540px) {
  .sg-blog-req .sg-req-head { flex-wrap: wrap; padding: 14px 16px; font-size: 10px; gap: 6px 12px; letter-spacing: .07em; }
  .sg-blog-req .sg-req-row { grid-template-columns: 22px minmax(0, 1fr) 24px; gap: 4px 10px; padding: 14px 16px; font-size: 14px; }
  .sg-blog-req .sg-id { grid-column: 1; grid-row: 1 / span 2; }
  .sg-blog-req .sg-req-label { grid-column: 2; grid-row: 1; }
  .sg-blog-req .sg-source { grid-column: 2; grid-row: 2; font-size: 11px; }
  .sg-blog-req .sg-req-score { grid-column: 3; grid-row: 1 / span 2; }
  .sg-blog-req .sg-tag { font-size: 11px; padding: 2px 6px; }
  .sg-blog-req .sg-req-foot { padding: 14px 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-blog-req::before { display: none; }
  .sg-blog-req .sg-req-row { animation: none !important; transition: none; }
}
