/* Optional single-agent refinements. Every selector requires our guarded root. */
.hprc-profile-root {
    --hprc-profile-accent: #0eaaa6;
    --hprc-profile-ink: #24363d;
    --hprc-profile-muted: #566a71;
    --hprc-profile-line: #dce7e9;
}
.hprc-profile-root .hprc-profile-summary {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin: 20px 0 30px;
    padding: 24px;
    border: 1px solid var(--hprc-profile-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(30, 55, 65, .045);
}
.hprc-profile-root .hprc-profile-summary::before,
.hprc-profile-root .hprc-profile-summary::after,
.hprc-profile-root .hprc-profile-form-grid::before,
.hprc-profile-root .hprc-profile-form-grid::after { display: none; }
.hprc-profile-root .hprc-profile-summary > .hprc-profile-identity,
.hprc-profile-root .hprc-profile-summary > .hprc-profile-portrait {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0 !important; /* Overrides native pb20 only on these two columns. */
}
.hprc-profile-root .hprc-profile-summary .hprc-profile-portrait-card {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.hprc-profile-root .hprc-profile-portrait-card .agent-avatar {
    width: 136px;
    height: 136px;
    max-width: 100%;
    border: 3px solid #f0f7f7;
}
.hprc-profile-root .hprc-profile-portrait-card .agent-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    box-shadow: none;
}
.hprc-profile-root .hprc-profile-portrait-card .ratingContainer { margin-top: 12px; }
.hprc-profile-root .hprc-profile-portrait-card .hprc-profile-social {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    padding: 12px 0 0;
}
.hprc-profile-root .hprc-profile-social:empty { display: none; }
.hprc-profile-root .hprc-profile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    background: #fff;
    border-color: var(--hprc-profile-line);
}
.hprc-profile-root .hprc-profile-title {
    margin: 0 0 12px;
    padding: 0 !important; /* Native pageTitle also carries pb20. */
    font-size: 28px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.3px;
    color: var(--hprc-profile-ink);
    overflow-wrap: anywhere;
}
.hprc-profile-root .hprc-profile-specialty-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.hprc-profile-root .hprc-profile-specialty {
    display: table;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 5px 10px !important; /* Native specialty paragraph carries pb20. */
    border-radius: 7px;
    background: #eff8f7;
    color: #23645f;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.hprc-profile-root .hprc-profile-contact-row {
    display: grid;
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.6;
}
.hprc-profile-root .hprc-profile-contact-row::before,
.hprc-profile-root .hprc-profile-contact-row::after { display: none; }
.hprc-profile-root .hprc-profile-contact-row > div {
    width: auto;
    float: none;
    min-width: 0;
    padding: 0;
    text-align: start !important; /* Override native align-right, not global alignment. */
    overflow-wrap: anywhere;
}
.hprc-profile-root .hprc-profile-contact-row strong { font-weight: 500; color: var(--hprc-profile-muted); }
.hprc-profile-root .hprc-profile-contact-row .contact-icon { color: var(--hprc-profile-accent); }
.hprc-profile-root .hprc-profile-contact-row a { color: #08756f; }
.hprc-profile-root .hprc-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
}
.hprc-profile-root a.hprc-profile-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    min-height: 46px;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid #b8d5d3;
    border-radius: 10px;
    background: #fff;
    color: #17635f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
