/* Round 7 (22 Nov) styles: r7-match. Loaded after earlier CSS. */

/* Match uses the shared list card (cardHTML/galleryHTML). Score badge sits above the photo dots so the two never overlap. */
.card-media .match-score { left: 10px; bottom: 26px; max-width: calc(100% - 20px); font-size: 12.5px; padding: 5px 10px; line-height: 1.25; }
.card-media .m-hidden-badge { position: absolute; right: 10px; bottom: 26px; background: rgba(15, 36, 48, .78); color: #fff; font: 600 12.5px var(--body); padding: 5px 10px; border-radius: 999px; }
.card .why .tag { max-width: 100%; }

/* actions live below the card link, never inside it */
.reveal:has(> .card-actions) { display: flex; flex-direction: column; gap: 8px; }
.reveal:has(> .card-actions) > .card { flex: 1 1 auto; }
.card-actions { display: grid; gap: 8px; }
.card-actions .ca-btns { display: flex; gap: 8px; }
.card-actions .ca-btns .btn:first-child { flex: 1 1 auto; justify-content: center; }
.card-actions .ca-btns .btn:last-child { flex: none; }
.card-actions > .btn { width: 100%; justify-content: center; }
.avail-chip { justify-self: start; max-width: 100%; text-align: left; padding: 6px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 500 13px/1.25 var(--body); cursor: pointer; touch-action: manipulation; }
.avail-chip.av-confirmed { border-color: var(--sea); color: var(--sea-ink); background: var(--sea-wash); }
.avail-chip.av-blocked { border-color: var(--ink-3); }

/* hide / restore */
.reveal.leaving { opacity: 0; transform: scale(.96); transition: opacity .2s ease, transform .2s ease, height .3s ease, margin .3s ease; transform-origin: 50% 30%; }
.reveal.collapse { margin: 0; overflow: hidden; }
.toast.toast-undo { width: max-content; display: flex; align-items: center; gap: 14px; padding-right: 8px; }
.toast.toast-undo button { border: 0; background: rgba(255, 255, 255, .16); color: #fff; font: 600 14.5px var(--body); min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; touch-action: manipulation; }

/* header bits of the results page */
.m-how { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.m-how .linkbtn { min-height: 36px; }
.sc-list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }

/* quiz: guest stepper sits between the party type and the extras */
.m-guests { margin: 16px 0 6px; }
.m-guests + .m-sub { margin-top: 22px; }
