/* LinkedIn profile picture zoom out: the square with the circle on the left, the previews and the options
   on the right (one column when narrow). The parts shared with other photo tools are in assets/css/tools.css. */

.pst-zo [hidden] {
	display: none !important;
}

.pst-zo__stage {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 18px;
	background: var(--pst-tint);
	cursor: grab;
	touch-action: none;
	user-select: none;
}

.pst-zo__stage:active {
	cursor: grabbing;
}

.pst-zo__stage canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.pst-zo__pct {
	flex: none;
	min-width: 3.2em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

/* The previews: a profile card with its banner, then a post and a comment. */
.pst-zo__shown {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.pst-zo__card {
	display: flex;
	flex-direction: column;
	padding-bottom: 12px;
	overflow: hidden;
	border: 1px solid var(--pst-line);
	border-radius: 12px;
	background: var(--pst-white);
}

.pst-zo__banner {
	height: 44px;
	background: linear-gradient(90deg, #C9D3E6, #E7E9ED);
}

.pst-zo__avatar {
	display: block;
	flex: none;
	overflow: hidden;
	border-radius: 50%;
	background: var(--pst-tint);
}

.pst-zo__avatar canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.pst-zo__avatar--l {
	width: 96px;
	height: 96px;
	margin: -40px 0 8px 14px;
	border: 4px solid var(--pst-white);
	box-sizing: content-box;
}

.pst-zo__avatar--m {
	width: 44px;
	height: 44px;
}

.pst-zo__avatar--s {
	width: 30px;
	height: 30px;
}

.pst-zo__rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pst-zo__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--pst-line);
	border-radius: 12px;
	background: var(--pst-white);
}

.pst-zo__lines {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.pst-zo__card .pst-zo__lines {
	padding: 0 14px;
}

.pst-zo__lines i {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: var(--pst-tint);
}

.pst-zo__lines i:last-child {
	width: 60%;
}

/* How much of the circle the head fills, with the band that suits LinkedIn. */
.pst-zo__meter {
	position: relative;
	height: 10px;
	margin: 4px 0;
	border-radius: 99px;
	background: #EAD3CF;
}

.pst-zo__zone {
	position: absolute;
	top: 0;
	bottom: 0;
	background: #CDE7D7;
	box-shadow: 0 0 0 2px #1F7A4D;
	border-radius: 4px;
}

.pst-zo__dot {
	position: absolute;
	top: 50%;
	left: 0;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 3px solid var(--pst-white);
	border-radius: 50%;
	background: var(--pst-ink);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	transition: left 0.15s;
}

.pst .pst-zo__verdict {
	color: var(--pst-soft);
	font-size: 15px;
}

.pst .pst-zo__verdict.is-ok {
	color: #1F7A4D;
	font-weight: 600;
}

.pst .pst-zo__verdict.is-warn {
	color: #A23B2A;
	font-weight: 600;
}

@container pst (max-width: 450px) {
	.pst-zo__shown {
		grid-template-columns: minmax(0, 1fr);
	}
}
