/* ~/CSS/Pages/Users/Profile/ProfileHeader.css */
.profile-header:before,
.profile-header:after {
	content: " ";
	display: table;
}

.profile-header:after {
	clear: both;
}

.profile-header .profile-header-top:before,
.profile-header .profile-header-top:after {
	content: " ";
	display: table;
}

.profile-header .profile-header-top:after {
	clear: both;
}

.profile-header .profile-avatar-image,
.profile-header .profile-header-content {
	float: left;
}

.profile-header .profile-avatar-image {
	position: relative;
	margin-right: 12px;
}

.profile-header .profile-avatar-image .icon-online,
.profile-header .profile-avatar-image .icon-ingame,
.profile-header .profile-avatar-image .icon-instudio {
	/* background-image is declared here rather than inherited: SiteStyle.css carries the
	   friendsstatus sprite under the names .icon-game / .icon-studio / .icon-online, but this
	   file's presence dot uses .icon-ingame / .icon-instudio, which match nothing there. Only
	   .icon-online would have picked up an image; the other two rendered as an empty 38px box.
	   The offsets below are this file's own 38px-scale positions, not SiteStyle's 28px ones. */
	background-image: url(/images/Home/friendsstatus.svg);
	background-repeat: no-repeat;
	background-size: 38px auto;
	width: 38px;
	height: 38px;
}

/* Square, in fixed pixels, because the ring is drawn with border-radius:50% — and 50% of a box
   that is not square is an ellipse, not a circle. This used to be `width:25%` while the 152px
   height from .avatar-headshot-lg.card-plain stayed put, so at 375px the box resolved to
   84x152 and the avatar rendered as an egg with the headshot cropped to it. 102px is the size
   the 2017 stylesheet used for its own narrow breakpoint.

   The 12px above is a margin rather than the padding it used to be: `* { box-sizing:
   border-box }` counts padding inside the declared height, so padding here would leave a
   102x90 content box and hand the same oval straight to the <img>, which is sized 100%/100%.

   Paired with .header-title below, which takes the width this no longer claims. */
@media(max-width:480px) {
	.profile-header .profile-avatar-image {
		width: 102px;
		height: 102px;
		margin-right: 0;
		margin-top: 12px;
		margin-bottom: 12px;
	}
}

.profile-header .profile-avatar-image .icon-ingame {
	background-position: 0 0;
}

.profile-header .profile-avatar-image .icon-instudio {
	background-position: 0 -38px;
}

.profile-header .profile-avatar-image .icon-online {
	background-position: 0 -76px;
}

/* SiteStyle.css sizes this to the 152x152 ring with
   `.avatar-headshot-lg .avatar-card-link { width: 100%; height: 100% }`, but Legacy/Navigation.css
   loads later in _layout.ejs and redeclares the *same selector* with `height: auto`. Equal
   specificity, so the later sheet won and the link collapsed to one line-height (~22px) —
   which is why the headshot never filled the circle. Pin the size here (page stylesheet,
   loaded last, and more specific than either) instead of depending on that ordering.
   border-box keeps the 1px border inside the 152px ring rather than pushing it to 154px. */
.profile-header .profile-avatar-image .avatar-image-link {
	display: block;
	width: 100%;
	height: 100%;
	border: 1px solid #B8B8B8;
	box-sizing: border-box;
	border-radius: 50%;
	overflow: hidden;
}

/* Was a hard-coded 110x110 — a circle 42px smaller than the 152px ring around it, which read
   as a small oval floating inside the profile circle. Fill the ring instead, and cover rather
   than stretch so a non-square render is cropped instead of squashed. */
.profile-header .profile-avatar-image .avatar-image-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

/* The dot sits on the ring, not clear of it. Offsets are geometry, not taste: the headshot is
   a circle inscribed in this 152px box, so at the 4-o'clock diagonal the ring is
   76 - 76/sqrt(2) = 22px in from the corner. A 38px dot flush with the corner has its centre
   19px in — just outside that arc — which leaves it straddling the border with roughly a third
   of it over the thumbnail. The old -12px pushed the centre 31px past the ring and detached it
   from the avatar entirely. */
.profile-header .profile-avatar-image .profile-avatar-status {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1000;
}

/* Below 991px the original threw the sprite away (background-image:none) and stretched this
   span into a flat 6px colour bar across the bottom of the headshot — blue online, green
   in-game, orange in-studio. Removed: it reads as a rendering fault rather than a status, and
   the dot it replaced fits fine at these widths anyway. The avatar box stays 152px down to
   500px, so the geometry the comment above works through still holds and the badge needs no
   responsive variant. Restore the block here if the authentic mobile bar is ever wanted back. */

.profile-header .profile-header-content {
	width: 100%;
	position: relative;
}

@media(max-width:767px) {
	.profile-header .profile-header-content {
		width: 100%;
		margin-left: 0;
		position: static;
	}
}

