body {
	position: relative;
}

header {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	box-sizing: border-box;
	background: var(--primary-color);
	padding: 1em;
	color: white;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	z-index: 2;
}

pre {
	overflow: hidden;
}

header a.logo {
	display: block;
	height: 3em;
}

header a.logo img {
	display: block;
	width: auto;
	height: 100%;
}

header .buttons {
	display: none;
}

@media (min-width: 960px) {
	header {
		padding: 2em;
	}

	header .buttons {
		display: block;
	}
}

@media (min-width: 1440px) {
	header {
		padding: 2em 4em;
	}
}

hr {
	background: linear-gradient(to right, var(--primary-color) 2px, rgba(255, 255, 255, 0) 0%);
	background-position: bottom;
	background-size: 0.75em 2px;
	background-position: 0.75em 0;
	border: none;
	height: 2px;
	max-width: 30em;
	margin: 2em 0;
}

h1 {
	font-size: 3em;
	font-weight: 600;
	margin: 1em 0 0;
	text-align: left;
}

h2 {
	font-size: 2em;
	font-weight: 600;
	margin: 1em 0;
}

p {
	line-height: 1.5em;
}

ul {
	line-height: 1.5em;
	list-style: none;
	display: block;
	padding: 0;
	margin: 1em 0;
}

ul li {
	list-style: none;
	display: block;
	padding: 0 0 0 1.5em;
	margin: 0.5em 0;
	position: relative;
}

ul li::before {
	content: "\25CF";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}

ol {
	line-height: 1.5em;
	list-style: none;
	display: block;
	padding: 0;
	margin: 1em 0;
	counter-reset: list;
}

ol li {
	list-style: none;
	display: block;
	padding: 0 0 0 1.5em;
	margin: 0.5em 0;
	position: relative;
	counter-increment: list;
}

ol li::before {
	content: counter(list) ".";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	font-weight: bold;
}

aside {
	background: white;
	padding: 1em;
	width: 25em;
}

main {
	padding: 1em;
	max-width: 60em;
	text-align: left;
}

@media (max-width: 959px) {
	aside {
		position: fixed;
		top: 5em;
		right: 100%;
		bottom: 0;
		width: 100%;
		z-index: 3;
		transition: right 0.5s, box-shadow 0.5s;
		overflow: auto;
	}

	aside .sidebar-close {
		display: block;
		position: absolute;
		top: 1em;
		right: 1em;
		font-size: 2em;
		font-family: "Font Awesome 7 Pro";
		font-weight: 900;
		color: var(--primary-color);
		text-decoration: none;
	}

	aside .sidebar-close::before {
		content: "\f00d";
	}

	.side-open aside {
		right: 0;
		box-shadow: 0 0 2em #000;
	}
}

@media (min-width: 960px) {
	aside {
		position: fixed;
		top: 7em;
		left: 0;
		bottom: 0;
		overflow: auto;
		width: 25em;
		padding: 2em;
	}

	main {
		padding: 2em;
		margin-left: 25em;
	}
}

@media (min-width: 1440px) {
	aside {
		padding-left: 4em;
	}

	main {
		padding-right: 4em;
	}
}

aside p {
	margin-top: -1em;
	color: var(--color-gray);
}

aside .options {
	line-height: 1.5em;
}

aside .options a {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-decoration: none;
	color: var(--primary-color);
}

aside .options a::before {
	content: "\f055";
	display: inline-block;
	margin: 0 0.5em 0 0;
	font-family: "Font Awesome 7 Pro";
	font-weight: 400;
}

aside .options a.enabled::before {
	content: "\f057";
	font-weight: 900;
}

aside .tags {
	flex-direction: column;
	flex-wrap: nowrap;
}

main .actions a i {
	display: table-cell;
	width: 1em;
	font-size: 1.5em;
	padding: 0.25em 0;
	text-align: center;
}

main .actions a span {
	display: table-cell;
	vertical-align: middle;
	text-align: left;
	padding: 0 2em 0 1em;
}

main .actions a.discuss {
	background: var(--tag-color);
	color: var(--primary-color);
}

main .actions a.discuss:hover {
	background: var(--tag-color-hover);
	color: var(--primary-color);
}

@media (max-width: 767px) {
	main .actions {
		background: white;
		margin: -1em;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
		justify-content: stretch;
		overflow: hidden;
	}

	main .actions a {
		display: block;
		padding: 0.25em;
		width: 33.33%;
		text-decoration: none;
		color: var(--primary-color);
		font-weight: 600;
		padding: 0.5em 1.25em;
		flex-grow: 0;
		flex-shrink: 0;
	}

	main .actions a:hover {
		background: rgba(0, 0, 0, 0.1);
	}

	main .actions a.discuss {
		width: 100%;
	}

	main .actions a.edit { width: 35%; }
	main .actions a.download { width: 37%; }
	main .actions a.copy { width: 28%; }

	main .actions a.discuss br { display: none; }
}

