/* PQViewer-specific additions to Furo. */

.sd-card {
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.content p code.literal,
.content li code.literal {
  background: var(--color-code-background);
  border-radius: 0.2em;
}

.sidebar-logo {
  width: 4rem;
}

.sidebar-brand-text {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pq-workspace {
  margin: 1.5rem 0 0;
}

.pq-workspace img {
  width: 100%;
  border: 1px solid var(--color-foreground-border);
  border-radius: 0.35rem;
}

.pq-demo-shell {
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  border: 1px solid var(--color-background-border);
  border-radius: 0.55rem;
  background: var(--color-background-secondary);
}

.pq-demo-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--color-background-border);
}

.pq-demo-heading div {
  display: grid;
  gap: 0.1rem;
}

.pq-demo-heading span {
  color: var(--color-foreground-secondary);
  font-size: 0.86rem;
}

.pq-demo-heading a {
  white-space: nowrap;
  font-weight: 650;
}

.pq-demo-shell iframe {
  display: block;
  width: 100%;
  height: min(72vh, 690px);
  min-height: 420px;
  border: 0;
  background: #f6f8f8;
}

.sd-card-img-top {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--color-background-border);
  background: var(--color-background-secondary);
  object-fit: cover;
}

@media screen and (max-width: 40em) {
  .pq-demo-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pq-demo-shell iframe {
    min-height: 520px;
  }
}