.profile-header .header-title {
	display: inline-block;
}

@media(max-width:767px) {
	.profile-header .header-title {
		padding-top: 12px;
	}
}

/* Was 75%, the other half of a 25/75 split with the avatar. The avatar is a fixed 102px square
   now (it has to be, to stay a circle), so this takes whatever is left instead — a percentage
   would no longer add up and the title would wrap under the avatar on narrow phones. */
@media(max-width:480px) {
	.profile-header .header-title {
		float: right;
		width: calc(100% - 102px);
		overflow: hidden;
		padding-left: 12px;
	}
}

.profile-header .header-title h2 {
	display: inline-block;
	margin: 0 12px 0 0;
}

@media(max-width:767px) {
	.profile-header .header-title h2 {
		margin: 0 12px 0 12px;
	}
}

@media(max-width:480px) {
	.profile-header .header-title h2 {
		margin: 0;
	}
}

.profile-header .header-title .icon-tbc {
	display: inline-block;
}

/* No overflow:hidden here, though the dump has it. overflow creates a block formatting
   context, and the one box that needs to be a BFC is the span below — it is the box that has
   to sit beside the avatar's float and take the width that is left. Making this wrapper one as
   well just nests a second, redundant shrink and puts the edit form inside it too. Clipping is
   unaffected either way: the ellipsis comes from .text-overflow on the span, not from here. */
.profile-header .header-userstatus {
	margin: 6px 0;
}

@media(max-width:479px) {
	.profile-header .header-userstatus {
		font-size: 14px;
	}
}

/* Left aligned under the username, which is where the dump has it: its stylesheet gives this
   box no width, no padding and no text-align at all, so the text just starts at the left edge
   of the caption. It was centred here for a while over the Friends / Followers / Following
   counters below — that was wrong, the status hangs off the username, not off the counters. */
.profile-header .header-userstatus .header-userstatus-text {
	display: block;
}

/* The span, not the wrapper, is the box that has to dodge the avatar. .text-overflow puts
   overflow:hidden on it, and an overflow:hidden block establishes a block formatting context,
   which may not overlap a float's margin box — so as a plain auto-width block it is placed
   beside the avatar and given exactly the width that is left, starting at the same x the
   username starts from. The old width:100% only fit because the 36% inline-block above bounded
   it; at the caption's full width it would no longer fit beside the float and would drop below
   the avatar instead.

   min-height rather than height, so a blank status on your own profile is still a clickable
   line without overflow:hidden clipping the descenders of a status that does have text. */
.profile-header .header-userstatus .header-userstatus-text span {
	display: block;
	min-height: 1em;
}

/* Below 768px the h2 picks up a 12px left margin (and below 480px .header-title picks up the
   same as padding), so the username stops being flush with the edge the status starts from.
   Match it, or the status sits 12px left of the name it belongs to. */
@media(max-width:767px) {
	.profile-header .header-userstatus .header-userstatus-text span {
		padding-left: 12px;
	}
}

/* At this breakpoint .header-title is floated right across the whole width beside the avatar,
   so there is no room left on that line for the span to be placed in — auto width would
   resolve to zero and the status would vanish. An explicit 100% cannot fit beside the floats
   either, and a block formatting context that does not fit drops below them instead: the
   status ends up under the avatar, full width, which is where it sat before this rule existed
   and the only place it fits here. */
@media(max-width:480px) {
	.profile-header .header-userstatus .header-userstatus-text span {
		width: 100%;
	}
}

.profile-header .header-userstatus .header-userstatus-text span.userstatus-editable {
	cursor: pointer;
}

/* Empty status on your own profile. Upstream rendered a blank (but still clickable) line here;
   this port shows "Set your status" instead, muted so it reads as a prompt and not as a status
   somebody actually wrote. See the comment in profile.ejs. */
.profile-header .header-userstatus .header-userstatus-text span.userstatus-placeholder {
	color: #b8b8b8;
	font-style: italic;
}

/* The editor. Sizing is the dump's (.header-userstatus .input-field, padding 2px 12px on a
   24px box) — without it the shared .input-field rule renders a full-height form control that
   pushes the counters below it out of the 128px header. */
.profile-header .header-userstatus .input-field {
	padding: 2px 12px;
	height: 24px;
}

/* The dump's #statusForm is a flex row of input + Save; the input takes the slack so the
   button keeps its fixed width. .form-group carries a bottom margin from the base stylesheet
   that would break the row onto two lines. */
.profile-header .header-userstatus #statusForm {
	display: flex;
	align-items: center;
}

.profile-header .header-userstatus #statusForm .form-group {
	flex: 1 1 auto;
	margin: 0 6px 0 0;
}

.profile-header .header-userstatus .header-userstatus-share-button {
	flex: 0 0 auto;
}

.profile-header .header-userstatus .userstatus-error {
	margin: 3px 0 0;
}

.profile-header .header-userstatus .header-userstatus-share-progress {
	margin: 12px;
	height: 17px;
	width: 48px;
}

