:is(#tinymce, .article_content) .hr-author-widget {
    --aw-gutter: clamp(var(--space-after-h4,16px), 4%, var(--space-after-h1,32px));
    box-sizing: border-box;
    position: relative;
    container-type: inline-size;
    margin: var(--space-after-h2,24px) 0;
    border: 2px solid var(--color-success,#41a040);
    border-radius: var(--radius-lg,16px);
    background: var(--color-white,#fff);
    color: var(--color-body,#2d2f47);
    font: var(--weight-regular,400) var(--text-md,16px)/var(--leading-relaxed,1.5) var(--font-family,sans-serif);
    text-align: start;
}

.hr-aw-person {
    display: flex;
    align-items: center;
    gap: var(--space-after-h3,20px);
    padding: var(--aw-gutter);
    border-radius: var(--radius-lg,16px) var(--radius-lg,16px) 0 0;
    background: linear-gradient(110deg, color-mix(in srgb, var(--color-success,#41a040) 8%, white), var(--color-white,#fff) 72%);
}
.hr-aw-rating + .hr-aw-person { padding-inline-end: calc(var(--aw-gutter) + 2.75em); }

.hr-author-widget .hr-aw-avatar {
    display: grid;
    place-items: center;
    flex: none;
    box-sizing: border-box;
    width: 4.5em;
    height: 4.5em;
    padding: 0;
    overflow: hidden;
    border: 3px solid var(--color-white,#fff);
    border-radius: var(--radius-round,50%);
    box-shadow: 0 0 0 1px var(--color-success-light,#a0d0a0);
    background: var(--color-bg-tint-purple,#eaebf7);
    color: var(--color-primary,#363a61);
    font: inherit;
    font-weight: var(--weight-bold,700);
}
.hr-author-widget a.hr-aw-avatar { cursor: pointer; }
:is(#tinymce, .article_content) .hr-aw-avatar img {
    display: block; width: 100%; height: 100%; margin: 0;
    object-fit: cover; border: 0; border-radius: inherit;
}
.hr-aw-identity { display: grid; min-width: 0; gap: .2em; }
:is(#tinymce, .article_content) .hr-aw-label {
    color: var(--color-success-text,#2e7d32);
    font-size: var(--text-xs,12px);
    font-weight: var(--weight-bold,700);
    line-height: var(--leading-heading,1.3);
    letter-spacing: var(--tracking-wide, .01em);
    text-transform: uppercase;
}
.hr-aw-name-line { display: flex; align-items: center; gap: .35em; min-width: 0; }
:is(#tinymce, .article_content) .hr-aw-name {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--color-heading,#1e2139);
    font-size: var(--text-xl,20px);
    font-weight: var(--weight-bold,700);
    line-height: var(--leading-tight,1.15);
    text-decoration: none;
}
:is(#tinymce, .article_content) .hr-aw-facts {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .12em .5em;
    color: var(--color-muted,#5b5e76); font-size: var(--text-sm,13px);
}
:is(#tinymce, .article_content) .hr-aw-facts > span { font-size: inherit; }
.hr-aw-facts > span + span::before { content: "·"; margin-inline-end: .5em; }
.hr-aw-crown { flex: none; color: var(--color-success,#41a040); font-size: var(--text-xl,20px); }
.hr-aw-status { position: relative; flex: none; margin: 0; }
.hr-aw-status summary { display: grid; place-items: center; cursor: pointer; list-style: none; line-height: 1; }
/* Extend the tap target without moving the crown or wrapping the author's name. */
.hr-aw-status summary::after { content: ""; position: absolute; inset: -.25em; }
.hr-aw-status summary::-webkit-details-marker { display: none; }
.hr-aw-status[open] > span {
    position: absolute; z-index: 2; right: 0; top: calc(100% + .35em);
    width: min(14em,65vw); padding: .65em .85em;
    border: 1px solid var(--border-default,#dce0e0); border-radius: var(--radius-sm,8px);
    background: var(--color-white,#fff); box-shadow: var(--shadow-dropdown);
    color: var(--color-body,#2d2f47); font-size: var(--text-base,14px);
}
.hr-aw-rating {
    position: absolute; z-index: 1; top: 0; right: var(--aw-gutter);
    display: grid; place-items: center; box-sizing: border-box;
    width: 2.35em; height: 2.75em; padding-bottom: .22em;
    clip-path: polygon(0 0,100% 0,100% 100%,50% 85%,0 100%);
    background: var(--color-muted-alt,#5f6674); color: var(--color-white,#fff);
    font-size: var(--text-lg,18px); font-weight: var(--weight-bold,700);
    font-variant-numeric: tabular-nums;
}
.hr-aw-rating--high { background: var(--color-success,#41a040); }
.hr-aw-rating--mid { background: var(--color-accent-yellow,#f2c94c); color: var(--color-heading,#1e2139); }
.hr-aw-rating-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hr-aw-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--space-after-h4,16px);
    padding: var(--space-after-h3,20px) var(--aw-gutter);
    border-top: 1px solid var(--border-default,#dce0e0);
}
.hr-aw-help { display: grid; flex: 1 1 15em; gap: .15em; }
.hr-aw-help strong { color: var(--color-heading,#1e2139); font-size: var(--text-lg,18px); line-height: var(--leading-snug,1.25); }
.hr-aw-help span { color: var(--color-muted,#5b5e76); font-size: var(--text-base,14px); }
.hr-aw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35em var(--space-after-h4,16px); }
.hr-author-widget :is(.hr-aw-call, .hr-aw-profile) {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    box-sizing: border-box; min-height: var(--h-touch,44px);
    font: var(--weight-bold,700) var(--text-md,16px)/var(--leading-tight,1.15) var(--font-family,sans-serif);
}
.hr-author-widget .hr-aw-call {
    border: 0; border-radius: var(--radius-sm,8px); padding: .65em 1.1em;
    background: var(--color-primary,#363a61); color: var(--color-white,#fff);
}
.hr-author-widget button.hr-aw-call { cursor: pointer; }
.hr-author-widget button.hr-aw-call:hover { background: var(--color-primary-hover,#2a2e50); }
.hr-aw-phone-icon { font-size: 1em; }
:is(#tinymce, .article_content) .hr-aw-profile { color: var(--color-primary,#363a61); text-decoration: none; }
.article_content .hr-author-widget :is(a.hr-aw-name, a.hr-aw-profile):hover { text-decoration: underline; text-underline-offset: .17em; }
.hr-author-widget :is(button, a, summary):focus-visible { outline: 2px solid var(--color-primary,#363a61); outline-offset: 3px; }

.article_content [data-hr-author-live] :is(a[href],button:not(:disabled),summary),
.aside-pub .single-pub__autor :is(a[href],button:not(:disabled):not(.not_phone),.look_img[data-photo]) { cursor: pointer; }
@media (hover: hover) {
    .article_content a.hr-aw-avatar:hover { box-shadow: 0 0 0 2px var(--color-success,#41a040); }
    .article_content .hr-aw-status summary:hover .hr-aw-crown { color: var(--color-success-text,#2e7d32); }
}

.hr-aw-promo-note {
    display: grid; gap: .25em; padding: var(--space-after-h4,16px); margin-block: 1em;
    border-inline-start: 3px solid var(--color-success,#41a040); background: var(--color-blend,#f6f7f8);
    color: var(--color-body,#2d2f47); font-size: var(--text-base,14px);
}
.hr-aw-promo-note button {
    justify-self: start; min-height: var(--h-small,32px); padding: 0; border: 0; background: transparent;
    color: var(--color-primary,#363a61); font: inherit; font-weight: var(--weight-bold,700); text-decoration: underline; cursor: pointer;
}

@container (max-width: 30rem) {
    .hr-aw-person { gap: .75em; }
    .hr-author-widget .hr-aw-avatar { width: 3.25em; height: 3.25em; }
    .hr-aw-rating { font-size: var(--text-md,16px); right: .75em; height: 2.25em; }
    .hr-aw-rating + .hr-aw-person { padding-inline-end: var(--aw-gutter); }
    .hr-aw-rating + .hr-aw-person .hr-aw-label { min-height: 1.65em; padding-inline-end: 3em; }
    :is(#tinymce, .article_content) .hr-aw-name { font-size: var(--text-lg,18px); }
    .hr-aw-footer { align-items: stretch; gap: .65em; }
    .hr-aw-help, .hr-aw-actions { flex-basis: 100%; }
    .hr-aw-actions > * { flex: 1 1 auto; }
}
@container (max-width: 22rem) {
    :is(#tinymce, .article_content) .hr-aw-facts { display: grid; gap: 0; }
    .hr-aw-facts > span + span::before { content: none; }
}
@media (scripting: none) {
    [data-hr-author-placeholder] { display: none; }
}
