/* Shared authentic project/company artwork for articles and case-study tiles. */
.sptg-themed .sptg-project-brand { margin: 8px 0 28px; max-width: 100%; }
.sptg-themed .sptg-project-brand-art { display: flex; align-items: center; justify-content: flex-start; width: 224px; max-width: 100%; height: 80px; padding: 12px; background: #fff; border-radius: 8px; }
.sptg-themed .sptg-project-brand img { display: block; width: 200px; max-width: 100%; height: 56px; object-fit: contain; object-position: left center; }
.sptg-themed .sptg-project-brand .sptg-project-brand-dark { display: none; }
.sptg-themed.sptg-dark .sptg-project-brand:has(.sptg-project-brand-dark) .sptg-project-brand-light { display: none; }
.sptg-themed.sptg-dark .sptg-project-brand .sptg-project-brand-dark { display: block; }
.sptg-themed .sptg-project-brand.is-adaptive .sptg-project-brand-art { background: transparent; padding-left: 0; }
.sptg-themed .sptg-project-brand.is-mark img { width: 56px; }
.sptg-themed .sptg-project-brand.is-deedalabs .sptg-project-brand-art { background: #061824; }
.sptg-themed .sptg-project-brand.is-deedalabs img { object-fit: cover; object-position: center; }
.sptg-themed .sptg-project-brand figcaption { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #5a6f7b; }
.sptg-themed.sptg-dark .sptg-project-brand figcaption { color: #b4c6d1; }
.sptg-themed .sptg-project-brand.is-tile { min-height: 104px; margin: 0 0 12px; }
@media (max-width:767px) {
  .sptg-themed .sptg-project-brand { margin-bottom: 24px; }
  .sptg-themed .sptg-project-brand.is-tile { min-height: 104px; }
}

/* Reference portraits stay at the left; larger logos balance the right side. */
.sptg-themed .sptg-case-intro .sptg-case-media { display: flex; flex: 0 0 var(--sptg-case-photo-size,96px); flex-direction: column; align-items: flex-start; width: var(--sptg-case-photo-size,96px); min-width: 0; }
.sptg-themed .sptg-case-intro .sptg-case-contact-details,
.sptg-themed .sptg-case-intro .sptg-testimonial-identity { flex: 1 1 0; min-width: 0; }
.sptg-themed .sptg-case-intro .sptg-testimonial-person { gap: 22px; }
.sptg-themed .sptg-project-brand.is-reference { flex: 0 0 160px; align-self: center; width: 160px; margin: 0 0 0 auto; }
.sptg-themed .sptg-project-brand.is-reference .sptg-project-brand-art { width: 160px; height: 80px; padding: 12px; border-radius: 6px; }
.sptg-themed .sptg-project-brand.is-reference img { width: 100%; height: 56px; object-position: center; }
.sptg-themed .sptg-project-brand.is-reference.is-mark img { width: 56px; margin: 0 auto; }
.sptg-themed .sptg-project-brand.is-reference figcaption { font-size: 11px; line-height: 1.4; }
.sptg-themed .sptg-case-intro .sptg-testimonial-person > .sptg-testimonial-brand { display: block; flex: 0 0 160px; align-self: center; width: 160px; max-width: 100%; height: 80px; padding: 12px; margin: 0 0 0 auto; }
.sptg-themed .sptg-case-intro .sptg-testimonial-person > .sptg-testimonial-brand .sptg-testimonial-brand-art { display: block; width: 100%; max-width: 100%; height: 56px; background-size: contain; background-position: center; }
@media (max-width:1599px) { .sptg-themed .sptg-case-intro.has-multiple { grid-template-columns: minmax(0,1fr); } }
@media (max-width:767px) {
 .sptg-themed .sptg-case-intro .sptg-case-contact,
 .sptg-themed .sptg-case-intro .sptg-testimonial-person { flex-wrap: wrap; column-gap: 16px; row-gap: 20px; }
 .sptg-themed .sptg-case-intro .sptg-case-contact-details,
 .sptg-themed .sptg-case-intro .sptg-testimonial-identity { flex: 1 0 calc(100% - var(--sptg-case-photo-size,72px) - 16px); }
 .sptg-themed .sptg-case-intro .sptg-project-brand.is-reference,
 .sptg-themed .sptg-case-intro .sptg-testimonial-person > .sptg-testimonial-brand { margin-left: auto; }
}
.sptg-themed.sptg-dark .sptg-project-brand:has(.sptg-project-brand-dark) .sptg-project-brand-art { background: #172a36; }
.sptg-themed.sptg-dark .sptg-project-brand.is-adaptive .sptg-project-brand-art { background: transparent; }
.sptg-themed .sptg-project-brand.is-name img { object-position: center; }

/* Multiple project contacts share one card and one product/company mark. */
.sptg-themed .sptg-case-intro.has-metadata.has-multiple { display: block; }
.sptg-themed .sptg-case-reference-group { display: flex; align-items: center; gap: 24px; margin: 0 0 34px; padding: 24px; border: 1px solid #d3dde3; background: #fff; }
.sptg-themed .sptg-case-people { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; flex: 1 1 auto; min-width: 0; }
.sptg-themed .sptg-case-intro .sptg-case-reference-group .sptg-case-contact { margin: 0; padding: 0; border: 0; background: transparent; gap: 16px; }
.sptg-themed.sptg-dark .sptg-case-reference-group { border-color: #304957; background: #1c2e3c; }
@media (max-width:1199px) {
 .sptg-themed .sptg-case-reference-group { flex-direction: column; align-items: stretch; }
 .sptg-themed .sptg-case-people { grid-template-columns: minmax(0,1fr); }
 .sptg-themed .sptg-case-reference-group > .sptg-project-brand.is-reference { align-self: flex-end; margin: 0; }
}
@media (max-width:767px) { .sptg-themed .sptg-case-reference-group { padding: 20px 16px; } }

/* The CloudCodes reference presents all three delivered products together. */
.sptg-themed .sptg-project-brand.is-products .sptg-product-marks { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 160px; height: auto; padding: 0; background: transparent; }
.sptg-themed.sptg-dark .sptg-project-brand.is-products .sptg-product-marks { background: transparent; }
.sptg-themed .sptg-product-mark { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.4; font-weight: 600; }
.sptg-themed .sptg-product-mark-icon { display: block; flex: 0 0 48px; width: 48px; height: 48px; padding: 4px; background: #fff; border-radius: 4px; }
.sptg-themed .sptg-project-brand.is-products .sptg-product-mark img { width: 40px; height: 40px; max-width: 100%; object-fit: contain; }
.sptg-themed .sptg-project-brand.is-tile.is-products .sptg-product-marks { flex-direction: row; gap: 12px; justify-content: space-between; width: 224px; height: 80px; padding: 8px 0; }
.sptg-themed .sptg-project-brand.is-tile.is-products .sptg-product-mark { flex-direction: column; gap: 4px; font-size: 10px; text-align: center; }

/* Portrait and mark centers share the first row on wide cards. */
.sptg-themed .sptg-case-intro .sptg-case-media { align-items: center; }
.sptg-themed .sptg-project-brand.is-reference { align-self: flex-start; }
.sptg-themed .sptg-project-brand.is-reference .sptg-project-brand-art { height: 96px; justify-content: center; }
.sptg-themed .sptg-case-intro .sptg-testimonial-person > .sptg-testimonial-brand { align-self: flex-start; height: 96px; padding-top: 20px; padding-bottom: 20px; }
.sptg-themed .sptg-case-reference-group { align-items: flex-start; }
.sptg-themed .sptg-project-brand.is-reference.is-products .sptg-product-marks { height: auto; padding-top: 24px; }
.sptg-themed.sptg-dark .sptg-product-mark-icon { background: transparent; }
@media (max-width:1199px) {
 .sptg-themed .sptg-case-intro .sptg-case-contact,
 .sptg-themed .sptg-case-intro .sptg-testimonial-person { flex-direction: column; align-items: flex-start; gap: 20px; }
 .sptg-themed .sptg-case-intro .sptg-case-contact-details,
 .sptg-themed .sptg-case-intro .sptg-testimonial-identity { flex: 0 1 auto; width: 100%; }
 .sptg-themed .sptg-case-intro .sptg-case-contact > .sptg-project-brand.is-reference,
 .sptg-themed .sptg-case-intro .sptg-case-reference-group > .sptg-project-brand.is-reference,
 .sptg-themed .sptg-case-intro .sptg-testimonial-person > .sptg-testimonial-brand { align-self: flex-start; margin: 0; }
 .sptg-themed .sptg-project-brand.is-reference .sptg-project-brand-art { justify-content: flex-start; padding-left: 0; }
 .sptg-themed .sptg-project-brand.is-reference img { object-position: left center; }
 .sptg-themed .sptg-project-brand.is-reference.is-mark img { margin: 0; }
 .sptg-themed .sptg-case-intro .sptg-testimonial-person > .sptg-testimonial-brand { padding-left: 0; }
 .sptg-themed .sptg-case-intro .sptg-testimonial-person > .sptg-testimonial-brand .sptg-testimonial-brand-art { background-position: left center; }
 .sptg-themed .sptg-project-brand.is-reference.is-products .sptg-product-marks { padding-top: 0; }
}

@media (max-width:1199px) { .sptg-themed .sptg-case-people { width: 100%; } }

@media (max-width:1199px) { .sptg-themed .sptg-case-intro .sptg-project-brand.is-reference, .sptg-themed .sptg-case-intro .sptg-testimonial-person > .sptg-testimonial-brand { flex: 0 0 auto; } }
