.member-page {
    color-scheme: light;
    --page: #f3f6f4;
    --surface: #ffffff;
    --ink: #16231c;
    --muted: #637068;
    --line: #dce5df;
    --accent: #17633d;
    --accent-soft: #e3f1e9;
    --warm: #f3ead7;
    --shadow: 0 18px 50px rgba(28, 49, 37, 0.08);
}

.member-page,
.member-page * {
    box-sizing: border-box;
}

body.bco-member-detail-standalone {
    margin: 0;
    background: #f3f6f4;
}

.member-page {
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.member-page a {
    color: var(--accent);
    overflow-wrap: anywhere;
    text-underline-offset: 0.18em;
}

.member-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 80px;
}

.profile-header,
.member-page .state-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.profile-header {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 42px;
}

.profile-photo {
    display: grid;
    aspect-ratio: 4 / 5;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(145deg, #dfe8e2, #eef3f0);
    color: #718078;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.profile-photo--image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;
}

.eyebrow,
.card-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.member-page h1,
.member-page h2,
.member-page h3,
.member-page p {
    margin-top: 0;
}

.member-page h1 {
    margin-bottom: 0;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.profile-heading {
    min-width: 0;
}

.profile-name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    margin-bottom: 24px;
}

.profile-name-row .profile-name {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.profile-name-row.has-hall-of-fame {
    margin-bottom: 36px;
}

.hall-of-fame-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 6px 11px;
    border: 1px solid #dfcc9c;
    border-radius: 999px;
    background: #fbf6e9;
    color: #72551c;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.member-page h2 {
    margin-bottom: 24px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.member-page .profile-name {
    margin-bottom: 0;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.member-page h3 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.profile-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 44px;
    margin: 0;
}

.profile-facts div {
    display: grid;
    gap: 2px;
}

.profile-facts dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-facts dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    min-width: 0;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.stack-list,
.contact-list {
    display: grid;
    gap: 18px;
}

.stack-item+.stack-item {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.stack-item p {
    margin-bottom: 2px;
}

.member-page .muted,
.member-page .achievement-meta,
.member-page .section-heading>p:last-child {
    color: var(--muted);
}

.member-page .badge,
.member-page .place {
    display: inline-flex;
    margin-top: 9px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
}

.contact-list {
    font-style: normal;
}

.qualification-group+.qualification-group {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.qualification-group h2 {
    margin-bottom: 14px;
}

.qualification-group ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.achievements {
    margin-top: 56px;
}

.member-page .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-bottom: 20px;
}

.member-page .section-heading h2,
.member-page .section-heading p {
    margin-bottom: 0;
}

.member-page .section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.achievement-list {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.achievement-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 26px;
    padding: 24px 28px;
}

.achievement-item+.achievement-item {
    border-top: 1px solid var(--line);
}

.achievement-time {
    color: var(--accent);
    font-weight: 800;
}

.achievement-time.is-undated {
    color: var(--muted);
    font-weight: 650;
}

.achievement-title-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.achievement-title-row h3 {
    margin-bottom: 6px;
}

.member-page .place {
    flex: 0 0 auto;
    margin-top: 0;
    background: var(--warm);
    color: #72551c;
}

.member-page .achievement-meta {
    margin-bottom: 0;
}

.member-page .state-panel {
    max-width: 720px;
    margin: 10vh auto 0;
    padding: clamp(32px, 7vw, 64px);
}

.member-page .state-panel h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 6vw, 3.6rem);
}

.member-page .state-panel p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

@media (max-width: 680px) {
    .member-page {
        width: min(100% - 24px, 1180px);
        padding: 20px 0 48px;
    }

    .profile-header {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 20px;
        align-items: start;
        padding: 24px;
        border-radius: 22px;
    }

    .profile-photo {
        border-radius: 16px;
    }

    .profile-heading .profile-name {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
    }

    .profile-name-row {
        display: grid;
        justify-items: start;
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .profile-name-row.has-hall-of-fame {
        margin-bottom: 28px;
    }

    .profile-facts {
        display: grid;
        gap: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 14px;
    }

    .info-card {
        padding: 24px;
    }

    .achievements {
        margin-top: 40px;
    }

    .achievement-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px;
    }

    .achievement-title-row {
        display: grid;
        gap: 7px;
        justify-items: start;
    }
}

@media (max-width: 420px) {
    .profile-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .profile-photo {
        width: 92px;
        justify-self: center;
    }

    .profile-heading {
        width: 100%;
    }

    .profile-heading .profile-name {
        font-size: 1.55rem;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }
}
