/* Steen Family Gift Swap: site styles. Mobile-first; layer wider screens with min-width queries.
   Placeholder only: M9 does the real look and feel. */

:root {
    --giftswap-red: #a4161a;
    --giftswap-green: #1b4332;
}

.site-header {
    background-color: var(--giftswap-green);
    margin-bottom: 1.5rem;
}

.site-header .navbar {
    padding: 0.5rem 0;
}

.site-header .site-name {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.site-header .site-session {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.site-header .site-person {
    color: #fff;
}

h1 {
    color: var(--giftswap-red);
    font-size: 1.75rem;
}

.login-form,
.login-picker {
    max-width: 28rem;
}

/* Admin screens. */

.admin-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-form {
    max-width: 40rem;
}

/* People: a stacked card per person on a phone, a table-like row from 768px. */
.people-row {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.people-row > div {
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere;
}

.people-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.household-item {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0;
}

.household-form {
    display: flex;
    gap: 0.5rem;
    max-width: 28rem;
}

@media (min-width: 640px) {
    .site-header .site-name {
        font-size: 1.25rem;
    }

    h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .site-header .site-session {
        padding: 0;
    }

    .people-row {
        display: flex;
        align-items: center;
        gap: 1rem;
        border-width: 0 0 1px 0;
        border-radius: 0;
        margin-bottom: 0;
        padding: 0.5rem 0;
    }

    .people-row > div {
        margin-bottom: 0;
    }

    .people-header {
        font-weight: 600;
        border-bottom-width: 2px;
    }

    .people-name {
        flex: 0 0 22%;
    }

    .people-household {
        flex: 0 0 15%;
    }

    .people-email {
        flex: 1 1 auto;
    }

    .people-login {
        flex: 0 0 11%;
    }

    .people-actions {
        flex: 0 0 auto;
        margin-top: 0;
        justify-content: flex-end;
    }
}
