/* Cedilla Studio: Palettes' lower sections on the shared story template
   (overprint-story.css, op-* classes). Since 2026-11-15. Pictures are drawn by
   assets/js/palettes-story.js with the app's own generator. */

body.palettes-page { --cyan: #21D4FD; }
.pl-story .pal-label { margin-bottom: 18px; }

/* The pictures: five swatch columns with name and hex */
.pl-media { aspect-ratio: 4 / 3; max-width: 560px; justify-self: center; width: 100%; background: #0d0d0d; }
.pl-swatches { position: absolute; inset: 0; display: flex; }
.pl-sw {
  position: relative; flex: 1; border: 0; padding: 0; cursor: pointer; background: var(--c);
  transition: flex .35s var(--ease), background-color .45s var(--ease);
}
.pl-sw:hover { flex: 1.45; }
.pl-sw span { position: absolute; left: 10px; right: 6px; top: 14px; text-align: left; font: 600 12px/1.3 'Open Sans', sans-serif; color: rgba(255, 255, 255, .92); }
.pl-sw em { display: block; font: 500 11px/1.4 var(--mono); font-style: normal; opacity: .8; }
.pl-sw.is-light span { color: rgba(0, 0, 0, .78); }

/* Photo: the picture on the left, its five colors stacked on the right */
.pl-media--photo .pl-photo { position: absolute; inset: 0 34% 0 0; background: #111; }
.pl-media--photo .pl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.pl-swatches--side { left: auto; width: 34%; flex-direction: column; }
.pl-swatches--side .pl-sw span { top: 50%; transform: translateY(-50%); }

/* Code: the palette as a strip over the export code */
.pl-media--code { display: flex; flex-direction: column; }
.pl-code-strip { display: flex; height: 26%; }
.pl-code-strip i { flex: 1; background: var(--c); transition: background-color .45s var(--ease); }
.pl-code {
  flex: 1; margin: 0; padding: 22px 24px 64px; overflow: hidden;
  font: 500 13px/1.75 var(--mono); color: rgba(255, 255, 255, .86); white-space: pre; background: #0b0b0e;
}
.pl-code b { font-weight: 500; color: var(--cyan); }

/* Collections: each tile shows the collection's colors as bands */
.pl-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-story a.op-tile { text-decoration: none; }
.pl-tile-bands { display: flex !important; aspect-ratio: 4 / 3 !important; }
.pl-tile-bands i { flex: 1; background: var(--c); }

/* FAQ: the app's accordion, at the story's width */
.pl-faq { max-width: 760px; margin-top: 36px; }

@media (max-width: 760px) {
  .pl-sw span { left: 6px; top: 10px; font-size: 10.5px; }
  .pl-sw em { font-size: 9.5px; }
  .pl-media--photo .pl-photo { inset: 0 38% 0 0; }
  .pl-swatches--side { width: 38%; }
  .pl-code { padding: 16px 16px 72px; font-size: 11.5px; }
}
.pl-story .op-h2--big { max-width: 20ch; }
/* the photo chips stay on the photo, clear of the colors */
.pl-media--photo .op-plate-chips { right: calc(34% + 12px); }
@media (max-width: 760px) { .pl-media--photo .op-plate-chips { right: calc(38% + 8px); gap: 5px; } }
@media (max-width: 760px) { .pl-media--photo .op-chip { padding: 6px 9px 6px 8px; font-size: 11px; gap: 5px; } .pl-media--photo .op-chip i { width: 9px; height: 9px; } }
