/* Design cards (sme_design_cards_html() in app/sme_designs.php): a small drawing of each ready-made design, as a
   radio button. Used by the builder (book.php) and the host's account (account-design.php). */
.dz-groups { display: grid; gap: 18px; }
.dz-group { display: grid; gap: 10px; }
.dz-group-name { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--slate); }
.dz-group.is-current .dz-group-name { display: none; }
.dz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .dz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dz-card { position: relative; display: flex; min-width: 0; }
.dz-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dz-ui { flex: 1; min-width: 0; display: grid; grid-template-rows: auto 1fr; border-radius: 18px; border: 1.5px solid var(--fog); background: var(--card); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease, ease); }
.dz-card:hover .dz-ui { border-color: #C5C7D3; }
.dz-card input:checked + .dz-ui { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.dz-card input:focus-visible + .dz-ui { outline: 3px solid var(--seal); outline-offset: 3px; }

/* The design's art (sme_art_html()), drawn still, in the card's own colors (sme_art_css() is inlined by the page). */
.dz-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.dz-mini { isolation: isolate; --a1: var(--m-main); --a2: color-mix(in srgb, var(--m-main) 50%, var(--m-bg)); --a3: color-mix(in srgb, var(--m-main) 24%, var(--m-bg));
  --a4: color-mix(in srgb, var(--m-main) 12%, var(--m-bg)); --a5: color-mix(in srgb, var(--m-main) 50%, #6E7BFF); --a-line: color-mix(in srgb, var(--m-ink) 18%, transparent); }
.dz-mini { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--m-bg); color: var(--m-ink); display: grid; align-content: center; justify-items: center; gap: 6px; padding: 12px 10px; text-align: center; }
.dz-t { position: relative; max-width: 100%; font-family: var(--m-head), Georgia, serif; font-weight: var(--m-w, 700); font-size: 19px; line-height: 1.05; color: var(--m-main); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dz-w { position: relative; font-size: 10px; line-height: 1.2; opacity: .75; }
.dz-b { position: relative; width: 62%; height: 12px; border-radius: 999px; background: var(--m-main); }

.dz-mini.l-classic .dz-t { padding-bottom: 5px; border-bottom: 1px solid color-mix(in srgb, var(--m-ink) 15%, transparent); }
.dz-mini.l-poster { align-content: end; justify-items: start; text-align: left; padding-bottom: 12px; }
.dz-mini.l-poster::before { content: ""; position: absolute; inset: 0 0 42% 0; background: linear-gradient(160deg, var(--m-main), color-mix(in srgb, var(--m-main) 35%, #000)); }
.dz-mini.l-poster .dz-t { color: var(--m-ink); }
.dz-mini.l-stationery::before { content: ""; position: absolute; inset: 8px; border: 1px solid color-mix(in srgb, var(--m-main) 60%, transparent); outline: 1px solid color-mix(in srgb, var(--m-main) 35%, transparent); outline-offset: -4px; }
.dz-mini.l-ticket::before { content: ""; position: absolute; inset: 16% 9px; background: #FFFDF6; border-radius: 8px;
  -webkit-mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.dz-mini.l-ticket .dz-t, .dz-mini.l-ticket .dz-w { color: #14141F; }
.dz-mini.l-night::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--m-main) 32%, transparent), transparent 70%); }
.dz-mini.l-night .dz-t { text-shadow: 0 0 12px color-mix(in srgb, var(--m-main) 70%, transparent); }
.dz-mini.l-confetti::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 14% 16%, var(--m-main) 0 4px, transparent 5px), radial-gradient(circle at 86% 20%, #FFD27A 0 5px, transparent 6px), radial-gradient(circle at 10% 82%, #9CC9F0 0 5px, transparent 6px), radial-gradient(circle at 88% 84%, #F7B5C8 0 4px, transparent 5px), radial-gradient(circle at 60% 8%, #B8E2C8 0 3px, transparent 4px); }
.dz-mini.l-editorial { justify-items: start; text-align: left; align-content: start; padding-top: 14px; }
.dz-mini.l-editorial::before { content: ""; position: relative; width: 22px; height: 3px; background: var(--m-main); }

.dz-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 8px 12px; font-size: 14px; font-weight: 650; line-height: 1.2; border-top: 1px solid var(--fog); }
.dz-name > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.dz-name small { display: block; margin-top: 1px; font-size: 12px; font-weight: 600; color: var(--slate); }
.dz-tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--fog); }
.dz-card input:checked + .dz-ui .dz-tick { background: var(--seal); border-color: var(--seal); }
.dz-card input:checked + .dz-ui .dz-tick::after { content: ""; width: 5px; height: 9px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(45deg); }

.dz-more { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--fog); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.dz-more:hover { border-color: #C5C7D3; }
.dz-more:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; }
