/*
 * Secret Santa (plan 14): the organizer's pages, and a participant's link (/s/). Listed in
 * base.html.twig, never imported from assets/app.js (ruling P18).
 */

/* One row per person, or per exclusion: her name, her address, her button. */
.santa-people {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.santa-people > li {
    display: flex;
    align-items: baseline;
    gap: 4px 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.santa-people > li:first-child {
    border-top: 0;
}

.santa-name {
    font-weight: 600;
}

.santa-you {
    font-weight: 400;
    color: var(--muted);
}

.santa-email {
    flex: 1;
    min-width: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.santa-people form {
    margin-left: auto;
}

/* On a phone, a row goes on two lines rather than squeeze the address. */
@media (max-width: 400px) {
    .santa-people > li {
        flex-wrap: wrap;
    }
}

.santa-summary p {
    margin: 0 0 8px;
}

.santa-message {
    white-space: pre-line;
}

.santa-add {
    margin-top: 8px;
}

/* « {A} et {B} »: the two lists of an exclusion, side by side while they fit. */
.santa-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.santa-pair .f {
    flex: 1 1 8rem;
    width: auto;
    min-width: 0;
}

/* Why a draw cannot be made, and what to relax (task 7). */
.santa-impossible {
    background: var(--accent-soft);
    border-radius: var(--radius);
    padding: 14px 16px;
    /* Clear of the page's title, as a message (.narrow > .flash). */
    margin: 20px 0 16px;
}

.santa-impossible p {
    margin: 0 0 8px;
}

.santa-impossible ul {
    margin: 0;
    padding-left: 20px;
}

.santa-launch,
.santa-redraw,
.santa-again {
    margin: 0 0 24px;
}

/* Once drawn: under her name and address, her link to copy or share, then « Nouveau lien ». */
.santa-drawn-at {
    margin: 0 0 4px;
    font-weight: 600;
}

.santa-links > li {
    flex-wrap: wrap;
}

/* Her whole address beside her name, its chip going under it when the line is too short, rather
   than the address squeezed into a column (« flex: 1 » alone would never let the row wrap). */
.santa-links .santa-email {
    flex-basis: auto;
}

.santa-links .chip {
    margin-left: auto;
}

.santa-link,
.santa-renew,
.santa-person-actions {
    flex: 1 1 100%;
    margin: 0;
}

/* « Nouveau lien » and « Se désiste… » side by side, at the start of the line. */
.santa-person-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
}

.santa-person-actions form {
    margin: 0;
}

.santa-link .share-actions {
    margin-top: 8px;
}

.santa-renew {
    color: var(--accent);
}

/*
 * A participant's link (/s/{token}, task 8): the draw, whom she gives to once revealed, then her
 * own list and ideas, one card each.
 */
.santa-link-page > section {
    margin-top: 16px;
}

.santa-summary p,
.santa-target p,
.santa-before p {
    margin: 0 0 8px;
}

.santa-hello {
    font-weight: 600;
}

/* « Tu offres un cadeau à », then her first name, large. */
.santa-lead {
    color: var(--muted);
}

.santa-target-name {
    font: 650 clamp(1.75rem, 7vw, 2.375rem)/1.1 var(--display);
    color: var(--accent);
    overflow-wrap: anywhere;
}

.santa-list {
    margin-top: 12px;
}

.santa-list .hint {
    margin: 0 0 4px;
}

.santa-target .santa-opened,
.santa-before .santa-opened {
    margin-top: 12px;
}

.santa-field .f {
    display: block;
}

.santa-wishes .block-title {
    margin-top: 0;
}
