/* Relevant rules imported from the November 2026 participant profile mockup styles.css.
 * Original class names are retained and scoped under .rfl-participant-profile.
 * Font aliases use the same locally hosted typefaces as the shared RFL shell. */
.rfl-participant-profile{--purple:#5f249f;--teal:#009c9d;--deep:#3a1568;--ink:#251938;--yellow:#5f249f;--paper:#fff;--line:#e7e2ed;--muted:#71697e;--lavender:#f1ebf9;--green:#27714e;--radius:18px;font:17px/1.65 'DM Sans',Arial,sans-serif;color:var(--ink)}
.rfl-participant-profile a{color:inherit;text-decoration:none}
.rfl-participant-profile button,.rfl-participant-profile input,.rfl-participant-profile select,.rfl-participant-profile textarea{font:inherit}
.rfl-participant-profile button,.rfl-participant-profile a,.rfl-participant-profile input,.rfl-participant-profile select,.rfl-participant-profile textarea{ -webkit-tap-highlight-color:transparent}
.rfl-participant-profile button{cursor:pointer}
.rfl-participant-profile button:focus-visible,.rfl-participant-profile a:focus-visible,.rfl-participant-profile input:focus-visible,.rfl-participant-profile select:focus-visible,.rfl-participant-profile textarea:focus-visible{outline:3px solid #5f249f;outline-offset:4px}
.rfl-participant-profile h1,.rfl-participant-profile h2,.rfl-participant-profile h3,.rfl-participant-profile p{margin:0}
.rfl-participant-profile h1,.rfl-participant-profile h2{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;line-height:.99;letter-spacing:-.02em;font-weight:700}
.rfl-participant-profile h1{font-size:clamp(3.4rem,6.7vw,6.6rem);text-transform:uppercase}
.rfl-participant-profile h2{font-size:clamp(2.5rem,4vw,3.7rem);text-transform:uppercase}
.rfl-participant-profile h3{font-size:1.22rem;line-height:1.3}
.rfl-participant-profile .wrap{width:min(1240px,calc(100% - 96px));margin:auto}
.rfl-participant-profile .eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.16em;font-weight:700;display:block;margin-bottom:17px}
.rfl-participant-profile .muted{color:var(--muted)}
.rfl-participant-profile .small{font-size:15px}
.rfl-participant-profile .btn{border:1px solid transparent;border-radius:7px;padding:14px 24px;font-size:15px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:15px;line-height:1.4;background:var(--purple);color:#fff;transition:background .2s,transform .2s}
.rfl-participant-profile .btn:hover{background:#5d469a;transform:translateY(-1px)}
.rfl-participant-profile .btn.yellow{background:var(--yellow);color:#fff}
.rfl-participant-profile .btn.yellow:hover{background:#4a1c80}
.rfl-participant-profile .btn.outline{border:1px solid #009c9d;color:#009c9d;background:#fff}
.rfl-participant-profile .btn.wide{width:100%}
.rfl-participant-profile .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.rfl-participant-profile .progress{background:#e6ddf3;height:9px;border-radius:10px;overflow:hidden;margin:18px 0 10px}
.rfl-participant-profile .progress>span{display:block;height:100%;background:var(--purple);border-radius:10px}
.rfl-participant-profile .progress.yellow>span{background:var(--yellow)}
.rfl-participant-profile .tag{display:inline-flex;border-radius:50px;background:var(--lavender);color:var(--purple);padding:6px 12px;font-size:13px;font-weight:700;letter-spacing:.03em}
.rfl-participant-profile .tag.yellow{background:var(--purple);color:#fff}
.rfl-participant-profile .tag.gray{background:#f0eef3;color:var(--muted)}
.rfl-participant-profile .text-link{color:var(--purple);font-size:15px;font-weight:700}
.rfl-participant-profile .two-col{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);gap:30px;align-items:start}
.rfl-participant-profile .stack{display:grid;gap:22px}
.rfl-participant-profile .panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:32px}
.rfl-participant-profile .panel h3{margin-bottom:14px}
.rfl-participant-profile .panel h2{font-size:38px;margin-bottom:22px}
.rfl-participant-profile .panel p{color:var(--muted)}
.rfl-participant-profile .divider{height:1px;background:var(--line);margin:24px 0}
.rfl-participant-profile .big-number{font:700 54px/1.1 'Barlow Condensed',Impact,sans-serif}
.rfl-participant-profile input:not([type=checkbox]):not([type=radio]),.rfl-participant-profile select,.rfl-participant-profile textarea{width:100%;border:1px solid #d8d2e2;padding:12px 14px;border-radius:7px;background:#fff;color:var(--ink);font-size:15px}
.rfl-participant-profile textarea{min-height:110px;resize:vertical}
.rfl-participant-profile table{width:100%;border-collapse:collapse;white-space:nowrap}
.rfl-participant-profile th{text-align:left;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.07em;background:#f9f7fc;font-weight:600}
.rfl-participant-profile td,.rfl-participant-profile th{padding:18px 20px;border-bottom:1px solid var(--line)}
.rfl-participant-profile td{font-size:14px}
.rfl-participant-profile .avatar{width:42px;height:42px;background:var(--lavender);color:var(--purple);border-radius:50%;display:grid;place-items:center;font-weight:700;flex-shrink:0}
.rfl-participant-profile .avatar.large{width:112px;height:112px;font:700 44px 'Barlow Condensed',Impact,sans-serif;border:6px solid white;background:var(--purple);color:#fff}
.rfl-participant-profile .profile-cover{height:190px;background:var(--purple);position:relative;overflow:hidden}
.rfl-participant-profile .profile-cover:before{content:'';position:absolute;width:600px;height:600px;border:36px solid #7a52bd;border-radius:50%;right:10%;top:-360px;box-shadow:0 0 0 40px #6750a5,0 0 0 80px #7a68bd}
.rfl-participant-profile .profile-cover .wrap{padding-top:38px;color:#d9d4ea;position:relative}
.rfl-participant-profile .profile-heading{display:flex;gap:22px;align-items:end;margin-top:-54px;position:relative;margin-bottom:30px}
.rfl-participant-profile .profile-heading h1{font-size:48px;margin-top:15px}
.rfl-participant-profile .profile-heading .tag{margin:8px 5px 0 0}
.rfl-participant-profile .profile-layout{padding-bottom:70px}
.rfl-participant-profile .supporter{padding:18px 0;border-bottom:1px solid var(--line);font-size:15px}
.rfl-participant-profile .supporter header{display:flex;justify-content:space-between;margin-bottom:7px}
.rfl-participant-profile .amounts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}
.rfl-participant-profile .amount{border:1px solid var(--line);border-radius:7px;padding:12px 5px;font-size:14px;background:white;color:var(--ink);font-weight:700}
.rfl-participant-profile .amount.active{border-color:var(--purple);background:var(--lavender);color:var(--purple)}
@media(max-width:1100px){
.rfl-participant-profile .wrap{width:calc(100% - 56px)}
}
@media(max-width:900px){
.rfl-participant-profile .two-col{grid-template-columns:1fr}
}
@media(max-width:620px){
.rfl-participant-profile .wrap{width:calc(100% - 36px)}
.rfl-participant-profile .panel{padding:24px}
.rfl-participant-profile .two-col{gap:22px}
.rfl-participant-profile .profile-heading{align-items:start;flex-direction:column;gap:10px}
.rfl-participant-profile .profile-heading h1{margin-top:0}
.rfl-participant-profile .tag{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
.rfl-participant-profile .btn{transition:none}
.rfl-participant-profile .btn:hover{transform:none}
}
@media(prefers-reduced-motion:no-preference){
.rfl-participant-profile .amount{transition:background-color .15s ease,border-color .15s ease,color .15s ease}
}
.rfl-participant-profile .panel:nth-of-type(even) .eyebrow{color:#009c9d}
@keyframes rfl-lb-confetti-fall{0%{transform:translateY(0) rotate(0deg);opacity:0}12%{opacity:.95}100%{transform:translateY(340px) rotate(540deg);opacity:0}}
.rfl-participant-profile .amount{position:relative}/* Dynamic content and semantic donation controls. */
.rfl-participant-profile-screen .site-main{width:100%;padding:0}
.rfl-participant-profile .profile-layout .two-col{align-items:start}
.rfl-participant-profile .profile-heading>div,.rfl-participant-profile .two-col>*,.rfl-participant-profile .panel{min-width:0}
.rfl-participant-profile .profile-heading h1{overflow-wrap:anywhere}
.rfl-participant-profile .profile-teams{margin-left:auto}
.rfl-participant-profile .profile-story-title{font-size:38px;overflow-wrap:anywhere}
.rfl-participant-profile .profile-story{overflow-wrap:anywhere}
.rfl-participant-profile .profile-story p:first-child{margin-top:18px}
.rfl-participant-profile .profile-fundraising .big-number{overflow-wrap:anywhere}
.rfl-participant-profile .profile-progress-labels{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.rfl-participant-profile .amounts{grid-template-columns:repeat(3,minmax(0,1fr))}
.rfl-participant-profile .profile-amount{position:relative;min-width:0;cursor:pointer}
.rfl-participant-profile .profile-amount input{position:absolute;width:1px;height:1px;opacity:0}
.rfl-participant-profile .profile-amount .amount{display:block;text-align:center;height:100%}
.rfl-participant-profile .profile-amount input:checked+.amount{border-color:var(--purple);background:var(--lavender);color:var(--purple)}
.rfl-participant-profile .profile-amount:focus-within{outline:3px solid var(--purple);outline-offset:3px;border-radius:7px}
.rfl-participant-profile .btn{white-space:normal;overflow-wrap:anywhere}
.rfl-participant-profile .profile-team-support{margin-top:12px}
.rfl-participant-profile .profile-closing{margin-top:20px}
.rfl-participant-profile .supporter{overflow-wrap:anywhere}
.rfl-participant-profile .supporter header{flex-wrap:wrap;gap:10px}
.rfl-participant-profile .profile-pagination .actions{margin-top:12px}
.rfl-participant-profile .profile-pagination p{margin-top:20px}
.rfl-participant-profile [data-profile-status]:empty{display:none}
.rfl-participant-profile .profile-fundraising form{margin:0}
@media(max-width:620px){.rfl-participant-profile .profile-teams{margin-left:0}.rfl-participant-profile .profile-heading h1{font-size:42px}.rfl-participant-profile .profile-heading .tag{white-space:normal}.rfl-participant-profile .profile-fundraising .big-number{font-size:44px}.rfl-participant-profile .panel{padding:24px}}

.rfl-participant-profile .profile-fundraising{margin-top:30px}
/* Owner-only editing surfaces. */
.rfl-participant-profile .profile-avatar{position:relative;flex-shrink:0}
.rfl-participant-profile .profile-avatar .avatar{overflow:hidden}
.rfl-participant-profile .profile-photo-image{width:100%;height:100%;object-fit:cover;display:block}
.rfl-participant-profile .profile-photo-edit{position:absolute;inset:0;border:0;border-radius:50%;background:transparent;padding:0;cursor:pointer}
.rfl-participant-profile .profile-photo-edit-label{position:absolute;inset:auto 6px 6px;background:#3a1568eb;color:white;border-radius:0 0 60px 60px;padding:6px 4px;font-size:11px;line-height:1.3;opacity:1}
.rfl-participant-profile .profile-photo-edit:focus-visible{outline:3px solid var(--rfl-purple);outline-offset:4px}
.rfl-participant-profile .profile-edit-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}
.rfl-participant-profile .profile-edit-link{border:0;background:transparent;padding:0;color:var(--purple);font-size:13px;font-weight:700;text-decoration:underline;cursor:pointer}
.rfl-participant-profile .profile-editor-dialog{max-width:700px;width:calc(100% - 40px);max-height:90vh;overflow-y:auto;border:0;border-radius:18px;padding:30px;color:var(--ink)}
.rfl-participant-profile .profile-editor-dialog::backdrop{background:#180e2bcc}
.rfl-participant-profile .profile-editor-dialog h2{font-size:36px;margin:0 30px 24px 0}
.rfl-participant-profile .profile-editor-close{float:right;border:0;border-radius:50%;width:30px;height:30px;background:var(--lavender);color:var(--purple);font-size:22px;line-height:1}
.rfl-participant-profile .profile-editor-dialog form>.small{margin:18px 0}
.rfl-participant-profile .profile-editor-field{display:block;font-size:15px;font-weight:700;margin-bottom:8px}
.rfl-participant-profile .profile-photo-preview{display:block;width:160px;height:160px;border-radius:50%;object-fit:cover;margin:0 auto 22px}
.rfl-participant-profile .profile-edit-notice{margin:24px auto;max-width:700px;padding:16px;background:var(--lavender);color:var(--purple)}
.rfl-participant-profile .wp-editor-container textarea{font-family:inherit}

@media(max-width:620px){.rfl-participant-profile .profile-editor-dialog{padding:24px}.rfl-participant-profile .profile-editor-dialog h2{font-size:30px}}
.rfl-participant-profile #why-i-relay,.rfl-participant-profile #profile-photo,.rfl-participant-profile #profile-fundraising-title{scroll-margin-top:140px}
/* Main teams reuse the public fundraising shell and owner editor. */
.rfl-main-team-profile .team-subteam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.rfl-main-team-profile .team-subteam-card{border:1px solid var(--line);border-radius:10px;padding:18px;min-width:0}
.rfl-main-team-profile .team-subteam-card h4{font-size:16px;overflow-wrap:anywhere;margin-bottom:8px}
.rfl-main-team-profile .team-subteam-card strong{color:var(--purple)}
.rfl-main-team-profile .team-total-note{margin-top:16px}
.rfl-main-team-profile .team-leader-name{padding:0 4px}
@media(max-width:1100px){.rfl-main-team-profile .team-subteam-grid{grid-template-columns:1fr}}

/* Main teams keep story, subteams and supporters flowing beside the giving controls. */
.rfl-main-team-profile .profile-fundraising{margin-top:0}

.rfl-participant-profile .profile-story-label{margin-top:20px}

/* Align profile actions and center the fundraising closing date. */
.rfl-participant-profile #why-i-relay>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,max-content));align-items:stretch;justify-content:start;gap:12px}
.rfl-participant-profile #why-i-relay>.actions>[data-profile-copy],.rfl-participant-profile #why-i-relay>.actions>[data-profile-support]{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:52px;line-height:1.4;text-align:center;margin:0;padding:14px 16px}
.rfl-participant-profile .profile-closing{text-align:center}
@media(max-width:620px){.rfl-participant-profile #why-i-relay>.actions>[data-profile-copy],.rfl-participant-profile #why-i-relay>.actions>[data-profile-support]{font-size:14px;padding:12px 8px}}

/* Keep participant names legible where the heading crosses the cover. */
.rfl-participant-profile:not(.rfl-main-team-profile) .profile-heading h1{-webkit-text-stroke:9px #fff;paint-order:stroke fill}

@media(max-width:620px){.rfl-participant-profile #why-i-relay>.actions{grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:10px}}

/* This participant profile does not use a cover banner. */
.rfl-participant-profile.rfl-profile-styled .profile-cover{display:none}
.rfl-participant-profile.rfl-profile-styled .profile-heading{margin-top:32px}

/* Story and donation controls share a two-thirds / one-third profile layout. */
.rfl-participant-profile.rfl-profile-styled .profile-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:30px;align-items:start}
.rfl-participant-profile.rfl-profile-styled .profile-heading{grid-column:1/-1;margin-bottom:0}
.rfl-participant-profile.rfl-profile-styled .profile-layout>.two-col{display:block;grid-column:1;grid-row:2;min-width:0}
.rfl-participant-profile.rfl-profile-styled .profile-fundraising{grid-column:2;grid-row:2;margin-top:0}
.rfl-participant-profile.rfl-profile-styled .rfl-donation-list{margin-top:22px}
@media(max-width:900px){
.rfl-participant-profile.rfl-profile-styled .profile-layout{grid-template-columns:minmax(0,1fr);gap:22px}
.rfl-participant-profile.rfl-profile-styled .profile-fundraising{grid-column:1;grid-row:2}
.rfl-participant-profile.rfl-profile-styled .profile-layout>.two-col{grid-column:1;grid-row:3}
}

/* Match the soft gradient of the Partners introduction panel. */
.rfl-participant-profile.rfl-profile-styled{background:linear-gradient(#efe7f7 0%,#f7ecf3 50%,#fdf3e8 100%);display:flow-root}

/* A cleaner profile treatment without panel or identity outlines. */
.rfl-participant-profile.rfl-profile-styled .panel{border:0}
.rfl-participant-profile.rfl-profile-styled .profile-heading h1{-webkit-text-stroke:0}
.rfl-participant-profile.rfl-profile-styled .profile-avatar .avatar.large{border:0}

.rfl-participant-profile.rfl-profile-styled #why-i-relay>.actions{grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:10px}
.rfl-participant-profile .profile-copy-icon{flex-shrink:0}

/* Distinct identity pills against the soft profile gradient. */
.rfl-participant-profile.rfl-profile-styled .profile-heading .tag{background:#5f249f;color:#fff;border:1px solid #5f249f}
.rfl-participant-profile.rfl-profile-styled .profile-heading .tag.gray{background:#fff;color:#3a1568;border-color:#bba1d5}

.rfl-participant-profile #why-i-relay>.actions>[data-profile-copy],.rfl-participant-profile #why-i-relay>.actions>[data-profile-support]{gap:10px}
.rfl-participant-profile .profile-copy-icon,.rfl-participant-profile .profile-support-icon{display:block;width:18px;height:18px;flex:0 0 18px}

/* Match the profile action outlines and put each icon after its label. */
.rfl-participant-profile #why-i-relay>.actions>[data-profile-copy],.rfl-participant-profile #why-i-relay>.actions>[data-profile-support]{border:1px solid var(--purple);border-radius:7px;background:#fff;color:var(--purple);font-size:15px;font-weight:700;text-decoration:none}
.rfl-participant-profile #why-i-relay .profile-copy-icon,.rfl-participant-profile #why-i-relay .profile-support-icon{order:1}
.rfl-participant-profile #why-i-relay>.actions>[data-profile-copy]:hover,.rfl-participant-profile #why-i-relay>.actions>[data-profile-support]:hover{background:var(--lavender);color:var(--purple)}

.rfl-participant-profile #why-i-relay>.actions>[data-profile-copy]{border-color:#009c9d;color:#009c9d}
.rfl-participant-profile #why-i-relay>.actions>[data-profile-copy]:hover{background:#eef7f7;color:#009c9d}

/* Emphasise the raised amount and add colour to the profile section labels. */
.rfl-participant-profile.rfl-profile-styled .profile-fundraising .big-number{font-size:64px;color:#5f249f}
.rfl-participant-profile.rfl-profile-styled #profile-fundraising-title{color:#5f249f}
.rfl-participant-profile.rfl-profile-styled #why-i-relay .eyebrow{color:#009c9d}
@media(max-width:620px){.rfl-participant-profile.rfl-profile-styled .profile-fundraising .big-number{font-size:54px}}

/* Soft animated highlight over the actual donation progress. */
.rfl-participant-profile.rfl-profile-styled .profile-fundraising .progress{height:12px;background:#eee7f6;border-radius:999px;box-shadow:inset 0 1px 3px #3a15680d}
.rfl-participant-profile.rfl-profile-styled .profile-fundraising .progress>span{position:relative;overflow:hidden;border-radius:999px;background:linear-gradient(90deg,#5f249f,#9664c7);box-shadow:0 1px 5px #5f249f26}
.rfl-participant-profile.rfl-profile-styled .profile-fundraising .progress>span::after{content:'';position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(100deg,transparent 20%,#ffffff35 50%,transparent 80%);animation:rfl-profile-progress-sheen 4s ease-in-out infinite}
@keyframes rfl-profile-progress-sheen{0%,20%{transform:translateX(-100%)}75%,100%{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.rfl-participant-profile.rfl-profile-styled .profile-fundraising .progress>span::after{animation:none;display:none}}

/* Compact, tactile donation choices with a clear selected state. */
.rfl-participant-profile.rfl-profile-styled .profile-fundraising .amounts{gap:12px}
.rfl-participant-profile.rfl-profile-styled .profile-amount .amount{border:1px solid #d8c6eb;border-radius:12px;background:linear-gradient(180deg,#fff,#f8f4fc);padding:16px 10px;font-size:17px;font-weight:700;color:#5f249f;box-shadow:0 3px 8px #5f249f0a;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.rfl-participant-profile.rfl-profile-styled .profile-amount input:checked+.amount{background:#5f249f;border-color:#5f249f;color:#fff;box-shadow:0 4px 12px #5f249f30}
@media(min-width:901px){.rfl-participant-profile.rfl-profile-styled .profile-fundraising .amounts{grid-template-columns:repeat(3,minmax(0,1fr));justify-content:stretch}}
@media(hover:hover){.rfl-participant-profile.rfl-profile-styled .profile-amount:hover .amount{border-color:#5f249f;box-shadow:0 5px 14px #5f249f20;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.rfl-participant-profile.rfl-profile-styled .profile-amount .amount{transition:none;transform:none}}

/* Inline desktop profile actions; retain the mobile vertical stack. */
@media(min-width:901px){
.rfl-participant-profile.rfl-profile-styled #why-i-relay>.actions{display:block}
.rfl-participant-profile.rfl-profile-styled #why-i-relay>.actions>[data-profile-copy],.rfl-participant-profile.rfl-profile-styled #why-i-relay>.actions>[data-profile-support]{display:inline-block;vertical-align:middle;min-height:52px;margin:0 10px 10px 0}
.rfl-participant-profile.rfl-profile-styled #why-i-relay .profile-copy-icon,.rfl-participant-profile.rfl-profile-styled #why-i-relay .profile-support-icon{float:right;display:inline-block;margin-left:10px;margin-top:1px}
}

/* Keep giving controls available beside long stories on larger screens. */
@media(min-width:901px){
.rfl-participant-profile.rfl-profile-styled .profile-fundraising{position:sticky;top:140px;align-self:start;max-height:calc(100dvh - 164px);overflow-y:auto;scrollbar-width:thin;scroll-margin-top:140px}
}

.rfl-participant-profile .profile-demo-avatar{display:block;width:100%;height:100%}



/* Solid identity banner; keep the raised amount plain and left aligned. */
.rfl-participant-profile.rfl-profile-styled .profile-heading{width:100%;box-sizing:border-box;padding:24px 32px;background:var(--purple);border-radius:var(--radius);align-items:center}
.rfl-participant-profile.rfl-profile-styled .profile-heading h1{color:#fff}
.rfl-participant-profile.rfl-profile-styled .profile-avatar .avatar.large{background:#fff;color:#5f249f}
.rfl-participant-profile.rfl-profile-styled .profile-heading .tag:not(.gray){border-color:#c9a7e9;background:#7743ae}
.rfl-participant-profile.rfl-profile-styled .profile-fundraising .big-number{background:none;clip-path:none;padding:0;margin:0;text-align:left;color:#5f249f}
@media(max-width:620px){.rfl-participant-profile.rfl-profile-styled .profile-heading{padding:24px;align-items:flex-start}}

/* Give participant portraits more prominence at every screen size. */
.rfl-participant-profile.rfl-profile-styled .profile-avatar .avatar.large{width:180px;height:180px;font-size:64px}
@media(max-width:620px){.rfl-participant-profile.rfl-profile-styled .profile-avatar .avatar.large{width:144px;height:144px;font-size:54px}}

/* Align the profile identity as one group within the banner. */
.rfl-participant-profile.rfl-main-team-profile .profile-heading>div:not(.profile-avatar):not(.profile-teams){display:flex;flex-wrap:wrap;align-items:center;gap:10px;flex:1;min-width:0}
.rfl-participant-profile.rfl-profile-styled .profile-heading h1{width:100%;margin:0;line-height:1}
.rfl-participant-profile.rfl-profile-styled .profile-heading .tag{margin:0}

.rfl-participant-profile.rfl-profile-styled .profile-heading>.profile-teams{color:#fff}

/* Participant feature: Partners' warm gradient and the shared teal/purple palette. */
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile){background:#faf8fc}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading{padding:40px;gap:36px;background:linear-gradient(120deg,#efe7f7 0%,#f7ecf3 55%,#fdf3e8 100%);border:1px solid #e3d5f0;border-radius:26px;box-shadow:0 18px 44px #5f249f0d;flex-wrap:wrap}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-avatar .avatar.large{width:200px;height:200px;border:7px solid #fff;box-shadow:0 12px 32px #5f249f26;background:#5f249f;color:#fff;font-size:72px}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading h1{color:var(--deep);font-size:clamp(42px,4.8vw,68px);line-height:1.02;margin-bottom:10px}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading .profile-identity{flex-basis:280px}
.rfl-participant-profile.rfl-profile-styled .profile-heading .profile-identity-kicker{width:100%;margin:0 0 4px;color:#007879;font-size:12px;letter-spacing:.16em;line-height:1.5}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading .tag:not(.gray){background:#5f249f;border-color:#5f249f}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading .tag.gray{background:#ffffffb3;border-color:#d8c6eb;color:var(--deep)}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading>.profile-teams{flex-basis:100%;margin:0;padding-top:18px;border-top:1px solid #5f249f26;color:var(--deep);font-size:15px}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-fundraising{box-shadow:0 12px 36px #5f249f0a;border-top:4px solid var(--teal)}
@media(max-width:620px){
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading{padding:28px 24px;gap:24px}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-avatar .avatar.large{width:160px;height:160px;font-size:60px}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading .profile-identity{flex-basis:auto;width:100%}
}

/* Profile hierarchy: identity, labeled membership, personal story, then giving. */
.rfl-participant-profile.rfl-profile-styled .profile-heading .profile-identity{display:block}
.rfl-participant-profile.rfl-profile-styled .profile-heading .profile-identity-kicker{display:block;margin-bottom:12px}
.rfl-participant-profile.rfl-profile-styled .profile-heading .profile-details{display:grid;gap:10px;margin:22px 0 0;padding:18px 0 0;border-top:1px solid #5f249f26;font-size:14px;line-height:1.5}
.rfl-participant-profile .profile-details>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px}
.rfl-participant-profile .profile-details dt{color:#62566e;font-weight:400}
.rfl-participant-profile .profile-details dd{margin:0;color:var(--deep);overflow-wrap:anywhere;font-weight:700}
.rfl-participant-profile a.profile-team-link{color:var(--purple);text-decoration:underline;text-underline-offset:3px}
.rfl-participant-profile a.profile-team-link:hover{color:var(--deep)}
.rfl-participant-profile .profile-edit-heading{align-items:center;margin-bottom:20px}
.rfl-participant-profile .panel h2.profile-section-title{font-size:32px;margin:0;color:var(--deep)}
.rfl-participant-profile .panel p.profile-story-title{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-size:36px;font-weight:700;line-height:1.15;color:var(--purple);margin:0 0 20px;padding-left:18px;border-left:3px solid var(--teal)}
@media(max-width:900px){
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-layout>.two-col{display:contents}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-layout>.two-col>.stack{grid-column:1;grid-row:2}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-fundraising{grid-row:3}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .rfl-donation-list{grid-column:1;grid-row:4;margin-top:0}
}
@media(max-width:620px){
.rfl-participant-profile .profile-details>div{grid-template-columns:minmax(0,1fr);gap:2px}
.rfl-participant-profile .panel p.profile-story-title{font-size:30px}
}

/* Compact identity: portrait beside one vertically ordered information group. */
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;padding:28px 32px;align-items:center;margin-top:24px}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading .profile-identity{display:block;width:auto;min-width:0}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading .profile-identity-kicker{margin:0 0 8px;font-size:11px}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading h1{font-size:clamp(36px,4vw,56px);margin:0 0 16px}
.rfl-participant-profile .profile-meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.rfl-participant-profile .profile-id{font-size:13px;color:#62566e;line-height:1.5}
.rfl-participant-profile .profile-id strong{color:var(--deep);margin-left:5px;white-space:nowrap}
.rfl-participant-profile.rfl-profile-styled .profile-heading .profile-details{margin:14px 0 0;padding:0;border:0;gap:6px}
.rfl-participant-profile .profile-details>div{grid-template-columns:max-content minmax(0,1fr);gap:10px}
@media(max-width:620px){
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading{grid-template-columns:minmax(0,1fr);gap:18px;padding:24px; margin-top:20px}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-avatar .avatar.large{width:160px;height:160px}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading h1{font-size:38px;margin-bottom:12px}
.rfl-participant-profile .profile-meta-row{gap:8px 12px}
.rfl-participant-profile .profile-details>div{grid-template-columns:minmax(0,1fr);gap:2px}
}

/* Center mobile identity; keep the reference ID beneath the participant name. */
@media(max-width:620px){
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading{text-align:center;justify-items:center}
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading .profile-identity{width:100%}
.rfl-participant-profile .profile-meta-row{flex-direction:column;gap:12px;align-items:center}
.rfl-participant-profile .profile-meta-row .profile-id{order:-1}
.rfl-participant-profile .profile-details>div{justify-items:center}
.rfl-participant-profile .profile-details dd{max-width:100%}
}

/* Keep the membership label attached to its linked team name. */
@media(max-width:620px){
.rfl-participant-profile .profile-details>div{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:4px 6px}
.rfl-participant-profile .profile-details dt{flex-shrink:0}
}

/* Name pennant echoes the angled Relay for Life wordmark. */
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading h1{display:table;width:fit-content;max-width:100%;padding:10px 28px 13px;background:var(--purple);color:#fff;clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%);line-height:1.08}
@media(max-width:620px){
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading h1{margin:0 auto 14px;padding:10px 20px 12px;font-size:clamp(30px,8.5vw,38px);clip-path:polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%)}
}

/* Challenge category is supporting information beneath the name. */
.rfl-participant-profile.rfl-profile-styled:not(.rfl-main-team-profile) .profile-heading .profile-meta-row .tag{background:#f1ebf6;color:#62516f;border:1px solid #ded3e8;padding:4px 10px;font-size:12px;font-weight:400;letter-spacing:0;line-height:1.5}

/* Reuse dashboard social icons and button treatment in the public share panel. */
.rfl-participant-profile .overview-social-button{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:13px 16px;min-height:48px;border:1px solid #e1d8eb;border-radius:10px;background:#fff;color:var(--ink);font-size:13px;font-weight:600;line-height:1.4;box-shadow:none;transition:background-color .15s,border-color .15s}
.rfl-participant-profile .overview-social-button svg{flex:0 0 20px}.rfl-participant-profile .overview-social-whatsapp svg{color:#128c4a}.rfl-participant-profile .overview-social-facebook svg{color:#1877f2}.rfl-participant-profile .overview-social-instagram svg{color:#bd3475}.rfl-participant-profile .overview-social-linkedin svg{color:#0a66c2}
.rfl-participant-profile .overview-social-button:hover{background:#f8f5fc;border-color:#a981cd;color:var(--deep)}
.rfl-participant-profile .profile-share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.rfl-participant-profile .profile-share-options[hidden]{display:none}

/* Frame the participant's tagline with decorative quotation marks. */
.rfl-participant-profile .panel p.profile-story-title{position:relative;border-left:0;padding:20px 26px 22px;margin-bottom:20px}
.rfl-participant-profile .panel p.profile-story-title::before,.rfl-participant-profile .panel p.profile-story-title::after{position:absolute;color:var(--teal);font-family:Georgia,serif;font-size:44px;font-weight:700;line-height:1;pointer-events:none}
.rfl-participant-profile .panel p.profile-story-title::before{content:'“';top:0;left:0}
.rfl-participant-profile .panel p.profile-story-title::after{content:'”';right:0;bottom:-4px}

/* Keep the closing quotation mark beside the tagline rather than the card edge. */
.rfl-participant-profile .panel p.profile-story-title{width:fit-content;max-width:100%;overflow-wrap:anywhere}

/* Give the donation card a clean edge and room beneath its final action. */
.rfl-participant-profile.rfl-profile-styled .profile-fundraising{border-top:0;padding-bottom:36px;max-height:none;overflow:visible}

/* Team roster follows the leaderboard's participant rows and soft table header. */
.rfl-main-team-profile .team-public-table-scroll{overflow-x:auto;margin-top:20px;border:1px solid var(--line);border-radius:12px}
.rfl-main-team-profile .team-public-member-table{white-space:normal;min-width:590px;margin:0}
.rfl-main-team-profile .team-public-member-table th{background:#f9f7fc;font-size:11px;letter-spacing:.07em}
.rfl-main-team-profile .team-public-member-table td,.rfl-main-team-profile .team-public-member-table th{padding:16px;text-align:left;vertical-align:middle}
.rfl-main-team-profile .team-public-member-table tbody tr:last-child td{border-bottom:0}
.rfl-main-team-profile .team-member-person{display:flex;gap:12px;align-items:center;min-width:180px}
.rfl-main-team-profile .team-member-person>div{min-width:0;overflow-wrap:anywhere}
.rfl-main-team-profile .team-member-person .avatar{overflow:hidden}
.rfl-main-team-profile .team-member-person small{display:block;font-size:12px;margin-top:3px}
.rfl-main-team-profile .team-public-member-table .text-link{font-size:14px}
.rfl-main-team-profile .team-public-member-table a:hover{text-decoration:underline}
.rfl-main-team-profile .team-public-table-scroll:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
.rfl-main-team-profile .profile-layout>.two-col>.stack{grid-template-columns:minmax(0,1fr);min-width:0}
.rfl-main-team-profile .team-public-members,.rfl-main-team-profile .team-public-table-scroll{min-width:0;max-width:100%}
.rfl-main-team-profile .team-public-table-scroll{position:relative;contain:inline-size layout paint}

.rfl-main-team-profile .team-public-subteam-table{min-width:420px}

/* Like the leaderboard, mobile tables reflow into compact rows instead of scrolling. */
@media(max-width:620px){
.rfl-main-team-profile .team-public-table-scroll{overflow:visible;contain:none}
.rfl-main-team-profile .team-public-member-table{display:block;width:100%;min-width:0;white-space:normal}
.rfl-main-team-profile .team-public-member-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.rfl-main-team-profile .team-public-member-table tbody{display:block;width:100%}
.rfl-main-team-profile .team-public-member-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px;border-bottom:1px solid var(--line);align-items:start}
.rfl-main-team-profile .team-public-member-table td{display:block;min-width:0;width:auto;padding:0;border:0;font-size:13px;overflow-wrap:anywhere}
.rfl-main-team-profile .team-public-member-table td:nth-child(1){grid-column:1;grid-row:1}
.rfl-main-team-profile .team-public-member-table td:nth-child(2){grid-column:1/-1;grid-row:2}
.rfl-main-team-profile .team-public-member-table td:nth-child(3){grid-column:1/-1;grid-row:3}
.rfl-main-team-profile .team-public-member-table td:nth-child(4){grid-column:2;grid-row:1}
.rfl-main-team-profile .team-public-member-table td[data-label]::before{content:attr(data-label) ': ';color:var(--muted);font-size:12px}
.rfl-main-team-profile .team-member-person{display:block;min-width:0}
.rfl-main-team-profile .team-member-person .avatar{display:none}
.rfl-main-team-profile .team-member-person .text-link{font-size:15px}
.rfl-main-team-profile .team-public-member-table td:nth-child(4) .text-link{font-size:12px}
.rfl-main-team-profile .team-public-subteam-table td:nth-child(1){grid-column:1/-1}
.rfl-main-team-profile .team-public-subteam-table td:nth-child(2){grid-column:1;grid-row:2}
.rfl-main-team-profile .team-public-subteam-table td:nth-child(3){grid-column:2;grid-row:2;text-align:right}
.rfl-main-team-profile .team-public-subteam-table td[data-label]::before{display:block;content:attr(data-label);margin-bottom:3px}
}
