.rpb-pro-profile .rpb-pro-hero__grid {
    grid-template-columns: minmax(0, 1fr) clamp(17rem, 33vw, 26.25rem);
    grid-template-areas: "status portrait" "intro portrait" "credentials portrait" "actions reputation";
    grid-template-rows: max-content max-content auto auto;
    align-items: start;
    gap: clamp(16px, 1.6vw, 23px) clamp(28px, 4.5vw, 64px);
}
.rpb-pro-hero__status {
    display: flex;
    grid-area: status;
    flex-wrap: wrap;
    align-items: center;
    gap: .28rem .55rem;
    color: #23554c;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.4;
}
.rpb-pro-hero__status > span:first-child { display: inline-flex; align-items: center; gap: .35rem; }
.rpb-pro-hero__check {
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    flex: none;
    border-radius: 50%;
    background: #d6ece1;
    color: #185647;
}
.rpb-pro-hero__mode { color: #47645f; font-weight: 700; }
.rpb-pro-hero__mode::before { content: "·"; margin-inline-end: .55rem; color: #5f736d; }
.rpb-pro-hero__copy { grid-area: intro; }
.rpb-pro-hero__copy h1 {
    margin-block: 0 .29em;
    font-size: clamp(2.65rem, 4.8vw, 4.65rem);
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.rpb-pro-hero__lead {
    max-width: 64ch;
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.62;
    text-align: justify;
    text-align-last: start;
    text-wrap: pretty;
    overflow-wrap: break-word;
}
.rpb-pro-hero__visual {
    grid-area: portrait;
    align-self: stretch;
    min-height: clamp(19.5rem, 33vw, 28.25rem);
    max-height: 34rem;
    padding: 0;
}
.rpb-pro-hero__photo {
    position: absolute;
    inset: 0 0 28px;
    border-radius: clamp(18px, 2.8vw, 32px) 6px clamp(18px, 2.8vw, 32px) clamp(18px, 2.8vw, 32px);
    box-shadow: 0 18px 38px #143b3822;
}
.rpb-pro-hero__photo > img,
.rpb-pro-hero__photo > span:not(.rpb-verification-seal):not(.rpbn-supervisor-seal) { height: 100%; }
.rpb-pro-hero__photo > img { object-position: center 35%; }
.rpb-pro-hero__identity {
    inset-inline: clamp(12px, 1.8vw, 24px);
    min-width: 0;
    padding: .75rem 1rem;
    border: 1px solid #e0e8df;
    border-radius: 14px;
    box-shadow: 0 12px 26px #143b3824;
}
.rpb-pro-hero__identity strong { line-height: 1.25; overflow-wrap: anywhere; }
.rpb-pro-hero__actions {
    grid-area: actions;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: start;
    gap: 8px;
    width: min(100%, 28rem);
    margin-top: 0;
}
.rpb-pro-profile .rpb-pro-hero__actions > :is(.rpb-button, .rpb-network-follow),
.rpb-pro-profile .rpb-pro-hero__actions > form .rpb-button,
.rpb-pro-profile .rpb-pro-hero__actions > form .rpb-network-follow {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 100%;
    padding: .62em .72em;
    border-radius: 11px;
    font-size: .91rem;
    line-height: 1.3;
}
.rpb-pro-profile .rpb-pro-hero__actions > .rpb-button:not(.rpb-button--ghost) {
    border-color: #086b63;
    background: #086f65;
    box-shadow: 0 7px 15px #104f4524;
}
.rpb-pro-profile .rpb-pro-hero__actions > .rpb-button:not(.rpb-button--ghost):hover { background: #07564e; }
.rpb-pro-profile .rpb-pro-hero__actions > .rpb-button--ghost {
    border-color: #aecac0;
    background: #fffdfa;
}
.rpb-pro-profile .rpb-pro-hero__actions .rpb-network-follow,
.rpb-pro-profile .rpb-pro-hero__actions > .rpb-student-follow .rpb-button {
    border-color: #aecac0;
    background: transparent;
}
.rpb-pro-profile .rpb-pro-hero__actions :is(.rpb-button,.rpb-network-follow):focus-visible {
    outline: 2px solid #235e52;
    outline-offset: 3px;
}
.rpb-pro-hero__actions > .rpb-peer-control:has(> .rpb-peer-action) > small { display: none; }

@media (min-width: 761px) {
    .rpb-pro-profile .rpb-pro-hero {
        padding-block: clamp(37px, 4.3vw, 62px) clamp(27px, 2.75vw, 42px);
    }
    .rpb-pro-profile .rpb-pro-hero__grid {
        grid-template-columns: minmax(0, 1fr) clamp(17rem, 34vw, 27.5rem);
        gap: clamp(12px, 1.15vw, 17px) clamp(24px, 3vw, 48px);
    }
    .rpb-pro-hero__copy h1 { font-size: clamp(2.65rem, 4.75vw, 4.2rem); }
    .rpb-pro-hero__visual { min-height: clamp(18.5rem, 30vw, 26.75rem); }
    .rpb-pro-hero__grid > :is(.rpb-pro-hero__actions, .rpb-pro-reputation) { align-self: stretch; }
    .rpb-pro-hero__actions:has(> .rpb-button + .rpb-button):has(> :is(.rpb-network-follow, .rpb-network-follow-form, .rpb-student-follow), > .rpb-peer-control > .rpb-peer-action) {
        grid-template-columns: minmax(0, .82fr) repeat(2, minmax(0, 1fr));
        width: min(100%, 35rem);
    }
    .rpb-pro-profile .rpb-pro-hero__actions > .rpb-peer-control:has(> .rpb-peer-action) {
        grid-column: auto;
        align-content: stretch;
        margin: 0;
    }
    .rpb-pro-profile .rpb-pro-hero__actions > .rpb-peer-control:has(> .rpb-peer-action) .rpb-peer-action .rpb-button {
        min-height: 48px;
        padding: .62em .72em;
        gap: .4em;
        border-radius: 11px;
        font-size: .91rem;
        line-height: 1.3;
    }
    .rpb-pro-profile .rpb-pro-hero__actions > .rpb-peer-control:has(> .rpb-peer-action) .rpb-peer-action .rpb-button::before {
        width: 20px;
        height: 20px;
        font-size: 15px;
    }
}

.rpb-pro-reputation {
    display: grid;
    grid-area: reputation;
    align-self: start;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}
.rpb-pro-reputation > :only-child { justify-self: end; max-width: 15rem; }

.rpb-pro-reputation .rpb-pro-badges__followers { display: grid; min-width: 0; align-self: stretch; margin: 0; }
.rpb-pro-reputation > .rpb-pro-google-reviews,
.rpb-pro-reputation .rpb-pro-badges__followers .rpb-profile-card__review-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    align-self: stretch;
    min-width: 0;
    min-height: 48px;
    gap: .4em;
    margin: 0;
    padding: .52em .9em;
    border: 1px solid #c4dcd3;
    border-radius: 999px;
    background: #eff7f3;
    color: #19504a;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    text-decoration: none;
}
.rpb-pro-reputation > .rpb-pro-google-reviews { background: #fff8e8; border-color: #dfc88a; color: #694b16; }
.rpb-pro-reputation > .rpb-pro-google-reviews:hover { background: #fff1cc; }
.rpb-pro-google-reviews b { color: #96640b; }

@media (max-width: 760px) {
    .rpb-pro-hero { padding-block: clamp(22px, 4vw, 34px) 38px; }
    .rpb-pro-profile .rpb-pro-hero__grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: min(calc(100% - 2rem), 30rem);
        gap: 14px;
    }
    .rpb-pro-hero__copy { order: 0; margin-top: .35rem; }
    .rpb-pro-hero__visual {
        min-height: 0;
        max-height: none;
        padding-bottom: 24px;
    }
    .rpb-pro-hero__photo { position: relative; inset: auto; aspect-ratio: 1 / 1.035; }
    .rpb-pro-hero__photo > img { position: absolute; inset: 0; }
    .rpb-pro-hero__actions, .rpb-pro-reputation { width: 100%; align-self: stretch; }
    .rpb-pro-hero__actions > .rpb-button:not(.rpb-button--ghost),
    .rpb-pro-hero__actions:not(:has(> :is(.rpb-network-follow, .rpb-network-follow-form, .rpb-student-follow))) > .rpb-button--ghost { grid-column: 1 / -1; }
    .rpb-pro-reputation > :only-child { justify-self: start; }
    .rpb-pro-reputation > .rpb-pro-google-reviews,
    .rpb-pro-reputation .rpb-pro-badges__followers .rpb-profile-card__review-chip { min-height: 44px; }
}

.rpb-pro-overview {
    --profile-inset: clamp(20px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid #cfdfd7;
    border-radius: 22px;
    background: #fffefa;
    color: #294947;
    box-shadow: 0 12px 36px #173e3410;
}
.rpb-pro-overview__header {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(21px, 2.5vw, 32px) var(--profile-inset);
    background: linear-gradient(115deg, #113c40, #1b5a50);
}
.rpb-pro-overview__header::before {
    content: "";
    flex: 0 0 4px;
    height: clamp(32px, 3.5vw, 46px);
    border-radius: 2px;
    background: #d6b977;
}
.rpb-pro-overview__header h2 {
    margin: 0;
    color: #fff;
    font: 600 clamp(1.85rem, 3.2vw, 3rem)/1.1 "Source Serif 4", Georgia, serif;
    letter-spacing: -.035em;
}
.rpb-pro-overview__body {
    display: grid;
    align-items: start;
    gap: clamp(24px, 3.7vw, 48px);
    padding: var(--profile-inset);
}
.rpb-pro-overview__body:has(> .rpb-pro-overview__details) {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}
.rpb-pro-overview .rpb-pro-main__content {
    min-width: 0;
    max-width: 72ch;
    color: #304d4b;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.rpb-pro-overview .rpb-pro-main__content > p { margin: 0 0 1em; }
.rpb-pro-overview .rpb-pro-main__content > p:first-child {
    font: 500 clamp(1.15rem, 1.55vw, 1.45rem)/1.48 "Source Serif 4", Georgia, serif;
    color: #153d3b;
}
.rpb-pro-overview .rpb-pro-main__content > nav {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #d6e2da;
    font-size: .91rem;
    line-height: 1.55;
}
.rpb-pro-main__content > nav p { margin: 0; }
.rpb-pro-main__content > nav p + p { margin-top: .35em; }
.rpb-pro-main__content > nav a { color: #155b53; text-underline-offset: .18em; }
.rpb-pro-overview .rpb-pro-main__content > :last-child { margin-bottom: 0; }
.rpb-pro-overview__details {
    min-width: 0;
    border: 1px solid #d5e2d8;
    border-radius: 16px;
    padding: clamp(17px, 2vw, 28px);
    background: linear-gradient(155deg, #eef5ef, #fafbf5);
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.rpb-pro-overview h3 {
    margin: 0 0 .75em;
    font: 600 clamp(1.24rem, 1.9vw, 1.65rem)/1.2 "Source Serif 4", Georgia, serif;
    color: #173e3a;
}
.rpb-pro-overview__details section + section { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid #d6e2da; }
.rpb-pro-overview__details dl { margin: 0; }
.rpb-pro-overview__details dt { margin-top: .9em; color: #235b50; font-size: .84rem; font-weight: 750; }
.rpb-pro-overview__details dd { margin: .15em 0 0; font-size: .95rem; }
.rpb-pro-overview__details ul { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.rpb-pro-overview__details li { position: relative; padding: 0 0 .65em 18px; }
.rpb-pro-overview__details li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: #a18243; }
.rpb-pro-overview__details li:not(:last-child)::after { content: ""; position: absolute; left: 2.5px; top: calc(.5em + 6px); bottom: -.5em; width: 1px; background: #d1c7a9; }
.rpb-pro-overview__details li:last-child { padding-bottom: 0; }
.rpb-pro-overview__topics { margin-top: 1em; border-top: 1px solid #cfdfd3; }
.rpb-pro-overview__topics summary { cursor: pointer; padding: .8em 0 .2em; color: #1e544b; font-weight: 700; }
.rpb-pro-overview__topics p { margin: .4em 0 0; font-size: .95rem; }
.rpb-pro-channels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem 1.4rem;
    padding: clamp(18px, 2.6vw, 30px) var(--profile-inset);
    border-top: 1px solid #d5e2da;
    background: #f1f6f2;
}
.rpb-pro-overview .rpb-pro-channels h3 { margin: 0; }
.rpb-pro-channels .rpb-pro-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rpb-pro-channels .rpb-pro-social__link {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid #c2d7cc;
    border-radius: 9px;
    background: #fff;
    color: #173f3a;
    font-size: .83rem;
    font-weight: 650;
    text-decoration: none;
}
.rpb-pro-channels .rpb-pro-social__link:hover { background: #e4f0e9; }
.rpb-pro-channels .rpb-pro-social__icon { width: 25px; height: 25px; flex: 0 0 25px; }
@media (max-width: 760px) {
    .rpb-pro-overview__body:has(> .rpb-pro-overview__details) { grid-template-columns: minmax(0, 1fr); }
}

.rpb-appointment-book {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(15rem, 1fr);
    border: 1px solid #c8dcd3;
    border-radius: 22px;
    overflow: hidden;
    color: #183f3b;
    background: #fffcf6;
    box-shadow: 0 12px 36px #173e3410;
}
.rpb-pro-appointments { scroll-margin-top: 6.25rem; }
.admin-bar .rpb-pro-appointments { scroll-margin-top: 9rem; }
.rpb-appointment-book__header {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1.1rem;
    padding: 18px clamp(18px, 2.8vw, 32px);
    background: linear-gradient(115deg, #113c40, #1b5a50);
}
.rpb-appointment-book__header .rpb-eyebrow { margin: 0; color: #edd7a1; }
.rpb-appointment-book__header h2 {
    margin: .35rem 0 0;
    color: white;
    font: 600 clamp(1.85rem, 3.2vw, 3rem)/1.12 "Source Serif 4", Georgia, serif;
    letter-spacing: -.035em;
}
.rpb-agenda-preview, .rpb-appointment-book__fee {
    min-width: 0;
    padding: clamp(20px, 3vw, 36px);
}
.rpb-appointment-book__fee {
    padding: clamp(16px, 2.2vw, 26px);
    background: #edf4ef;
    border-inline-start: 1px solid #cfdfd5;
}
.rpb-appointment-book__fee p { margin: 0 0 2px; font-size: .86rem; font-weight: 650; color: #365c50; }
.rpb-pro-appointments__price {
    display: block;
    color: #795816;
    font: 600 clamp(1.6rem, 2.8vw, 2.2rem)/1.12 "Source Serif 4", Georgia, serif;
    letter-spacing: -.04em;
}
.rpb-appointment-book__fee dl { margin: .8rem 0 0; padding-top: .15rem; border-top: 1px solid #c7d9cd; }
.rpb-appointment-book__fee dt { margin: .65rem 0 .1rem; color: #4a665b; font-size: .79rem; font-weight: 700; }
.rpb-appointment-book__fee dd { margin: 0; color: #22473d; font-size: .92rem; }
.rpb-agenda-preview h3 {
    display: flex;
    align-items: center;
    gap: .6em;
    margin: 0;
    color: #193f37;
    font: 600 clamp(1.22rem, 2vw, 1.65rem)/1.2 "Source Serif 4", Georgia, serif;
}
.rpb-agenda-preview h3::before {
    content: "";
    flex: 0 0 1.2em;
    height: 1.2em;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185c50' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M7 3v4m10-4v4M3 10h18m-14 4h2m3 0h2m-7 3h2'/%3E%3C/svg%3E");
}
.rpb-agenda-preview [data-agenda-status] { margin: .6rem 0; color: #466559; font-size: .88rem; }
.rpb-agenda-preview [data-agenda-status]:empty { display: none; }
.rpb-agenda-preview [hidden] { display: none; }
.rpb-agenda-preview__weeknav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 10px;
}
.rpb-agenda-preview__weeknav button {
    min-width: 44px;
    min-height: 40px;
    padding: .4em .8em;
    border: 1px solid #b9cfc2;
    border-radius: 9px;
    background: #fff;
    color: #254e43;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.rpb-agenda-preview__weeknav button[aria-pressed="true"] {
    border-color: #175749;
    background: #175749;
    color: white;
}
.rpb-agenda-preview__weeknav button:focus-visible { outline: 3px solid #af8136; outline-offset: 2px; }
.rpb-agenda-preview__days { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.rpb-agenda-preview__days > li { padding: 12px 15px; background: #fff; border: 1px solid #d1e0d7; border-radius: 12px; }
.rpb-agenda-preview__days strong { color: #164e45; }
.rpb-agenda-preview__weekday > strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.rpb-agenda-preview__date-row {
    display: grid;
    grid-template-columns: minmax(5rem, .65fr) minmax(0, 1.35fr);
    gap: .4rem .8rem;
    align-items: center;
    padding-block: 7px;
}
.rpb-agenda-preview__date-row + .rpb-agenda-preview__date-row { border-top: 1px solid #e4ece6; }
.rpb-agenda-preview__date { color: #415f54; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rpb-agenda-preview__empty { margin: .4em 0 0; color: #536c60; font-size: .87rem; }
.rpb-agenda-preview__times, .rpb-agenda-preview__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rpb-agenda-preview__times time {
    display: inline-block;
    padding: .25em .66em;
    border: 1px solid #cfe0d5;
    border-radius: 6px;
    background: #edf6ef;
    color: #164938;
    font-weight: 650;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}
.rpb-agenda-preview__link, .rpb-agenda-preview__actions button {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    min-height: 42px;
    padding: .55em 1em;
    margin-top: 8px;
    border: 1px solid #1c5e52;
    border-radius: 8px;
    background: #16564b;
    color: white;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}
.rpb-agenda-preview__link:hover { background: #0f433a; color: white; }
@media (max-width: 760px) {
    .rpb-appointment-book { grid-template-columns: minmax(0, 1fr); }
    .rpb-appointment-book__fee { border-inline-start: 0; border-top: 1px solid #cfdfd5; }
}
.rpb-portal .rpb-profile-agenda-settings {
    scroll-margin-top: 6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px clamp(18px, 3vw, 40px);
    margin-block: 16px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid #c2d7cc;
    border-radius: 16px;
    background: linear-gradient(115deg, #e9f5ee, #fffdf6);
    color: #193e38;
}
.rpb-profile-agenda-settings header,
.rpb-profile-agenda-settings > p { grid-column: 1; margin: 0; }
.rpb-profile-agenda-settings h2 { margin: .4rem 0 0; line-height: 1.15; }
.rpb-profile-agenda-settings .rpb-access-form {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: grid;
    gap: 10px;
    margin: 0;
}
.rpb-profile-agenda-settings label:has([type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.rpb-profile-agenda-settings label input[type="checkbox"] { flex: none; width: 18px; height: 18px; accent-color: #126754; }
.rpb-profile-agenda-settings input[type="url"] { width: 100%; box-sizing: border-box; }
.rpb-profile-agenda-settings button { justify-self: start; }
@media (max-width: 680px) {
    .rpb-pro-channels .rpb-pro-social { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rpb-portal .rpb-profile-agenda-settings { grid-template-columns: minmax(0, 1fr); }
    .rpb-profile-agenda-settings .rpb-access-form { grid-area: auto; }
}
@media (max-width: 380px) {
    .rpb-pro-channels .rpb-pro-social { grid-template-columns: minmax(0, 1fr); }
}

.rpb-appointment-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #fff;
    scroll-margin-top: 8rem;
}
.rpb-appointment-contact a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    box-sizing: border-box;
    padding: .42rem .85rem;
    border: 1px solid #e5c781;
    border-radius: .55rem;
    color: #f3dba6;
    font-size: .85rem;
    line-height: 1.25;
    font-weight: 700;
    text-decoration: none;
}
.rpb-appointment-contact .rpb-appointment-contact__whatsapp {
    background: #f0d498;
    color: #263b33;
}
.rpb-appointment-contact a:hover { background: #fae6ba; color: #243b33; }
.rpb-appointment-contact a:focus-visible { outline: 2px solid #fff4d9; outline-offset: 3px; }
@media (pointer: coarse), (max-width: 640px) {
    .rpb-appointment-contact a { min-height: 44px; }
}
@media (max-width: 640px) {
    .rpb-appointment-book__header { flex-direction: column; align-items: flex-start; }
}

/* Credentials in the profile introduction. Directory cards keep their own density. */
.rpb-pro-hero__grid > .rpb-pro-credential-panel {
    container-type: inline-size;
    grid-area: credentials;
    order: 0;
    padding-top: 14px;
    border-top: 1px solid #ccdcd6;
}
.rpb-pro-hero__grid .rpb-pro-credential-panel__heading { margin-bottom: 12px; }
.rpb-pro-hero__grid .rpb-pro-credential-panel__heading h2 { color: #275952; }
.rpb-pro-hero__grid .rpb-pro-credential-panel__heading a { text-decoration: underline; }
.rpb-pro-hero__grid .rpb-pro-credential-panel > .rpb-medal-panel {
    display: flex;
    align-items: flex-start;
    gap: 10px 8px;
    width: 100%;
}
.rpb-pro-hero__grid .rpb-pro-credentials > .rpb-medal-row { display: contents; }
.rpb-pro-hero__grid .rpb-pro-credentials .rpb-medal-row > :is(.rpb-credential, .rpbn-credential) {
    flex: 1 1 0;
    width: 100%;
    max-width: 8.5rem;
    gap: 5px;
}
.rpb-pro-hero__grid .rpb-medal-row > :is(.rpb-credential, .rpbn-credential) > :is(.rpb-credential__icon, .rpbn-credential__icon) {
    width: clamp(38px, 8cqi, 46px);
    height: auto;
    border: 1.5px solid var(--medal-rim);
    background: var(--medal-ink) var(--medal-glyph) center / 65% no-repeat;
    box-shadow: inset 0 0 0 2px var(--medal-ink), inset 0 0 0 3px #ffffff45, 0 2px 4px #1437321c;
    color: transparent;
    font-size: 0;
}
.rpb-pro-hero__grid .rpb-medal-row :is(.rpb-credential__copy, .rpbn-credential__copy) strong {
    color: #173d39;
    font-size: .79rem;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}
.rpb-pro-hero__grid .rpb-medal-row .rpb-credential__place { color: #53625d; }
:is(.rpb-pro-hero__grid .rpb-credential--verified, .rpb-pro-trust__check--verified) {
    --medal-ink: #086248;
    --medal-rim: #9bc6b7;
    --medal-glyph: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%221.65%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m12 2.8 7.6 3v5.4c0 4.5-2.8 7.9-7.6 10-4.8-2.1-7.6-5.5-7.6-10V5.8z%22/%3E%3Cpath d=%22m8.2 11.8 2.6 2.6 4.9-5%22/%3E%3C/svg%3E");
}
:is(.rpb-pro-hero__grid .rpb-credential--experience, .rpb-pro-trust__check--experience) {
    --medal-ink: #39637f;
    --medal-rim: #afc6d5;
    --medal-glyph: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%221.65%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m1.8 8.6 10.2-5 10.2 5-10.2 5zM5.8 10.8v5.3c3.7 2.8 8.7 2.8 12.4 0v-5.3M22.2 8.6v6%22/%3E%3C/svg%3E");
}
:is(.rpb-pro-hero__grid .rpbn-credential, .rpb-pro-trust__check--supervisor) {
    --medal-ink: #795420;
    --medal-rim: #dfc693;
    --medal-glyph: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%221.65%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9.2 4.4h12v10.4h-8M15.4 15v2.8m-2.8 2 2.8-2 2.8 2%22/%3E%3Ccircle cx=%225.3%22 cy=%229.5%22 r=%222.2%22/%3E%3Cpath d=%22M2 20v-4.6a2.8 2.8 0 0 1 2.8-2.8h3.1l2.8 1 4.3-4M7.6 16v4%22/%3E%3C/svg%3E");
}
:is(.rpb-pro-hero__grid .rpb-credential--specialist, .rpb-pro-trust__check--specialist) {
    --medal-ink: #415e85;
    --medal-rim: #abc1d7;
    --medal-glyph: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%221.65%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m12 2.8 1.8 1.3 2.3.1.9 2 1.8 1.4-.6 2.2.3 2.2-2 1.1-1.2 1.9-2.2-.4-2.2.7-1.5-1.7-2.1-.8V11l-.9-2.1L8 7.2l.6-2.1 2.2-.5zM8.8 15l-1.6 6.2 3.1-1.5 1.7 1.9 1.1-5.9M14.8 16.2l1.1 4.5 1.2-1.5 2.2.8-1.4-5.4%22/%3E%3Cpath d=%22m9.7 9.3 1.6 1.5 3.2-3.1%22/%3E%3C/svg%3E");
}
.rpb-pro-hero__grid .rpb-credential--active-psi {
    --medal-ink: #5d4f80;
    --medal-rim: #bd9852;
    --medal-glyph: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%221.65%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3c1.1 5.4 3.6 7.9 9 9-5.4 1.1-7.9 3.6-9 9-1.1-5.4-3.6-7.9-9-9 5.4-1.1 7.9-3.6 9-9z%22/%3E%3Cpath d=%22M19 2.5v3M17.5 4h3%22 stroke-width=%221.3%22/%3E%3C/svg%3E");
}
.rpb-pro-hero__grid .rpb-credential--most-viewed {
    --medal-ink: var(--rpb-most-viewed-face);
    --medal-rim: var(--rpb-most-viewed-rim);
    --medal-glyph: var(--rpb-most-viewed-star);
}
.rpb-pro-hero__grid .rpb-credential--quarter-review {
    --medal-ink: var(--rpb-quarter-review-face);
    --medal-rim: var(--rpb-quarter-review-rim);
    --medal-glyph: var(--rpb-quarter-review-glyph);
}
.rpb-pro-hero__grid .rpb-credential--online-psi {
    --medal-ink: #206756;
    --medal-rim: #bd9852;
    --medal-glyph: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%221.65%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5.5 4.5h13a2.5 2.5 0 0 1 2.5 2.5v8a2.5 2.5 0 0 1-2.5 2.5h-7.7L5 21v-3.5A2.5 2.5 0 0 1 3 15V7a2.5 2.5 0 0 1 2.5-2.5z%22/%3E%3Cpath d=%22M7.5 11h.1m4.4 0h.1m4.4 0h.1%22 stroke-width=%222.6%22/%3E%3C/svg%3E");
}
:is(.rpb-pro-hero__grid .rpb-credential--unverified, .rpb-pro-trust__check--unverified) {
    --medal-ink: #586369;
    --medal-rim: #c7cdce;
    --medal-glyph: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%221.65%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228.6%22/%3E%3Cpath d=%22M12 11v5m0-8.5h.01%22 stroke-width=%222%22/%3E%3C/svg%3E");
}
@container (max-width: 32rem) {
    .rpb-pro-hero__grid .rpb-pro-credential-panel > .rpb-medal-panel {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .rpb-pro-hero__grid .rpb-pro-credential-panel > .rpb-medal-panel:has(.rpb-medal-row > :nth-child(5)):not(:has(.rpb-medal-row > :nth-child(7))) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rpb-pro-profile .rpb-pro-trust {
    --verification-inset: clamp(20px, 3.4vw, 38px);
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #cfdfd7;
    border-radius: 22px;
    background: #fffefa;
    box-shadow: 0 12px 36px #173e3410;
}
.rpb-pro-trust__summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .8rem;
    padding: var(--verification-inset);
    border-inline-end: 1px solid #d7e4da;
    background: linear-gradient(145deg, #e8f3ec, #f6f4ea);
    color: #345653;
}
.rpb-pro-trust__summary h2 {
    margin: 0;
    color: #153e45;
    font: 600 clamp(1.8rem, 3.1vw, 2.65rem)/1.08 "Source Serif 4", Georgia, serif;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.rpb-pro-trust p { margin: 0; }
.rpb-pro-trust__summary a,
.rpb-pro-trust__check a,
.rpb-pro-trust__footer a {
    color: #185c51;
    font-size: .86rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .18em;
}
.rpb-pro-trust a:hover { color: #754f16; }
.rpb-pro-trust__checks {
    display: grid;
    align-content: center;
    margin: 0;
    padding: clamp(10px, 1.5vw, 18px) var(--verification-inset);
    list-style: none;
}
.rpb-pro-trust__check {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: .7rem;
    padding-block: .8rem;
}
.rpb-pro-trust__check + .rpb-pro-trust__check { border-top: 1px solid #dce8de; }
.rpb-pro-trust__icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--medal-rim);
    border-radius: 10px;
    background: var(--medal-ink) var(--medal-glyph) center / 63% no-repeat;
}
.rpb-pro-trust__check h3 {
    margin: 0 0 .18rem;
    color: #173d39;
    font: 800 .98rem/1.35 Manrope, system-ui, sans-serif;
    letter-spacing: 0;
}
.rpb-pro-trust__check p { color: #345653; font-size: .91rem; line-height: 1.55; }
.rpb-pro-trust__check a { display: inline-block; margin-top: .3rem; }
.rpb-pro-trust__footer {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    justify-content: space-between;
    padding: .8rem var(--verification-inset);
    border-top: 1px solid #d7e4da;
    background: #f0f5ef;
    color: #415d55;
    font-size: .82rem;
    line-height: 1.5;
}
.rpb-pro-trust__footer a { font-size: inherit; }
@media (max-width: 700px) {
    .rpb-pro-profile .rpb-pro-trust { grid-template-columns: minmax(0, 1fr); }
    .rpb-pro-trust__summary { border-inline-end: 0; border-bottom: 1px solid #d7e4da; }
}
