@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	src: local("Onest"),
		url("../fonts/onest/regular-var.woff2") format("woff2-variations");
}
* {
	font: inherit;
	margin: 0;
	padding: 0;
}
html {
	--content-max-width: 1520px;
	color-scheme: light dark;
	background: light-dark(#fbfbfb, #333);
	color: light-dark(#000, #ccc);
	font: 16px / 1.4 "Onest", system-ui, sans-serif;
}
@media all and (max-width: 500px) {
	html {
		hyphens: auto;
		overflow-wrap: break-word;
	}
}
body {
	min-inline-size: 320px;
	max-inline-size: 1920px;
	margin-inline: auto;
}
[hidden] {
	display: none !important;
}
/* Hierarchy */
article,
aside,
main,
section,
header,
footer {
	display: flow-root;
}
figure {
	box-sizing: border-box;
	max-inline-size: 100%;
	overflow: auto;
}
figcaption {
	font-size: 1.5rem;
	font-weight: 500;
}
hr {
	margin-block: 2em;
	margin-inline: auto;
	color: inherit;
	border: none;
	border-block-start: .2em dashed currentColor;
	max-inline-size: 90%;
}
/* Line spacing */
:where(h2, h3, h4, h5, h6, p, ul, ol, blockquote, dl, fieldset, table, figure, figcaption, details):not([class], :first-child) {
	margin-block-start: 1em;
}
/* Inline content */
b,
strong {
	font-weight: bold;
}
i,
em {
	font-style: italic;
}
sub,
sup {
	font-size: smaller;
}
img {
	vertical-align: middle;
	max-inline-size: 100%;
	block-size: auto;
}
video {
	max-inline-size: 100%;
	block-size: auto;
}
iframe {
	border: none;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
	break-after: avoid;
	break-inside: avoid;
}
:where(h1, h2, h3, h4, h5, h6):not([class]) {
	line-height: normal;
}
:is(h1, h2, h3, h4, h5, h6) > a {
	text-decoration: none;
	color: inherit;
}
:is(h1, h2, h3, h4, h5, h6) > a:focus-visible {
	text-decoration: underline;
}
h1:not([class]) {
	font-size: 34px;
}
h2:not([class]) {
	font-size: 34px;
}
h3:not([class]) {
	font-size: 24px;
}
@media all and (min-width: 1520px) {
	h1:not([class]) {
		font-size: 60px;
		line-height: 1;
	}
	h2:not([class]) {
		font-size: 50px;
		line-height: 1;
	}
}
@media not all and (min-width: 1520px) {
	h1:not([class]),
	h2:not([class]) {
		font-weight: bold;
	}
}
/* Links */
a img {
	border: none;
}
a {
	color: inherit;
	text-decoration: underline;
}
:where(.main-body) a {
	color: light-dark(#0e3add, #f3e699);
}
/* Lists */
:where(ul, ol):not([class]) {
	margin-inline-start: 1.5em;
}
:where(ul, ol):not([class]) > li:not(:first-child) {
	margin-block-start: .5em;
}
/* Dialogs */
dialog {
	border: none;
	box-sizing: border-box;
}
dialog::backdrop {
	background: rgba(0,0,0,.75);
}
@media print {
	dialog { display: none; }
}
/* Forms */
fieldset {
	border: 1px dashed light-dark(#ccc, #a9a9a9);
	padding: 1em;
}
@media all and (prefers-contrast: more) {
	fieldset {
		border-color: light-dark(#000, #fff);
	}
}
input,
textarea,
select,
option,
button {
	box-sizing: border-box;
}
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]),
textarea {
	padding: .2em .5em;
}
button {
	padding: .25em 1em;
}
select {
	padding-block: .25em;
	padding-inline: .25em .8em;
}
option {
	padding: .2em;
}
input[type="checkbox"],
input[type="radio"] {
	width: 1em;
	height: 1em;
}
/* Tables */
table {
	border-collapse: collapse;
	margin-inline: auto;
}
caption {
	padding-block: .2em;
	padding-inline: 1em;
	text-align: start;
}
td, th {
	padding-block: .2em;
	padding-inline: 1em;
	text-align: start;
	min-width: 6em;
}
th {
	font-weight: bold;
}
thead {
	border-block-end: .1em solid light-dark(#7e7e7e, #e6e6e6);
}
tfoot {
	border-block-start: .1em solid light-dark(#7e7e7e, #e6e6e6);
}
@media all and (prefers-contrast: more) {
	thead {
		border-block-end-color: light-dark(#000, #fff);
	}
	tfoot {
		border-block-start-color: light-dark(#000, #fff);
	}
}
tbody > tr:nth-child(even) {
	background: light-dark(rgba(0,0,0,.08), rgba(255,255,255,.08));
	color: light-dark(#000, #fff);
}
th[scope="row"] {
	text-align: start;
}
thead > tr > th {
	vertical-align: bottom;
}
@supports (margin-trim: block) {
	td, th {
		margin-trim: block;
	}
}
@supports not (margin-trim: block) {
	:where(td, th) > :first-child {
		margin-block-start: 0 !important;
	}
	:where(td, th) > :last-child {
		margin-block-end: 0 !important;
	}
}
/* Quotations */
blockquote:not([class]) {
	padding-inline-start: 1em;
	border-inline-start: 4px solid light-dark(#ddd, #909090);
}
@media all (prefers-contrast: more) {
	blockquote:not([class]) {
		border-inline-start-color: light-dark(#000, #fff);
	}
}
/* Definition lists */
dl:not([class]) > dt {
	font-weight: bold;
}
dl:not([class]) > dt:not(:first-child) {
	margin-block-start: 1em;
}
dl:not([class]) > dd {
	margin-inline-start: 2em;
}
dl:not([class]) > dd:not(:first-child) {
	margin-block-start: .5em;
}
/* Spoilers */
details {
	font-size: 1.125rem;
	padding: 1em;
	background: light-dark(#fff, #111);
	color: light-dark(#000, #ccc);
	border: 1px solid light-dark(#e6e6e6, #111);
	border-radius: 1em;
}
details + details {
	margin-block-start: 2px !important;
}
summary {
	font-weight: 500;
	font-size: 1.5rem;
	cursor: pointer;
}
/* Menu */
.menu-horizontal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em 2em;
}
.menu-horizontal li {
	list-style: none;
	position: relative;
}
.menu-horizontal li:hover > ul,
.menu-horizontal ul:hover,
.menu-horizontal > li:focus-within > ul,
.menu-horizontal > li li:focus-within > ul {
	display: block;
}
.menu-horizontal > li {
	display: inline-block;
}
.menu-horizontal > li ul {
	display: none;
	position: absolute;
}
.menu-horizontal > li > ul {
	inset-inline-start: 0;
	inset-block-start: 100%;
}
.menu-horizontal > li > ul ul {
	inset-inline-start: 100%;
	inset-block-start: 0;
}
.menu-horizontal > li li > :first-child {
	display: block;
	padding-block: .2em;
	padding-inline: .5em;
}
.menu-horizontal .nav-header {
	cursor: default;
}
/* Dialog layout */
.dialog-layout[open],
.dialog-layout:popover-open {
	box-sizing: border-box;
	background: transparent;
	max-inline-size: none;
	max-block-size: none;
	inline-size: 100%;
	block-size: 100%;
	padding: 1em;
	display: grid;
	place-content: safe center;
}
.dialog-layout-inner {
	background: light-dark(#f0f0f0, #333);
	color: light-dark(#000, #fff);
	padding: 1.5em;
	box-shadow: 0 0 3px 3px rgba(255,255,255,.15);
	border-radius: 4px;
	position: relative;
	overflow: auto;
}
@media all and (prefers-contrast: more) {
	.dialog-layout-inner {
		background: light-dark(#fff, #000);
	}
}
.form-close-dialog {
	position: absolute;
	z-index: 1;
	inset-block-start: .5em;
	inset-inline-end: .5em;
}
.form-close-dialog-button {
	background: transparent;
	color: #b24539;
	border: none;
	cursor: pointer;
	width: 1.5em;
	height: 1.5em;
	line-height: 1.5em;
	text-align: center;
	padding: 0;
	transition: background-color 300ms ease-out, color 300ms ease-out;
}
.form-close-dialog-button:hover,
.form-close-dialog-button:focus {
	background-color: #b24539;
	color: #fff;
}
/* .limit-content is a wrapper for normal content, which needs padding on narrow screens. */
.limit-content {
	display: flow-root;
}
@media not print {
	.limit-content {
		max-inline-size: var(--content-max-width);
		margin-inline: auto;
		padding-inline: 1.5rem;
	}
}
/* Alternatively, one can increase paddings to fill space. */
.pad-content {
	display: flow-root;
}
@media not print {
	.pad-content {
		padding-inline: max(1.5rem, (100% - var(--content-max-width)) / 2);
	}
}
/* When to show what */
.mobile-nav-button {
	display: none;
}
@media not all and (min-width: 1520px) {
	.top-nav {
		display: none;
	}
	.mobile-nav-button {
		display: block;
	}
}
/* Command panel */
.page-controls {
	font-size: 20px;
	position: fixed;
	z-index: 9;
	inset-block-start: 16px;
	inset-inline-end: 16px;
	display: flex;
	flex-direction: column;
	align-items: end;
	gap: 16px;
}
.page-controls-button {
	box-sizing: border-box;
	padding-block: 9px;
	padding-inline: 12px;
	background: light-dark(#fff, #161616);
	color: light-dark(#000, #f0f0f0);
	border: .05em solid light-dark(#333, #ccc);
	line-height: normal;
	cursor: pointer;
	transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}
.page-controls-button:hover,
.page-controls-button:focus {
	background-color: light-dark(#333, #ccc);
	color: light-dark(#fff, #000);
}
.page-controls-button > svg {
	vertical-align: -.15em;
}
@media all and (prefers-contrast: more) {
	.page-controls-button {
		border-color: light-dark(#000, #fff);
		background-color: light-dark(#fff, #000);
		color: light-dark(#000, #fff);
	}
	.page-controls-button:hover,
	.page-controls-button:focus {
		background-color: light-dark(#000, #fff);
	}
}
/* Menu dialog */
.dialog-mobile-menu {
	background: transparent;
	max-block-size: none;
	block-size: 100%;
	inline-size: 100%;
	max-inline-size: 400px;
}
.mobile-menu {
	box-sizing: border-box;
	padding: 16px;
	background: light-dark(#f8f8f8, #4d4b45);
	color: light-dark(#000, #fff);
	box-shadow: 2px 0 2px 0 rgba(0,0,0,.2);
	block-size: 100%;
	overflow: auto;
	overscroll-behavior: contain;
}
@media all and (prefers-contrast: more) {
	.mobile-menu {
		background-color: light-dark(#f8f8f8, #2a2926);
	}
}
/* Menu dialog content */
.mobile-menu-itself {
	font-weight: normal;
	padding: 0;
}
.mobile-menu-itself li {
	list-style: none;
	position: relative;
}
.mobile-menu-itself li:hover > ul,
.mobile-menu-itself li:focus > ul {
	display: block;
}
.mobile-menu-itself li > :first-child:focus + ul {
	display: block;
}
.mobile-menu-itself > li ul {
	margin-inline-start: 1.2em;
}
.mobile-menu-itself .separator::after {
	content: ":";
}
.mobile-menu-itself li > a,
.button-mobile-menu-close {
	display: block;
	box-sizing: border-box;
	padding-block: 6px 5px;
	padding-inline: 12px;
	outline: none;
	border: none;
	inline-size: 100%;
	cursor: pointer;
	background: transparent;
	color: inherit;
	text-align: start;
	transition: background-color 300ms ease-out, color 300ms ease-out;
}
.mobile-menu-itself li > a:hover,
.mobile-menu-itself li > a:focus,
.button-mobile-menu-close:hover,
.button-mobile-menu-close:focus {
	background-color: #7c7c7c;
	color: #fff;
}
@media all and (prefers-color-scheme: light) and (prefers-contrast: more) {
	.mobile-menu-itself li > a:hover,
	.mobile-menu-itself li > a:focus,
	.button-mobile-menu-close:hover,
	.button-mobile-menu-close:focus {
		background-color: #000;
	}
}
@media all and (prefers-color-scheme: dark) and (not (prefers-contrast: more)) {
	.mobile-menu-itself li > :first-child:hover,
	.mobile-menu-itself li > :first-child:focus,
	.button-mobile-menu-close:hover,
	.button-mobile-menu-close:focus {
		background-color: #fafafa;
		color: #000;
	}
}
@media all and (prefers-color-scheme: dark) and (prefers-contrast: more) {
	.mobile-menu-itself li > :first-child:hover,
	.mobile-menu-itself li > :first-child:focus,
	.button-mobile-menu-close:hover,
	.button-mobile-menu-close:focus {
		background-color: #fff;
		color: #000;
	}
}
.mobile-menu a {
	text-decoration: none;
	outline: none;
}
@media print {
	.page-controls {
		display: none;
	}
}
/* Template */
.top {
	font-size: 1.125rem;
	padding-block: 1em;
	background: light-dark(#fff, #111);
	color: light-dark(#5a5f6c, #ccc);
	padding-block: 1em;
}
.l-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
}
@media not print {
	@media (max-width: 1599px) {
		.l-top {
			padding-inline-end: 72px;
		}
	}
}
@media print {
	nav {
		display: none !important;
	}
}
.top-1 {
	font-size: 1.25rem;
	display: flex;
	align-items: flex-start;
	gap: 18px;
}
.top-1 > span:nth-child(2) {
	padding-block-start: .2em;
}
.top-logo {
	font-size: 1.5rem;
	font-weight: bold;
	color: light-dark(#121a2d, #eee);
	text-decoration: none;
}
@media all and (prefers-color-scheme: dark) {
	.top-logo {
		font-weight: 600;
	}
}
.main-menu a {
	text-decoration: none;
	transition: color 300ms ease-out;
}
.main-menu a:hover,
.main-menu a:focus {
	color: light-dark(#1d59f9, #a5beff);
	text-decoration: underline;
}
.bottom {
	border-top: 1px solid light-dark(#e6e6e6, #444);
	background: light-dark(#fff, #111);
	color: light-dark(#5a5f6c, #ccc);
	padding-block: 1em;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1em;
}
@media all and (min-width: 1200px) {
	.bottom {
		padding-block: 1.75em;
	}
}
select {
	appearance: none;
	background: url("../images/select.svg") right 24px top 50% / 12px 7px no-repeat transparent;
	color: inherit;
	border: 1px solid light-dark(#e6e6e6, #444);
	padding: .8em 3em .8em 2em;
	border-radius: 2em;
	cursor: pointer;
}
@media all and (prefers-color-scheme: dark) {
	select {
		background-image: url("../images/select-dark.svg");
	}
}
.button-1 {
	display: inline-block;
	font-weight: 500;
	background: #1d59f9;
	color: #fff;
	padding: .9em 1.5em;
	border: 1px solid #1d59f9;
	border-radius: 2em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 300ms ease-out, color 300ms ease-out, border-color 300ms ease-out;
}
.button-1:hover,
.button-1:focus {
	background-color: #131b2e;
	border-color: #131b2e;
}
.button-1:focus-visible {
	text-decoration: underline;
}
.button-1 > img {
	margin-inline-end: 12px;
}
.button-2 {
	display: inline-block;
	font-weight: 500;
	background: transparent;
	color: light-dark(#1d59f9, #84a5ff);
	padding: .9em 1.5em;
	border: 1px solid light-dark(#89a7f7, #84a5ff);
	border-radius: 2em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 300ms ease-out, color 300ms ease-out, border-color 300ms ease-out;
}
.button-2:hover,
.button-2:focus {
	background-color: #131b2e;
	border-color: #131b2e;
	color: #fff;
}
.button-2:focus-visible {
	text-decoration: underline;
}
.button-2 > img {
	margin-inline-end: 12px;
}
.lang-upload {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
main > section {
	padding-block: 2rem;
}
.hl {
	color: light-dark(#1d59f9, #84a5ff);
}
.bottom-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em 6em;
}
.bottom-menu {
	color: light-dark(#1d59f9, #a5beff);
}
.bottom-menu > li {
	list-style: none;
}
main form:not(:first-child) {
	margin-block-start: 1em;
}
.form-unit:not(:first-child) {
	margin-block-start: 1em;
}
form {
	max-width: 500px;
}
form input[type="email"],
form input[type="password"] {
	margin-block-start: .2em;
	width: 100%;
	padding: .5em 1em;
	border-radius: .25em;
	border: 1px solid light-dark(#d7d7d7, #444);
	background: light-dark(#fff, #111);
	color: light-dark(#000, #ccc);
}
form .button-1 {
	width: 100%;
}
.as-link {
	display: inline;
	background: transparent;
	color: inherit;
	border: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
}
.as-link:hover,
.as-link:focus {
	color: light-dark(#1d59f9, #a5beff);
	text-decoration: underline;
}
input[type=file]::file-selector-button {
	display: inline-block;
	font-weight: 500;
	background: transparent;
	color: light-dark(#1d59f9, #84a5ff);
	padding: .9em 1.5em;
	border: 1px solid light-dark(#89a7f7, #84a5ff);
	border-radius: 2em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 300ms ease-out, color 300ms ease-out, border-color 300ms ease-out;
}
input[type=file]::file-selector-button:hover,
input[type=file]::file-selector-button:focus {
	background-color: #131b2e;
	border-color: #131b2e;
	color: #fff;
}
input[type=file]::file-selector-button:focus-visible {
	text-decoration: underline;
}
.upload-form input[type=file] {
	margin-block-start: .2em;
}