@media (min-width: 768px) {
	main .actions {
		position: fixed;
		top: 8em;
		right: 0;
		text-align: right;
	}

	main .actions a {
		display: table;
		margin: 0 0 1em auto;
		background: var(--primary-color);
		color: white;
		padding-right: 1em;
		text-decoration: none;
		border-top-left-radius: 2em;
		border-bottom-left-radius: 2em;
		padding: 0.5em 1.25em;
		padding-right: 1em;
		font-weight: 600;
	}

	main .actions a:hover {
		background: var(--primary-color-hover);
	}

	main .actions a span {
		display: table-cell;
	}

	main .actions a.copy.copied {
		position: relative;
	}

	main .actions a.copy.copied::after {
		content: "\f00c";
		font-family: "Font Awesome 7 Pro";
		font-weight: 900;
		display: block;
		position: absolute;
		top: 1em;
		right: 1em;
	}
}

@media (min-width: 960px) {
	main .actions {
		top: 10em;
	}

	main .actions a.edit {
		display: none;
	}
}

@media (min-width: 1440px) {
	main .actions a span {
		padding-right: 3em;
	}
}

main .meta {
	margin: 1em 0;
	font-size: 1.2em;
}

main .meta p {
	margin: 0 0 0.5em;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
}

main .meta p strong {
	font-weight: 600;
	margin: 0 0.5em 0 0;
}

main .meta p span.value {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	cursor: pointer;
}

main .meta p span.value::after {
	content: "\f303";
	display: inline-block;
	margin-left: 0.75em;
	font-family: "Font Awesome 7 Pro";
	font-weight: 900;
	font-size: 1rem;
	color: #7F7F7F;
}

main .meta p span.value:hover::after {
	color: inherit;
}

main .meta p span.value:hover::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.1);
	margin: -0.25em -0.5em;
	border-radius: 0.5em;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(245, 245, 245, 0.95);
	transition: opacity 0.5s;
	z-index: 99;
}

.modal-overlay.hidden {
	opacity: 0;
}

.modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: calc(100% - 4em);
	height: calc(100% - 4em);
	max-height: calc(100% - 4em);
	background: white;
	box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.25);
	padding: 1em;
	z-index: 100;
	transform: translate3d(-50%, -50%, 0) scale(var(--scale));
	transition: opacity 0.5s, transform 0.5s;
	transition-timing-function: cubic-bezier(0.5, 0, 0.5, 1.5);
	--scale: 1;
}

.modal-inner {
	overflow: auto;
	height: 100%;
}

.modal.hidden {
	--scale: 0;
	opacity: 0;
	transition-timing-function: cubic-bezier(0.75, -0.75, 0.5, 1);
}

.modal.size-small {
	height: auto;
}

.modal-close {
	position: absolute;
	top: 0;
	right: 0;
	margin-top: -1em;
	margin-right: -1em;
	width: 2em;
	height: 2em;
	line-height: 2em;
	text-align: center;
	background: var(--primary-color);
	color: white;
	text-decoration: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.5em;
}

.modal-close::before {
	content: "\f00d";
	font-family: "Font Awesome 7 Pro";
	font-weight: 900;
}

@media (min-width: 768px) {
	.modal {
		width: 35em;
		min-height: 10em;
		height: auto;
	}

	.modal.padded {
		padding: 3em;
	}

	.modal.size-small {
		width: 20em;
	}
}

@media (min-width: 960px) {
	.modal {
		padding: 2em;
	}

	.modal.padded {
		padding: 4em;
	}

	.modal.size-large {
		width: 45em;
	}

	.modal-close {
		font-size: 1em;
	}
}

.modal h3 {
	margin-top: 0;
	font-size: 1.6em;
}

.modal h4 {
	font-size: 1.1em;
	line-height: 1.2em;
}

.modal input[type="text"]:not(.in-field),
.modal textarea:not(.in-field) {
	display: block;
	width: 100%;
	border: 1px solid var(--border-color);
	height: 3em;
	line-height: 3em;
	border-radius: 1.5em;
	background: transparent;
	font: inherit;
	padding: 0 1em;
	margin: 0 0 1em;
	outline: 0;
}

.modal textarea:not(.in-field) {
	line-height: 1.5em;
	height: 6em;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	resize: none;
}

@media (min-height: 30em) {
	.modal textarea {
		height: 12em;
	}
}

.modal .buttons {
	margin: 1em 0 0;
	text-align: center;
	justify-content: center;
}

