/* Presentations page (/brand/presentations/): deck layout gallery.
   Kept out of brand.css, which hub pages load without ?v= and Vercel caches
   immutable for a year. Bump ?v= on the <link> when this file changes. */
.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 639px) {
  .deck-grid {
    grid-template-columns: 1fr;
  }
}

.deck-card {
  display: flex;
  flex-direction: column;
  background: var(--color-ink-100);
  border: 1px solid var(--color-ink-300);
  border-radius: var(--card-radius);
  overflow: hidden;
}

/* Full-bleed to the card edges — a card visual is never inset. */
.deck-card__shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--color-ink-300);
  background: var(--color-surface-cream);
  cursor: zoom-in;
}

.deck-card__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-card__body {
  padding: 16px 18px 18px;
}

.deck-card__label {
  margin: 0 0 4px;
  font-size: var(--text-card-title);
  font-weight: 600;
  color: var(--color-text-primary);
}

.deck-card__desc {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.deck-card__slots {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
}

.deck-card__id {
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-violet-700);
  vertical-align: 0.15em;
}

/* Light / dark switch for the layout previews */
.deck-tone {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  background: var(--color-surface-cream);
  border: 1px solid var(--color-border-cream);
  border-radius: 999px;
}

.deck-tone__btn {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 var(--text-small) / 1 var(--font-family);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.deck-tone__btn[aria-pressed="true"] {
  background: #fff;
  color: var(--color-text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.deck-tone__btn:focus-visible {
  outline: 2px solid var(--color-blue-600);
  outline-offset: 2px;
}

#backgrounds h3 {
  margin: 28px 0 12px;
  font-size: var(--text-card-title);
  font-weight: 600;
  color: var(--color-text-primary);
}