/* Only our generated contact actions are styled; native form buttons and
   property links keep their existing styles. */
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action {
    border-color: var(--hprc-profile-accent);
    -webkit-text-fill-color: currentColor;
    transition: background-color .16s ease, border-color .16s ease;
}
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action:not(.hprc-profile-action-primary),
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action:not(.hprc-profile-action-primary):visited {
    background: #fff;
    color: #17635f;
}
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action:not(.hprc-profile-action-primary):hover,
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action:not(.hprc-profile-action-primary):focus-visible {
    background: #eff8f7;
    border-color: #08756f;
    color: #174943;
}
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action:not(.hprc-profile-action-primary):active {
    background: #e3f3f2;
    border-color: #08756f;
    color: #174943;
}
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action.hprc-profile-action-primary {
    background: var(--hprc-profile-accent);
    border-color: var(--hprc-profile-accent);
    /* Explicitly requested white label, including hover/focus/visited/active.
       Important is restricted to this companion-owned action, not all links. */
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action.hprc-profile-action-primary:hover,
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action.hprc-profile-action-primary:focus-visible {
    background: #0b9995;
    border-color: #0b9995;
}
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action.hprc-profile-action-primary:active {
    background: #098b87;
    border-color: #098b87;
}
.hprc-profile-root a.hprc-profile-action:focus-visible,
.hprc-profile-root .hprc-profile-social a:focus-visible,
.hprc-profile-root .hprc-profile-form a:focus-visible {
    outline: 3px solid #0b7773;
    outline-offset: 3px;
}
/* The native Bootstrap sheet suppresses anchor outlines with !important.
   Restore a visible keyboard ring only for these two generated actions. */
.hprc-profile-root .hprc-profile-actions > a.hprc-profile-action:focus-visible {
    outline: 3px solid #0b7773 !important;
    outline-offset: 3px;
}
.hprc-profile-root .hprc-profile-section-title,
#content .hprc-profile-root .hprc-profile-section-title {
    margin: 26px 0 12px;
    padding: 0;
    color: var(--hprc-profile-ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}
.hprc-profile-root .hprc-profile-about { margin-bottom: 26px; padding-bottom: 0; }
.hprc-profile-root .hprc-profile-about p {
    max-width: 72ch;
    font-size: 15px;
    line-height: 1.75;
}
.hprc-profile-root .contactForm.hprc-profile-form {
    padding: 22px 22px 112px;
    border: 1px solid var(--hprc-profile-line);
    border-radius: 16px;
    box-shadow: none;
}
.hprc-profile-root .hprc-profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    margin: 0;
}
.hprc-profile-root .hprc-profile-form-grid > div {
    grid-column: 1 / -1;
    width: auto;
    float: none;
    min-width: 0;
    padding: 0;
}
.hprc-profile-root .hprc-profile-form-grid > .hprc-profile-half-field { grid-column: auto; }
.hprc-profile-root .hprc-profile-form-grid .form-group { margin: 0; }
.hprc-profile-root .hprc-profile-form-grid #ca_response:empty { display: none; }
.hprc-profile-root .hprc-profile-form label { font-size: 14px; font-weight: 500; line-height: 1.5; }
.hprc-profile-root .hprc-profile-form .form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #bdced3;
    border-radius: 10px;
    background: #fff;
    color: var(--hprc-profile-ink);
}
.hprc-profile-root .hprc-profile-form textarea.form-control { min-height: 144px; resize: vertical; }
.hprc-profile-root .hprc-profile-form .form-control:focus {
    border-color: #0b7773;
    box-shadow: 0 0 0 3px rgba(14, 170, 166, .14);
    outline: 2px solid transparent;
}
.hprc-profile-root .hprc-profile-form input,
.hprc-profile-root .hprc-profile-form textarea,
.hprc-profile-root .hprc-profile-form select,
.hprc-profile-root .hprc-profile-form a,
.hprc-profile-root .hprc-profile-form button { scroll-margin-block: 24px 112px; }
.hprc-profile-root .hprc-profile-form #sendMessageBtn { max-width: 100%; white-space: normal; min-height: 48px; }
.hprc-profile-root.hprc-profile-compact .hprc-profile-summary { grid-template-columns: 116px minmax(0, 1fr); gap: 18px; padding: 20px; }
.hprc-profile-root.hprc-profile-compact .hprc-profile-portrait-card .agent-avatar { width: 110px; height: 110px; }
.hprc-profile-root.hprc-profile-compact .hprc-profile-title { font-size: 25px; }
.hprc-profile-root.hprc-profile-small .hprc-profile-summary { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
.hprc-profile-root.hprc-profile-small .hprc-profile-portrait-card .agent-avatar { width: 112px; height: 112px; }
.hprc-profile-root.hprc-profile-small .hprc-profile-form-grid { grid-template-columns: minmax(0, 1fr); }
.hprc-profile-root.hprc-profile-small .contactForm.hprc-profile-form { padding: 18px 14px 112px; }
.hprc-profile-root.hprc-profile-small .hprc-profile-actions > a { flex: 1 1 110px; }
@media (prefers-reduced-motion: reduce) {
    .hprc-profile-root .hprc-profile-actions > a.hprc-profile-action,
    .hprc-profile-root .hprc-profile-social a { transition: none; }
}
