/*
THESIS: Full artwork at supporting-banner scale, never an oversized feature row.
OWN-WORLD: Existing paper, ink and muted tokens; quiet image edges, no extra card surface.
STORY: Browse resources first; recognize the ad and open its original destination deliberately.
FIRST VIEWPORT: Homepage pair shares the content left edge, at most 720px wide and about 150px high plus a 24px caption.
FORM: Local component replacement in the established Cloudtail UI; no world/seed round.
FINISH: unreviewed and undocumented is unfinished; this build ends with the finish review, the verdict, DESIGN.md, and every shipping raster carrying its provenance.
*/
.cloudtail-spotlight > .ct-home-sponsors {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4837333333fr) minmax(0, 1fr);
  align-items: start;
  justify-self: start;
  width: min(100%, 720px);
  min-width: 0;
  gap: 24px;
}
.cream-body .ct-partner-card {
  min-width: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.cream-body .ct-partner-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  line-height: 1.5;
  text-decoration: none;
  overflow: visible;
}
.cream-body .ct-partner-link:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 4px;
}
.ct-partner-visual { display: block; min-width: 0; width: 100%; }
.cream-body .ct-partner-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.ct-partner-caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  min-height: 24px;
  padding-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.ct-partner-label { flex: 0 0 auto; }
.ct-partner-name { margin-left: auto; overflow-wrap: anywhere; text-align: right; }
.ct-partner-icon { display: inline-flex; align-self: center; }
.ct-partner-icon svg { width: 13px; height: 13px; flex: 0 0 13px; }
.ct-partner-link:hover .ct-partner-name {
  color: var(--caramel);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ct-partner-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 800 / 428;
  padding: 20px;
  background: var(--oat);
  color: var(--muted);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
}
.ct-sponsor-home .ct-partner-fallback { aspect-ratio: 416 / 150; }
.ct-tmall-resource .ct-partner-fallback { aspect-ratio: 800 / 513; }
.ct-partner-visual img[hidden], .ct-partner-fallback[hidden] { display: none; }
.cream-body.ux-resource-page .detail-grid > .ct-download-with-sponsor { position: static; }
.cream-body .download-panel > .ct-tmall-resource {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .cloudtail-spotlight > .ct-home-sponsors { gap: 16px; }
}
@media (max-width: 520px) {
  .cloudtail-spotlight > .ct-home-sponsors {
    grid-template-columns: minmax(0, 1fr);
    justify-self: center;
    width: min(100%, 320px);
    gap: 12px;
  }
}
