/* Customer Success index additions. The discovery shell and cards remain the Resource Library's. */

.story-index-card .lib-card-sum { margin-top: auto; }

/* Customer snapshots (2026-10-26, a prototype for review; components/library/CustomerSnapshotCard.astro).
   The tile is a story card with a Quick look cue at its foot; the snapshot copy after the link is what the
   dialog borrows, so the card hides it. */
.snap-cue { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-ui-small); font-weight: var(--fw-strong); color: var(--orange-dark); }
.snap-card > .snap-segment, .snap-card > .snap-products, .snap-card > .snap-facts, .snap-card > .snap-pdf-link, .snap-card > .snap-preview { display: none; }

/* Without scripts the card's link reaches the tile and :target opens the snapshot in place, under the card.
   Once the island runs it marks <main> and the address opens the dialog instead. */
main:not([data-snap-enhanced]) .snap-card:target > .snap-segment,
main:not([data-snap-enhanced]) .snap-card:target > .snap-products,
main:not([data-snap-enhanced]) .snap-card:target > .snap-facts,
main:not([data-snap-enhanced]) .snap-card:target > .snap-pdf-link { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0 var(--s-2); }
main:not([data-snap-enhanced]) .snap-card:target .snap-products { list-style: none; }

/* The dialog: the borrowed image above the heading, then the segment line, the product chips and the facts. */
.modal--snapshot .lib-card-img { width: 100%; height: 168px; object-fit: cover; border-radius: var(--r-field); }
.modal--snapshot .modal-title { font-size: var(--fs-card); }
.modal--snapshot .snap-segment { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.modal--snapshot .snap-products { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.modal--snapshot .snap-products li { padding: 4px 10px; border: 1px solid var(--orange-border); border-radius: var(--r-full);
  background: var(--orange-wash); font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--ink); }
.modal--snapshot .snap-facts { margin: 0; display: grid; gap: var(--s-3); }
.modal--snapshot .snap-facts div { display: grid; gap: 4px; padding-top: var(--s-3); border-top: 1px solid var(--border); }
.modal--snapshot .snap-facts dt { font-size: var(--fs-small); font-weight: var(--fw-strong); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); }
.modal--snapshot .snap-facts dd { margin: 0; color: var(--body); }
.modal--snapshot .snap-modal-actions { margin: var(--s-2) 0 0; }

/* the snapshot as its PDF (Robert, 2026-10-27): a wide dialog, the one-page story inline at 16:9, and the actions under it */
.modal--snapshot.modal--snapshot-pdf { width: min(100% - 32px, 1120px); }
.modal--snapshot .snap-pdf-frame { width: 100%; aspect-ratio: 16 / 9; max-height: calc(90vh - 240px); border: 1px solid var(--border); border-radius: var(--r-field); overflow: hidden; background: var(--bg-2); }
.modal--snapshot .snap-pdf-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.modal--snapshot .snap-modal-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.modal--snapshot .snap-pdf-frame img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
