/* LinkedIn banner maker: the banner across the whole card with its guides, the choices in three columns under it
   (two, then one when narrow), and the previews of a profile on a computer and on a phone. */

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

.pst-bn {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.pst-bn__top {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pst-bn__stage {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	border-radius: 12px;
	background: var(--pst-tint);
	box-shadow: 0 0 0 1px var(--pst-line);
	touch-action: pan-y;
}

.pst-bn__stage.is-movable {
	cursor: grab;
	touch-action: none;
}

.pst-bn__stage.is-over {
	box-shadow: 0 0 0 3px var(--pst-ink);
}

.pst-bn__stage canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.pst-bn__over {
	pointer-events: none;
}

.pst-bn__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
}

.pst-bn__guides {
	min-width: min(100%, 360px);
}

.pst-bn__guides .pst-seg__btn {
	min-height: 40px;
	font-size: 15px;
}

.pst .pst-bn__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.pst-bn__legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.pst-bn__key {
	display: inline-block;
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 4px;
}

.pst-bn__key--photo {
	border: 1.5px dashed #DC2626;
	background: rgba(220, 38, 38, 0.32);
}

.pst-bn__key--crop {
	background: rgba(15, 27, 51, 0.55);
}

.pst-bn__key--safe {
	border: 1.5px solid #1F7A4D;
	background: rgba(31, 122, 77, 0.12);
}

.pst-bn__controls {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 28px;
}

.pst-bn__span {
	grid-column: 1 / -1;
}

.pst-bn__col {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

.pst-bn__tpls {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.pst-bn__tpl {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 6px;
	border: 1.5px solid var(--pst-line);
	border-radius: 12px;
	background: var(--pst-white);
	color: var(--pst-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.pst-bn__tpl canvas {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 1;
	border-radius: 6px;
}

.pst-bn[data-bn-kind="company"] .pst-bn__tpl canvas {
	aspect-ratio: 4 / 1;
}

.pst-bn__tpl[aria-pressed="true"] {
	border-color: var(--pst-ink);
	box-shadow: inset 0 0 0 1px var(--pst-ink);
}

.pst-bn__grad {
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--a), var(--b));
	box-shadow: inset 0 0 0 1px rgba(15, 27, 51, 0.16);
}

.pst-bn__photo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.pst-bn__range {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.pst-bn__pair {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 8px;
}

.pst-bn__pair .pst-seg__btn {
	min-height: 40px;
	font-size: 15px;
}

.pst-bn__font--display {
	font-family: "Bricolage Grotesque", var(--pst-display), sans-serif;
	font-weight: 700;
}

.pst-bn__font--serif {
	font-family: Georgia, "Times New Roman", serif;
}

/* The previews: a profile card on a computer, a profile in a phone. */
.pst-bn__previews {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.pst-bn-desk,
.pst-bn-phone {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #FFFFFF;
	color: #1F2328;
}

.pst-bn-desk {
	border: 1px solid var(--pst-line);
	border-radius: 12px;
}

.pst-bn-phone {
	max-width: 300px;
	border: 8px solid #11161F;
	border-radius: 30px;
}

.pst-bn-desk canvas,
.pst-bn-phone canvas {
	display: block;
	width: 100%;
	height: auto;
}

.pst-bn-desk__pic,
.pst-bn-phone__pic {
	position: absolute;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	border: 4px solid #FFFFFF;
	border-radius: 50%;
	background: var(--pst-tint) center / cover no-repeat;
	color: var(--pst-muted);
	font-size: 13px;
}

.pst-bn-phone__pic {
	border-width: 3px;
}

.pst-bn[data-bn-kind="company"] .pst-bn-desk__pic,
.pst-bn[data-bn-kind="company"] .pst-bn-phone__pic {
	border-radius: 10px;
	box-shadow: 0 0 0 1px var(--pst-line);
}

.pst-bn-desk__pic.has-picture b,
.pst-bn-phone__pic.has-picture b {
	display: none;
}

.pst-bn-desk__body,
.pst-bn-phone__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: calc(var(--below, 40px) + 10px) 22px 18px;
	font-size: 13px;
	line-height: 1.4;
}

.pst-bn-phone__body {
	padding: calc(var(--below, 30px) + 8px) 14px 16px;
	font-size: 12px;
}

.pst-bn-desk__body b {
	font-size: 19px;
}

.pst-bn-phone__body b {
	font-size: 16px;
}

.pst-bn-desk__body i {
	color: #6B7280;
	font-style: normal;
}

.pst-bn__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.pst-bn__btns em {
	padding: 4px 12px;
	border: 1px solid #0A66C2;
	border-radius: 99px;
	color: #0A66C2;
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
}

.pst-bn__btns em:first-child {
	background: #0A66C2;
	color: #FFFFFF;
}

@container pst (max-width: 900px) {
	.pst-bn__controls {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pst-bn__previews {
		grid-template-columns: minmax(0, 1fr);
	}
}

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

	.pst-bn__tpls {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
