/* Profile header level summary. */
.profile-level-card {display:flex;align-items:center;gap:18px;width:100%;max-width:560px;box-sizing:border-box;margin:12px 0 0;padding:20px;border:1px solid #dce7f4;border-radius:16px;background:linear-gradient(115deg,#f3f8ff,#fbfdff);color:#263a53;text-align:left;text-decoration:none;transition:border-color .15s,box-shadow .15s;line-height:1.5;overflow-wrap:anywhere}
.profile-level-card:hover {color:#263a53;text-decoration:none;border-color:#89b4ea;box-shadow:0 4px 16px #315b8c0d}
.profile-level-card:focus-visible {outline:3px solid #4b8edb;outline-offset:3px}
.profile-level-card * {box-sizing:border-box}
.profile-level-medal-wrap {display:flex;align-items:center;justify-content:center;flex:0 0 82px}
.profile-level-card .profile-level-medal {display:block;width:82px;height:82px;margin:0;background-size:contain;background-position:center;background-repeat:no-repeat}
.profile-level-special {font-size:24px;font-weight:800;color:#4774a8}
.profile-level-content {display:block;flex:1;min-width:0}
.profile-level-heading {display:flex;justify-content:space-between;align-items:center;gap:12px}
.profile-level-heading>span:first-child {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.profile-level-label {font-size:11px;color:#738197;font-weight:500}
.profile-level-name {font-size:19px;letter-spacing:-.5px;color:#253c59;font-weight:750}
.profile-level-link {font-size:11px;color:#637b98;white-space:nowrap}
.profile-level-message {display:block;margin-top:8px;font-size:13px;color:#61758d;word-break:keep-all}
.profile-level-message strong {color:#2c69b9;font-weight:700}
.profile-level-meter {display:block;height:8px;border-radius:20px;background:#e0e9f5;overflow:hidden;margin-top:13px}
.profile-level-meter>span {display:block;height:100%;background:#4d88dc;border-radius:20px}
.profile-level-numbers {display:flex;justify-content:space-between;gap:10px;margin-top:7px;font-size:10px;color:#748297;font-variant-numeric:tabular-nums}
.profile-level-numbers strong {color:#42658e;font-weight:650}
.profile-level-card.is-complete {background:#f7f9fc;border-color:#e6ebf2}
.profile-level-card.is-complete .profile-level-message {margin-top:5px;font-size:12px}
.profile-level-details {min-width:0;flex:1}
@media(max-width:767px) {
    .profile-level-card {max-width:none;margin:8px auto 0;padding:16px 14px;gap:12px}
    .profile-level-medal-wrap {flex-basis:64px}
    .profile-level-card .profile-level-medal {width:64px;height:64px}
    .profile-level-heading {gap:6px}
    .profile-level-heading>span:first-child {gap:4px}
    .profile-level-label {font-size:10px}
    .profile-level-name {font-size:17px}
    .profile-level-link {font-size:10px}
    .profile-level-message {font-size:12px;margin-top:6px}
    .profile-level-numbers {font-size:10px;gap:4px;flex-wrap:wrap}
}
@media(max-width:380px) {
    .profile-level-card {padding:14px 12px;gap:10px}
    .profile-level-medal-wrap {flex-basis:52px}
    .profile-level-card .profile-level-medal {width:52px;height:52px}
    .profile-level-heading {align-items:flex-start}
    .profile-level-heading>span:first-child {display:block}
    .profile-level-label {display:block}
    .profile-level-link {padding-top:3px}
}
@media(prefers-reduced-motion:reduce) {.profile-level-card {transition:none}}
/* Keep the level card no taller than the 100px profile photo. */
.profile-level-card {padding:10px 14px;gap:12px;max-width:500px;min-height:0}
.profile-level-medal-wrap {flex-basis:60px}
.profile-level-card .profile-level-medal {width:60px;height:60px}
.profile-level-name {font-size:16px;line-height:1.3}
.profile-level-label,.profile-level-link {font-size:10px}
.profile-level-message {margin-top:3px;font-size:12px;line-height:1.4}
.profile-level-meter {height:5px;margin-top:6px}
.profile-level-numbers {margin-top:4px;font-size:10px;line-height:1.3}
.profile-level-card.is-complete {min-height:80px}
.profile-level-card.is-complete .profile-level-message {font-size:11px}
@media(max-width:767px) {
    .profile-level-card {padding:10px 12px;gap:10px;margin-top:4px;max-width:none}
    .profile-level-medal-wrap {flex-basis:48px}
    .profile-level-card .profile-level-medal {width:48px;height:48px}
    .profile-level-heading>span:first-child {display:flex;gap:4px}
    .profile-level-heading {align-items:center}
    .profile-level-label {display:inline}
    .profile-level-link {padding-top:0}
    .profile-level-message {font-size:11px}
    .profile-level-numbers {font-size:9px;flex-wrap:nowrap}
}
/* Use the full profile header width without a card border. */
.profile-summary-header .profile-level-card {width:100%;max-width:none;border:0;box-shadow:none}
.profile-summary-header .profile-level-card:hover {border:0;box-shadow:none}

.profile-level-footer {display:flex;align-items:baseline;justify-content:space-between;gap:4px 16px;flex-wrap:wrap;margin-top:6px}
.profile-level-footer .profile-level-message {margin-top:0}
.profile-level-footer .profile-level-numbers {justify-content:flex-end;gap:8px;margin:0 0 0 auto;text-align:right;flex-wrap:wrap}

/* Benefit link sits outside the card; the percentage marks the filled position. */
.profile-level-toolbar {display:flex;justify-content:flex-end;width:100%;margin-top:12px;margin-bottom:5px;line-height:1.4}
.profile-level-toolbar a {font-size:11px;color:#637b98;text-decoration:none;padding:4px 0 4px 12px}
.profile-level-toolbar a:hover {color:#2c69b9;text-decoration:underline}
.profile-level-toolbar a:focus-visible {outline:2px solid #4b8edb;outline-offset:3px}
.profile-summary-header .profile-level-toolbar + .profile-level-card {margin-top:0}
.profile-level-meter {position:relative;overflow:visible;margin-top:8px}
.profile-level-meter>.profile-level-fill {height:100%;border-radius:20px}
.profile-level-meter>.profile-level-marker {position:absolute;left:clamp(156px,var(--profile-progress),calc(100% - 23px));bottom:8px;transform:translateX(-50%);height:auto;min-width:46px;background:none;border-radius:0;text-align:center;color:#2c69b9;font-size:18px;font-weight:800;line-height:20px;font-variant-numeric:tabular-nums;white-space:nowrap}
.profile-level-meter>.profile-level-marker:after {content:'';position:absolute;left:50%;top:100%;height:7px;width:1px;background:#82a9dc}

.profile-level-card.has-progress .profile-level-heading {height:20px;line-height:20px}
.profile-level-meter>.profile-level-fill {max-width:100%}

/* Separate padded profile content from the edge-to-edge level footer. */
.profile-summary-header {padding:0;display:block;box-sizing:border-box}
.profile-summary-main {position:relative;padding:32px;box-sizing:border-box;text-align:left}
.profile-summary-header .profile-level-bottom {width:100%;margin:0;box-sizing:border-box}
.profile-summary-header .profile-level-bottom .profile-level-toolbar {box-sizing:border-box;padding:0 32px;margin:0 0 6px}
.profile-summary-header .profile-level-bottom .profile-level-card {width:100%;max-width:none;margin:0;border-radius:0 0 16px 16px;padding:14px 32px}
@media(max-width:767px) {
    .profile-summary-main {display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px;text-align:center}
    .profile-summary-header .profile-level-bottom .profile-level-toolbar {padding:0 20px}
    .profile-summary-header .profile-level-bottom .profile-level-card {padding:12px 20px}
}

.profile-level-benefit-tag {display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:2px 6px;border-radius:5px;background:#e7edf5;color:#536c89;font-size:10px;font-weight:500;line-height:15px;white-space:nowrap}
.profile-level-heading>span:first-child {flex-wrap:nowrap}
.profile-summary-header .profile-level-bottom .profile-level-card {margin-top:0}
/* Increase the text below the progress bar by 1pt (4/3 CSS px). */
.profile-level-footer .profile-level-message {font-size:calc(12px + 1pt)}
.profile-level-footer .profile-level-numbers {font-size:calc(10px + 1pt)}
@media(max-width:767px) {
    .profile-level-footer .profile-level-message {font-size:calc(11px + 1pt)}
    .profile-level-footer .profile-level-numbers {font-size:calc(9px + 1pt)}
}

/* Display the full introduction and allow natural wrapping on narrow screens. */
.profile-intro-text {width:100%;margin-top:6px;color:#667386;font-size:14px;line-height:1.6;text-align:left;white-space:normal;overflow-wrap:anywhere}
@media(max-width:767px) {.profile-intro-text {text-align:center}}
