/* Shared geometry for the member area; deliberately scoped to member views.
   Keep the navigation full width even when a form is narrower. */
.member-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 72rem;
    min-width: 0;
    margin-inline: auto;
    padding: 1rem 1rem 2rem;
}

.member-page--compact {
    max-width: 35rem;
}

.member-page-title,
.member-page [data-member-register-app] h1 {
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    line-height: 1.2;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.member-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.member-page-header > * {
    min-width: 0;
}

.member-page header .btn {
    max-width: 100%;
    height: auto;
    min-height: 2.5rem;
    white-space: normal;
    overflow-wrap: anywhere;
    padding-block: .5rem;
}

/* Stable menu tracks: active and inactive links have identical geometry.
   Every authenticated member view uses this same shell and spacing. */
.member-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
    gap: .5rem;
    margin-block-end: 1rem;
    padding-block-end: .75rem;
    border-block-end: 1px solid var(--color-base-300);
}

.member-nav .btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 2.75rem;
    padding: .5rem .625rem;
    border-width: 1px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

@media (min-width: 40rem) {
    .member-page {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 48rem) {
    .member-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 47.999rem) {
    .member-nav > a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Compact claim and account layouts. Mobile is the default reading order:
   introduction, action, then additional benefits; no visual reordering. */
.claim-breadcrumb { margin-block-end: .75rem; }
.claim-heading { margin-block-end: 1rem; }
.claim-heading .member-page-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.claim-heading > p { overflow-wrap: anywhere; }

.claim-layout, .claim-primary, .claim-support,
.member-account-grid, .member-account-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .875rem;
    align-items: start;
    min-width: 0;
}
.claim-card, .member-account-column > .card { min-width: 0; align-self: start; }
.claim-card h2, .claim-card h3, .member-account-card-body h2 { overflow-wrap: anywhere; }
#claim-intro-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.claim-video-actions > a, .claim-action .btn, .member-account-card-body .btn {
    max-width: 100%;
    height: auto;
    min-height: 2.75rem;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    padding-block: .5rem;
}
.claim-action :is(select, textarea, input), .member-account-card-body :is(input, select) { min-width: 0; max-width: 100%; }
.claim-action { scroll-margin-block-start: 6rem; }
.claim-feature-list { display: grid; min-width: 0; }
.claim-feature-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
    padding-block: .75rem;
}
.claim-feature-row + .claim-feature-row { border-block-start: 1px solid var(--color-base-300); }
.claim-feature-row:first-child { padding-block-start: 0; }
.claim-feature-row:last-child { padding-block-end: 0; }
.claim-feature-row > div { min-width: 0; overflow-wrap: anywhere; }
.member-account-card-body { padding: 1rem; gap: .75rem; min-width: 0; }
.member-account-card-body > :is(form, label, p, details) { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 48rem) {
    .member-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 56rem) {
    .claim-primary, .claim-support { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1rem; }
    .claim-layout { gap: 1rem; }
    .member-account-card-body { padding: 1.25rem; }
}
@media (max-width: 39.999rem) {
    .claim-video-actions > a { flex: 1 1 100%; }
    .member-account-card-body > .btn, .member-account-card-body form > .btn { width: 100%; }
    .claim-action :is(select, textarea, input[type="file"]), .member-account-card-body :is(input:not([type="checkbox"]):not([type="hidden"]), select) {
        font-size: 1rem;
    }
}