.modal .buttons input {
	margin: 0 0.5em;
}

@media (min-width: 768px) {
	.modal .buttons {
		font-size: 0.75em;
	}

	.modal .buttons input {
		line-height: 2em;
		padding-left: 3em;
		padding-right: 3em;
	}
}

.modal .job-description {
	width: 20em;
	margin: 3em auto;
	border: 3px solid currentcolor;
	padding: 1em;
	font-size: 0.75em;
	position: relative;
}

.modal .job-description::before {
	content: "";
	display: block;
	position: absolute;
	bottom: -3px;
	left: -3em;
	right: -3em;
	border-bottom: 3px solid currentcolor;
}

@media (min-width: 768px) {
	.modal .job-description::before {
		left: -6em;
		right: -6em;
	}
}

.modal .job-description::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 100%;
	margin-left: 1em;
	width: 42px;
	height: 53px;
	background: url(../img/job-description-flare.png) 0 0 no-repeat;
	background-size: 100% 100%;
}

.modal .job-description__title {
	font-weight: bold;
	font-size: 1.5em;
	margin: 0 0 0.25em;
}

.modal .job-description__salary::before {
	content: "Salary: \00a0";
	display: inline-block;
	font-weight: bold;
}

.modal .job-description__job_type::before {
	content: "Job type: \00a0";
	display: inline-block;
	font-weight: bold;
}

.modal .job-description__place_of_work::before {
	content: "Place of work: \00a0";
	display: inline-block;
	font-weight: bold;
}

iframe[name="background-updater"] {
	display: none;
	border: 1px solid red;
	width: 100%;
	height: 200px;
}

.ai-warning {
	text-align: center;
	font-size: 1.2em;
	font-weight: 600;
	margin: 0 0 2em;
}

main [data-edit] a {
	display: inline-block;
	margin-left: 0.25em;
	min-width: 1.25em;
	height: 1.25em;
	line-height: 1.25em;
	color: var(--color-gray);
	text-decoration: none;
	text-align: center;
	font-size: 1rem;
	vertical-align: middle;
	cursor: pointer;
}

main [data-edit] a.disabled {
	opacity: 0.5;
	pointer-events: none;
}

main [data-edit] a::before {
	font-family: "Font Awesome 7 Pro";
	font-weight: 900;
}

main [data-edit] a:hover {
	color: var(--primary-color);
}

main [data-edit] a:first-of-type {
	margin-left: 1em;
}

main [data-edit] a.edit::before {
	content: "\f303";
}

main [data-edit] a.lock::before {
	content: "\f3c1";
}

@media (max-width: 767px) {
	main [data-edit] a.info {
		display: none;
	}
}

main [data-edit] a.info::before {
	content: "\f05a";
}

main [data-edit].locked::after {
	content: "Locked against AI editing";
	font-size: 1rem;
	display: inline-block;
	margin-left: 0.5em;
	vertical-align: middle;
	color: var(--primary-color);
}

main [data-edit].locked a.lock::before {
	content: "\f023";
	color: var(--primary-color);
}

.tooltip {
	position: fixed;
	background: #E9E9E9;
	padding: 1em;
	border-radius: 0.5em;
	color: black;
	max-width: 30em;
	box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.4);
	transform: translate3d(-50%, 0, 0);
	margin-top: 1.5em;
	z-index: 999;
	line-height: 1.5em;
	font-size: 0.75em;
}

.tooltip::before {
	content: "";
	display: block;
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -1em;
	border: 1em solid transparent;
	border-bottom-color: #E9E9E9;
}

.tox .tox-edit-area::before {
	border: none!important;
}

.tox-editor-header {
	background: #F6F6F6!important;
}

.tox .tox-toolbar-overlord,
.tox-toolbar__primary {
	background: transparent!important;
}

.tox .tox-tbtn {
	background: transparent!important;
	cursor: pointer;
}

.tox .tox-tbtn svg {
	fill: var(--primary-color)!important;
}

.tox .tox-tbtn:hover,
.tox .tox-tbtn.tox-tbtn--enabled {
	background: rgba(0, 0, 0, 0.1)!important;
}

.discuss-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: center;
}

.discuss-actions a {
	width: 5em;
	text-align: center;
	margin: 2em 1em;
	color: inherit;
	font-weight: 500;
	text-decoration: none;
}

.discuss-actions a::before {
	content: "\e4e7";
	font-family: "Font Awesome 7 Pro";
	font-weight: 900;
	font-size: 2em;
	display: block;
	text-align: center;
	margin-bottom: 0.25em;
}

.discuss-actions a.copy::before {
	content: "\f0c5";
}

.discuss-actions a.return::before {
	content: "\f0e2";
}