/* STEP220: scoped header and profile polish; no changes to editorial layouts. */
@media(min-width:901px){
.site-header.portal-header .portal-header-row{display:grid!important;grid-template-columns:76px minmax(0,1fr) auto!important;gap:14px!important;max-width:1540px!important}
.site-header.portal-header .portal-main-nav--step107{min-width:0!important;gap:clamp(2px,.55vw,10px)!important;justify-content:flex-start!important;overflow:visible!important}
.site-header.portal-header .portal-main-nav--step107 > a,.site-header.portal-header .portal-main-nav--step107 > details > summary,.site-header.portal-header .portal-main-nav--step107 .nav-dropdown-trigger{font-size:clamp(13px,.88vw,16px)!important;font-weight:500!important;padding:0 clamp(3px,.4vw,8px)!important;white-space:nowrap!important}
.site-header.portal-header .portal-main-nav--step107 .portal-social-nav>summary{font-weight:500!important}
.site-header.portal-header .portal-header-actions{display:flex!important;gap:7px!important;align-items:center!important;min-width:max-content!important}
.site-header.portal-header .portal-icon-btn,.site-header.portal-header .portal-menu-btn{flex-shrink:0!important}
}
@media(min-width:901px) and (max-width:1350px){.site-header.portal-header .portal-main-nav--step107 .portal-social-nav,.site-header.portal-header .portal-main-nav--step107 .portal-more-menu{display:none!important}}
@media(min-width:901px) and (max-width:1150px){.site-header.portal-header .portal-main-nav--step107 .portal-dating-link{display:none!important}}
.author-profile-card{padding:28px 30px!important;gap:26px!important;max-width:1200px!important;min-height:0!important}
.author-profile-card__body{max-width:900px!important}
.author-profile-card__body h1{margin:0 0 8px!important;font-size:clamp(28px,2.6vw,38px)!important}
.author-profile-card__kicker{margin-bottom:8px!important}
.author-profile-card .author-stats,.author-profile-card .author-rating-box{margin:12px 0!important;gap:8px!important}
.author-profile-card .author-actions{margin:14px 0!important;gap:10px!important}
.author-profile-card .author-socials{margin-top:8px!important}
.author-profile-card .author-socials a{background:transparent!important;color:#2459a6!important}
.author-profile-card__avatar .avatar-open-btn{display:block;overflow:hidden;border-radius:24px;line-height:0}
.author-profile-card__avatar .avatar-open-btn img{border-radius:0!important}
.step205-avatar-edit{color:#d32f2f!important;background:none!important}
.author-profile-card__username{color:#111!important;font-weight:400!important}
@media(max-width:760px){.author-profile-card{padding:18px!important;gap:14px!important}}
/* Avatar view: clip only the visible square/circle, never modify stored image. */
img[data-avatar-view]{transform-origin:center center;}