.profile-header .header-details {
	position: relative;
}

.profile-header .header-details:before,
.profile-header .header-details:after {
	content: " ";
	display: table;
}

.profile-header .header-details:after {
	clear: both;
}

@media(max-width:767px) {
	.profile-header .header-details {
		display: inline-block;
		padding-left: 4px;
		padding-top: 3px;
	}
}

/* The last survivor of the 25/75 split (see the avatar and .header-title above). This box does
   not actually sit beside the avatar — at 375px it is 251px wide against the 233px left over
   next to the float, so it never fits and wraps underneath, where the full card width is
   available. Holding it at 75% there just walled off 84px of dead space on the right, and
   .details-actions floats right to the edge of THIS box, so Message / Add Friend came to rest
   84px short of the card and looked randomly indented.

   The 2017 sheet has no 75% here either: .header-details is width:100% for the whole
   max-width:767px range. */
@media(max-width:480px) {
	.profile-header .header-details {
		width: 100%;
	}
}

.profile-header .header-details .details-info:before,
.profile-header .header-details .details-info:after,
.profile-header .header-details .details-actions:before,
.profile-header .header-details .details-actions:after {
	content: " ";
	display: table;
}

.profile-header .header-details .details-info:after,
.profile-header .header-details .details-actions:after {
	clear: both;
}

.profile-header .header-details .details-info li,
.profile-header .header-details .details-actions li {
	padding: 0 5px;
	text-align: center;
}

.profile-header .header-details .details-info {
	float: left;
	width: 36%;
}

.profile-header .header-details .details-info li {
	float: left;
	width: 33%;
}

@media(max-width:767px) {
	.profile-header .header-details .details-info {
		width: 100%;
		float: none;
	}
}

@media(max-width:479px) {
	.profile-header .header-details .details-info {
		width: 100%;
	}
}

.profile-header .header-details .details-actions {
	float: right;
	width: 45%;
}

@media(max-width:767px) {
	.profile-header .header-details .details-actions {
		width: 100%;
		margin-top: 6px;
	}
}

.profile-header .header-details .details-actions li {
	float: right;
}

@media(max-width:991px) {

	.profile-header .header-details .details-actions li .btn-control-sm,
	.profile-header .header-details .details-actions li .btn-primary-sm {
		padding: 7px 5px;
	}
}

@media(max-width:479px) {

	.profile-header .header-details .details-actions li .btn-control-sm,
	.profile-header .header-details .details-actions li .btn-primary-sm {
		width: 100%;
		margin: 6px auto;
	}
}

.profile-header .header-details .details-actions .btn-unfollow {
	background-color: #E2231A;
	color: #fff;
}

.profile-header .mobile-details-actions {
	margin: 12px auto;
}

.profile-header .mobile-details-actions ul {
	white-space: nowrap;
}

.profile-header .mobile-details-actions ul.two-item-list li {
	width: 50%;
}

.profile-header .mobile-details-actions ul.three-item-list li {
	width: 33%;
}

.profile-header .mobile-details-actions li {
	display: inline-block;
}

.profile-header .mobile-details-actions li a {
	text-align: center;
	display: block;
}

.profile-header .mobile-details-actions li a .icon-background {
	background: url("/web/20160326012633im_/http://static.rbxcdn.com/images/Profile/profile_icons_02182016.svg");
	height: 40px;
	width: 44px;
	margin: 0 auto;
}

.profile-header .mobile-details-actions li a .icon-text {
	font-size: 14px;
	color: #757575;
}

.profile-header .mobile-details-actions .center-icon {
	border-left: 1px solid #B8B8B8;
}

.profile-header .mobile-details-actions .last-icon {
	border-left: 1px solid #B8B8B8;
}

.profile-header .mobile-details-actions .action-add-friend .icon-background {
	background-position-y: 0;
}

.profile-header .mobile-details-actions .action-remove-friend .icon-background {
	background-position-y: -44px;
}

.profile-header .mobile-details-actions .action-friend-pending .icon-background {
	background-position-y: -86px;
}

.profile-header .mobile-details-actions .action-message .icon-background {
	background-position-y: -125px;
}

.profile-header .mobile-details-actions .action-join-game .icon-background {
	background-position-y: -170px;
}

.profile-header .header-details-error {
	float: right;
	margin: 0 6px 0 0;
}

.profile-header .profile-header-more {
	position: absolute;
	top: 0;
	right: 6px;
}

.profile-header .icon-more {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* The trigger is an anchor with no href — SetupPopover opens the menu from a click handler,
   there is nothing to navigate to — so it gets no pointer cursor of its own, and
   Navigation.css only gives .rbx-menu-item `display: inline`, which leaves the 28x28 sprite
   as the entire hit area. */
.profile-header .profile-header-more .rbx-menu-item {
	display: inline-block;
	padding: 4px;
	cursor: pointer;
}