/* Front-end membership pages */

.nd-member-page__body {
    padding-block: 32px 64px;
}

.nd-member {
    width: min(720px, 100%);
    margin: 0 auto;
}

.nd-member--account {
    width: min(860px, 100%);
}

.nd-member__head {
    margin-bottom: 22px;
}

.nd-member__eyebrow {
    margin: 0 0 6px;
    color: var(--nd-color-primary, #8b5e3c);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nd-member__title {
    margin: 0 0 8px;
    color: var(--nd-color-dark, #2f2a25);
    font-family: var(--nd-font-family, inherit);
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.3;
}

.nd-member__lead,
.nd-member-note,
.nd-member-empty {
    margin: 0;
    color: var(--nd-color-text, #5a564e);
    line-height: 1.7;
}

.nd-member-note {
    margin-bottom: 18px;
    font-size: 14px;
}

.nd-member__card > .nd-member-note {
    margin-top: 16px;
}

.nd-member__card {
    margin-top: 18px;
    padding: 28px 26px;
    border: 1px solid var(--nd-color-border, #eadfd3);
    border-radius: 16px;
    background: var(--nd-color-card-bg, #fffdf7);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--nd-color-dark, #2f2a25) 6%, transparent);
}

.nd-member__card-title {
    margin: 0 0 8px;
    font-size: 20px;
}

.nd-member__subhead {
    margin: 8px 0 12px;
    font-size: 16px;
}

.nd-member__submit {
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
}

.nd-member__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 18px 0 0;
    font-size: 14px;
}

.nd-member__links a {
    color: var(--nd-color-primary, #8b5e3c);
}

.nd-member-check {
    margin: 0 0 16px;
}

.nd-member-check label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.nd-member-flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.nd-member-flash--success {
    background: color-mix(in srgb, var(--nd-color-success, #2f6435) 12%, white);
    color: #215328;
}

.nd-member-flash--error {
    background: color-mix(in srgb, var(--nd-color-error, #8b2f2f) 12%, white);
    color: #7a2424;
}

.nd-member-flash--warn {
    background: color-mix(in srgb, var(--nd-color-accent, #c4a574) 22%, white);
    color: #6a4e1f;
}

.nd-member-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}

.nd-member-tabs__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--nd-color-border, #eadfd3);
    border-radius: 999px;
    background: var(--nd-color-card-bg, #fff);
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.nd-member-tabs__link.is-active {
    background: var(--nd-color-dark, #2f2a25);
    border-color: var(--nd-color-dark, #2f2a25);
    color: var(--nd-color-light, #fffdf7);
}

.nd-member-tabs__link--out {
    margin-left: auto;
    font-weight: 500;
}

.nd-member-history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.nd-member-history__item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--nd-color-border, #eadfd3);
}

.nd-member-history__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.nd-member-history__kicker {
    margin: 0 0 4px;
    color: var(--nd-color-primary, #8b5e3c);
    font-size: 12px;
    font-weight: 700;
}

.nd-member-history__item h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.nd-member-history__item p {
    margin: 0;
    color: var(--nd-color-text, #5a564e);
    font-size: 14px;
}

.nd-member-history__meta {
    display: grid;
    gap: 4px;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
}

.nd-member-empty {
    margin-bottom: 16px;
}

.menu-item-member,
.menu-item-member > a,
.menu-item-member .global-nav-name {
    white-space: nowrap;
}

.menu-item-member a {
    font-weight: 700;
}

@media (max-width: 640px) {
    .nd-member__card {
        padding: 22px 18px;
    }

    .nd-member-history__item {
        flex-direction: column;
    }

    .nd-member-history__meta {
        text-align: left;
    }

    .nd-member-tabs__link--out {
        margin-left: 0;
    }
}
