/*
 * Nostryfikuj.pl theme.
 * Concept: an official file of documents, read calmly. Ink-blue type on cool paper,
 * one red seal used for approval and the ".pl", serif headings like a diploma,
 * monospace for figures (fees, dates, scores).
 */

:root {
	--nf-paper: #f3f5f8;
	--nf-surface: #ffffff;
	--nf-ink: #14304f;
	--nf-ink-2: #3e5068;
	--nf-ink-3: #66768a;
	--nf-rule: #d6dde5;
	--nf-tint: #e7edf4;
	--nf-seal: #c8283a;
	--nf-seal-ink: #a31f30;
	--nf-mint: #0f7a66;
	--nf-mint-tint: #e3f2ee;
	--nf-focus: #2563c9;

	--nf-display: "Source Serif 4", Georgia, "Times New Roman", serif;
	--nf-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--nf-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--nf-step--1: 0.875rem;
	--nf-step-0: 1.0625rem;
	--nf-step-1: 1.1875rem;
	--nf-step-2: 1.375rem;
	--nf-step-3: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
	--nf-step-4: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
	--nf-step-5: clamp(1.875rem, 1rem + 4vw, 3.5rem);

	--nf-radius: 6px;
	--nf-radius-lg: 10px;
	--nf-shadow: 0 1px 2px rgb(20 48 79 / 0.06), 0 10px 28px -14px rgb(20 48 79 / 0.22);
	--nf-gutter: max(16px, env(safe-area-inset-left, 0px));
	--nf-gutter-r: max(16px, env(safe-area-inset-right, 0px));
	--nf-max: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--nf-paper);
	color: var(--nf-ink);
	font-family: var(--nf-body);
	font-size: var(--nf-step-0);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--nf-ink);
	text-decoration-color: color-mix(in srgb, var(--nf-ink) 35%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--nf-seal-ink);
	text-decoration-color: currentColor;
}

:focus-visible {
	outline: 3px solid var(--nf-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--nf-display);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.01em;
	text-wrap: balance;
	overflow-wrap: break-word;
	margin: 0;
}

@media (max-width: 480px) {
	h1,
	h2 {
		hyphens: auto;
	}
}

p {
	margin: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.nf-wrap {
	width: 100%;
	max-width: calc(var(--nf-max) + 48px);
	margin-inline: auto;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}

@media (max-width: 600px) {
	.nf-wrap {
		padding-left: var(--nf-gutter);
		padding-right: var(--nf-gutter-r);
	}
}

.nf-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--nf-ink);
	color: #fff;
	border-radius: var(--nf-radius);
}

.nf-skip:focus {
	top: 12px;
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* Top bar and header                                                  */
/* ------------------------------------------------------------------ */

.nf-topbar {
	background: var(--nf-ink);
	color: #e4ecf5;
	font-size: var(--nf-step--1);
}

.nf-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
	padding-block: 6px;
}

.nf-topbar__promo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	min-width: 0;
}

.nf-topbar__brand {
	font-family: var(--nf-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	padding: 2px 8px;
	border: 1px solid rgb(255 255 255 / 0.35);
	border-radius: 999px;
	color: #fff;
}

.nf-topbar a {
	color: #fff;
	font-weight: 500;
	text-decoration-color: rgb(255 255 255 / 0.5);
}

.nf-topbar a:hover {
	color: #ffd5da;
}

.nf-langs {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--nf-mono);
	font-size: 0.8125rem;
	font-weight: 500;
}

.nf-langs a {
	display: inline-block;
	padding: 3px 7px;
	border-radius: 4px;
	text-decoration: none;
	letter-spacing: 0.03em;
}

.nf-langs--top a {
	color: #c9d6e6;
}

.nf-langs--top a:hover {
	color: #fff;
	background: rgb(255 255 255 / 0.1);
}

.nf-langs--top a[aria-current] {
	color: var(--nf-ink);
	background: #fff;
}

.nf-langs--menu {
	display: none;
}

.nf-header {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 50;
	background: rgb(255 255 255 / 0.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--nf-rule);
}

.nf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.nf-logo {
	display: block;
	flex: none;
	line-height: 0;
}

.nf-logo img {
	width: 196px;
	height: auto;
}

.nf-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 2px 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nf-nav__list a {
	display: block;
	padding: 8px 10px;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--nf-radius);
	color: var(--nf-ink);
}

.nf-nav__list a:hover {
	background: var(--nf-tint);
	color: var(--nf-ink);
}

.nf-nav__list .current-menu-item > a,
.nf-nav__list .current_page_item > a,
.nf-nav__list .current-page-ancestor > a {
	box-shadow: inset 0 -2px 0 var(--nf-seal);
	border-radius: 0;
}

.nf-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	font: 500 0.9375rem var(--nf-body);
	color: var(--nf-ink);
	background: var(--nf-surface);
	border: 1px solid var(--nf-rule);
	border-radius: var(--nf-radius);
	cursor: pointer;
}

@media (max-width: 1080px) {
	.nf-menu-toggle {
		display: inline-flex;
	}

	.nf-nav {
		display: none;
		position: absolute;
		inset: 100% 0 auto 0;
		background: var(--nf-surface);
		border-bottom: 1px solid var(--nf-rule);
		box-shadow: var(--nf-shadow);
		padding: 12px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
	}

	.nf-nav.is-open {
		display: block;
	}

	html:not(.has-js) .nf-nav {
		display: block;
		position: static;
		box-shadow: none;
		border: 0;
		padding: 0 0 12px;
	}

	.nf-header__inner {
		flex-wrap: wrap;
	}

	.nf-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.nf-nav__list a {
		padding: 12px 8px;
		font-size: 1.0625rem;
		border-bottom: 1px solid var(--nf-tint);
		border-radius: 0;
	}

	.nf-langs--menu {
		display: flex;
		margin-top: 12px;
	}

	.nf-langs--menu a {
		padding: 8px 12px;
		border: 1px solid var(--nf-rule);
	}

	.nf-langs--menu a[aria-current] {
		background: var(--nf-ink);
		color: #fff;
		border-color: var(--nf-ink);
	}
}

@media (max-width: 720px) {
	.nf-topbar__text {
		display: none;
	}

	.nf-logo img {
		width: 168px;
	}

	.nf-header__inner {
		min-height: 64px;
	}
}

/* ------------------------------------------------------------------ */
/* Buttons and small parts shared with the plugin                      */
/* ------------------------------------------------------------------ */

.nf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	font: 600 1rem/1.2 var(--nf-body);
	color: #fff;
	background: var(--nf-ink);
	border: 1px solid var(--nf-ink);
	border-radius: var(--nf-radius);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nf-button:hover {
	color: #fff;
	background: #0c2139;
}

.nf-button--seal {
	background: var(--nf-seal);
	border-color: var(--nf-seal);
}

.nf-button--seal:hover {
	background: var(--nf-seal-ink);
	border-color: var(--nf-seal-ink);
}

.nf-button--ghost {
	color: var(--nf-ink);
	background: transparent;
	border-color: color-mix(in srgb, var(--nf-ink) 35%, transparent);
}

.nf-button--ghost:hover {
	color: var(--nf-ink);
	background: var(--nf-surface);
	border-color: var(--nf-ink);
}

.nf-eyebrow {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-bottom: 14px;
	font-family: var(--nf-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nf-ink-2);
}

.nf-eyebrow a {
	color: inherit;
}

/* ------------------------------------------------------------------ */
/* Page layout                                                         */
/* ------------------------------------------------------------------ */

.nf-page__header {
	background: var(--nf-surface);
	border-bottom: 1px solid var(--nf-rule);
	padding-block: 48px 40px;
}

.nf-page__title {
	font-size: var(--nf-step-5);
	max-width: 22ch;
}

.nf-page__lead {
	margin-top: 16px;
	max-width: 62ch;
	font-size: var(--nf-step-1);
	line-height: 1.55;
	color: var(--nf-ink-2);
}

.nf-page__body {
	padding-block: 48px 72px;
}

.nf-page__body.has-toc {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.nf-page__aside {
	position: sticky;
	top: 100px;
}

.nf-toc {
	font-size: 0.9375rem;
}

.nf-toc__title {
	font-family: var(--nf-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nf-ink-3);
	margin-bottom: 10px;
}

.nf-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--nf-rule);
	counter-reset: toc;
}

.nf-toc li {
	counter-increment: toc;
}

.nf-toc a {
	display: block;
	padding: 6px 0 6px 14px;
	margin-left: -1px;
	border-left: 2px solid transparent;
	text-decoration: none;
	color: var(--nf-ink-2);
	line-height: 1.35;
}

.nf-toc a::before {
	content: "§ " counter(toc) "  ";
	font-family: var(--nf-mono);
	font-size: 0.75rem;
	color: var(--nf-ink-3);
	white-space: pre;
}

.nf-toc a:hover {
	color: var(--nf-ink);
	border-left-color: var(--nf-seal);
}

@media (max-width: 960px) {
	.nf-page__body.has-toc {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.nf-page__aside {
		position: static;
	}

	.nf-toc ol {
		columns: 2;
		column-gap: 24px;
	}
}

@media (max-width: 560px) {
	.nf-toc ol {
		columns: 1;
	}
}

/* Running text */

.nf-prose {
	min-width: 0;
	max-width: 72ch;
}

.nf-page__body.is-wide .nf-prose {
	max-width: none;
}

.nf-page__body.is-wide .nf-prose > p,
.nf-page__body.is-wide .nf-prose > ul,
.nf-page__body.is-wide .nf-prose > ol,
.nf-page__body.is-wide .nf-prose > h2,
.nf-page__body.is-wide .nf-prose > h3 {
	max-width: 72ch;
}

.nf-prose > * + * {
	margin-top: 1.1em;
}

.nf-prose h2 {
	font-size: var(--nf-step-4);
	margin-top: 2.2em;
	padding-top: 0.9em;
	border-top: 1px solid var(--nf-rule);
	scroll-margin-top: 110px;
}

.nf-prose h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.nf-prose h3 {
	font-size: var(--nf-step-2);
	margin-top: 1.8em;
}

.nf-prose h2 + *,
.nf-prose h3 + * {
	margin-top: 0.7em;
}

.nf-prose ul,
.nf-prose ol {
	padding-left: 1.3em;
}

.nf-prose li + li {
	margin-top: 0.4em;
}

.nf-prose li::marker {
	color: var(--nf-seal);
}

.nf-prose ol > li::marker {
	font-family: var(--nf-mono);
	font-size: 0.9em;
	font-weight: 500;
}

.nf-prose strong {
	font-weight: 700;
}

.nf-prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--nf-seal);
	font-family: var(--nf-display);
	font-size: var(--nf-step-1);
}

.nf-prose code {
	font-family: var(--nf-mono);
	font-size: 0.9em;
}

.nf-prose figure {
	margin-inline: 0;
}

.nf-prose .wp-block-table,
.nf-prose .nf-table-wrap {
	overflow-x: auto;
	margin-inline: 0;
}

.nf-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	background: var(--nf-surface);
	border: 1px solid var(--nf-rule);
}

.nf-prose th,
.nf-prose td {
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--nf-rule);
}

.nf-prose thead th {
	font-size: 0.8125rem;
	font-family: var(--nf-mono);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nf-ink-2);
	background: var(--nf-tint);
}

.nf-prose figcaption {
	margin-top: 8px;
	font-size: var(--nf-step--1);
	color: var(--nf-ink-3);
}

/* Callouts, legal references, FAQ */

.nf-callout {
	padding: 18px 20px;
	background: var(--nf-surface);
	border: 1px solid var(--nf-rule);
	border-left: 4px solid var(--nf-ink);
	border-radius: var(--nf-radius);
}

.nf-callout > * + * {
	margin-top: 0.6em;
}

.nf-callout--warn {
	border-left-color: var(--nf-seal);
}

.nf-callout--ok {
	border-left-color: var(--nf-mint);
}

.nf-callout__title {
	font-weight: 700;
}

.nf-law {
	font-family: var(--nf-mono);
	font-size: 0.8125rem;
	color: var(--nf-ink-2);
}

.nf-todo {
	display: inline-block;
	padding: 1px 6px;
	font-family: var(--nf-mono);
	font-size: 0.75rem;
	color: var(--nf-seal-ink);
	background: #fbe9eb;
	border-radius: 3px;
}

.nf-prose details {
	background: var(--nf-surface);
	border: 1px solid var(--nf-rule);
	border-radius: var(--nf-radius);
	padding: 0 18px;
}

.nf-prose details + details {
	margin-top: 8px;
}

.nf-prose summary {
	padding: 14px 28px 14px 0;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	position: relative;
}

.nf-prose summary::-webkit-details-marker {
	display: none;
}

.nf-prose summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 12px;
	font-family: var(--nf-mono);
	font-size: 1.25rem;
	color: var(--nf-seal);
}

.nf-prose details[open] summary::after {
	content: "–";
}

.nf-prose details > :last-child {
	margin-bottom: 16px;
}

.nf-prose details > * + * {
	margin-top: 0.7em;
}

.nf-sources {
	font-size: 0.9375rem;
	word-break: break-word;
}

.nf-note {
	font-size: var(--nf-step--1);
	color: var(--nf-ink-2);
	padding-top: 12px;
	border-top: 1px dashed var(--nf-rule);
}

/* Steps: a real sequence, so they are numbered */

.nf-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
	display: grid;
	gap: 0;
}

.nf-steps > li {
	counter-increment: step;
	position: relative;
	padding: 0 0 28px 64px;
	margin: 0;
}

.nf-steps > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -2px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	font-family: var(--nf-mono);
	font-weight: 500;
	color: var(--nf-ink);
	background: var(--nf-surface);
	border: 1.5px solid var(--nf-ink);
	border-radius: 50%;
}

.nf-steps > li::after {
	content: "";
	position: absolute;
	left: 20px;
	top: 44px;
	bottom: 4px;
	width: 1.5px;
	background: var(--nf-rule);
}

.nf-steps > li:last-child {
	padding-bottom: 0;
}

.nf-steps > li:last-child::after {
	display: none;
}

.nf-steps h3 {
	font-size: var(--nf-step-2);
	margin: 0 0 6px;
}

.nf-steps p {
	color: var(--nf-ink-2);
}

/* ------------------------------------------------------------------ */
/* Front page                                                          */
/* ------------------------------------------------------------------ */

.nf-hero {
	background: var(--nf-surface);
	border-bottom: 1px solid var(--nf-rule);
	overflow: hidden;
}

.nf-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 56px;
	align-items: center;
	padding-block: 64px 72px;
}

.nf-hero__title {
	font-size: clamp(2.25rem, 1.4rem + 3vw, 3.375rem);
	line-height: 1.08;
	max-width: 20ch;
}

.nf-hero__title em {
	font-style: normal;
	color: var(--nf-seal);
}

.nf-hero__lead {
	margin-top: 20px;
	max-width: 54ch;
	font-size: var(--nf-step-1);
	color: var(--nf-ink-2);
}

.nf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.nf-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--nf-rule);
	list-style: none;
	padding-left: 0;
}

.nf-hero__facts li {
	display: flex;
	flex-direction: column;
}

.nf-hero__facts strong {
	font-family: var(--nf-mono);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.nf-hero__facts span {
	font-size: var(--nf-step--1);
	color: var(--nf-ink-2);
}

/* The dossier: a checklist of documents with an approval seal */

.nf-dossier {
	position: relative;
	margin: 0 0 40px;
	padding: 28px 28px 76px;
	background:
		linear-gradient(var(--nf-surface), var(--nf-surface)) padding-box,
		repeating-linear-gradient(135deg, var(--nf-rule) 0 6px, transparent 6px 12px) border-box;
	border: 1px solid transparent;
	border-radius: 4px;
	box-shadow: 0 1px 0 var(--nf-rule), 10px 12px 0 -1px var(--nf-tint), 10px 12px 0 0 var(--nf-rule), var(--nf-shadow);
	transform: rotate(-1.2deg);
}

.nf-dossier__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1.5px solid var(--nf-ink);
	font-family: var(--nf-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nf-ink-2);
}

.nf-dossier__title {
	margin-top: 14px;
	font-family: var(--nf-display);
	font-weight: 600;
	font-size: var(--nf-step-2);
	line-height: 1.25;
}

.nf-dossier__list {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.nf-dossier__list li {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--nf-rule);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.nf-dossier__list .nf-icon {
	color: var(--nf-mint);
	margin-top: 1px;
}

.nf-dossier__stamp {
	position: absolute;
	right: 28px;
	bottom: -44px;
	width: 132px;
	height: 132px;
	display: grid;
	place-items: center;
	text-align: center;
	color: var(--nf-seal);
	border: 2.5px solid currentColor;
	border-radius: 50%;
	transform: rotate(-14deg);
	background: rgb(255 255 255 / 0.72);
	box-shadow: inset 0 0 0 5px rgb(255 255 255 / 0.72), inset 0 0 0 6.5px currentColor;
}

.nf-dossier__stamp strong {
	display: block;
	font-family: var(--nf-display);
	font-size: 2rem;
	line-height: 1;
}

.nf-dossier__stamp span {
	display: block;
	max-width: 92px;
	font-family: var(--nf-mono);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

@media (max-width: 960px) {
	.nf-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
		padding-block: 44px 64px;
	}

	.nf-dossier {
		max-width: 520px;
		margin-right: 24px;
	}
}

/* Sections */

.nf-section {
	padding-block: 72px;
}

.nf-section--tight {
	padding-block: 48px;
}

.nf-section--white {
	background: var(--nf-surface);
	border-block: 1px solid var(--nf-rule);
}

.nf-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 12px 32px;
	margin-bottom: 32px;
}

.nf-section__title {
	font-size: var(--nf-step-4);
	max-width: 30ch;
}

.nf-section__intro {
	margin-top: 10px;
	max-width: 60ch;
	color: var(--nf-ink-2);
}

.nf-section__more {
	font-weight: 600;
	white-space: nowrap;
}

/* Professions */

.nf-professions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nf-profession {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 4px 14px;
	align-items: start;
	height: 100%;
	padding: 18px;
	background: var(--nf-surface);
	border: 1px solid var(--nf-rule);
	border-radius: var(--nf-radius-lg);
	text-decoration: none;
	color: var(--nf-ink);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.nf-profession:hover {
	color: var(--nf-ink);
	border-color: var(--nf-ink);
	transform: translateY(-2px);
}

.nf-profession__icon {
	grid-row: span 2;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	color: var(--nf-ink);
	background: var(--nf-tint);
	border-radius: 50%;
}

.nf-profession__name {
	font-family: var(--nf-display);
	font-size: var(--nf-step-1);
	font-weight: 600;
	line-height: 1.25;
}

.nf-profession__path {
	font-size: 0.875rem;
	color: var(--nf-ink-2);
	line-height: 1.4;
}

@media (max-width: 960px) {
	.nf-professions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.nf-professions {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Process on the front page */

.nf-process {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
	border-top: 1.5px solid var(--nf-ink);
}

.nf-process li {
	counter-increment: step;
	padding: 18px 20px 4px 0;
	position: relative;
}

.nf-process li + li {
	padding-left: 20px;
	border-left: 1px solid var(--nf-rule);
}

.nf-process li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	margin-bottom: 10px;
	font-family: var(--nf-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--nf-seal-ink);
}

.nf-process h3 {
	font-size: var(--nf-step-1);
	margin-bottom: 6px;
}

.nf-process p {
	font-size: 0.9375rem;
	color: var(--nf-ink-2);
}

@media (max-width: 960px) {
	.nf-process {
		grid-template-columns: minmax(0, 1fr);
		border-top: 0;
	}

	.nf-process li,
	.nf-process li + li {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 12px;
		padding: 16px 0;
		border-left: 0;
		border-top: 1px solid var(--nf-rule);
	}

	.nf-process li::before {
		grid-row: span 2;
		margin: 0;
	}
}

/* Map and ranking teaser */

.nf-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

@media (max-width: 960px) {
	.nf-split {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Exams */

.nf-exams {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nf-exam {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 24px;
	background: var(--nf-surface);
	border: 1px solid var(--nf-rule);
	border-radius: var(--nf-radius-lg);
}

.nf-exam__code {
	font-family: var(--nf-mono);
	font-size: 1.75rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--nf-ink);
	line-height: 1;
}

.nf-exam__name {
	font-size: var(--nf-step-1);
}

.nf-exam p {
	font-size: 0.9375rem;
	color: var(--nf-ink-2);
}

.nf-exam .nf-arrow-link {
	margin-top: auto;
}

@media (max-width: 1100px) {
	.nf-exams {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.nf-exams {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Newsletter band */

.nf-band {
	background: var(--nf-tint);
	border-top: 1px solid var(--nf-rule);
}

.nf-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: center;
}

@media (max-width: 960px) {
	.nf-band__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

/* ------------------------------------------------------------------ */
/* University page                                                     */
/* ------------------------------------------------------------------ */

.nf-uni__city {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	color: var(--nf-ink-2);
}

.nf-uni__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 56px;
	align-items: start;
	padding-block: 48px 24px;
}

.nf-uni__facts {
	position: sticky;
	top: 100px;
	padding: 24px;
	background: var(--nf-surface);
	border: 1px solid var(--nf-rule);
	border-radius: var(--nf-radius-lg);
}

.nf-uni__links {
	display: grid;
	gap: 10px;
	margin-top: 20px;
}

.nf-uni__geo {
	margin-top: 16px;
	font-size: 0.9375rem;
}

.nf-uni__geo a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

@media (max-width: 960px) {
	.nf-uni__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.nf-uni__facts {
		position: static;
		order: -1;
	}
}

.nf-factsheet {
	margin: 0;
	display: grid;
	gap: 18px;
}

.nf-factsheet > div {
	display: grid;
	gap: 4px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--nf-rule);
}

.nf-factsheet dt {
	font-family: var(--nf-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nf-ink-3);
}

.nf-factsheet dd {
	margin: 0;
	display: grid;
	gap: 4px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.nf-factsheet__big {
	font-family: var(--nf-mono);
	font-size: 1.5rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.nf-factsheet__note {
	font-size: 0.875rem;
	color: var(--nf-ink-2);
}

.nf-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
	font-size: 0.9375rem;
}

.nf-checklist li {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
}

.nf-checklist .nf-icon {
	margin-top: 4px;
}

.nf-checklist .is-yes .nf-icon {
	color: var(--nf-mint);
}

.nf-checklist .is-no {
	color: var(--nf-ink-3);
}

/* ------------------------------------------------------------------ */
/* Lists, search, pagination                                           */
/* ------------------------------------------------------------------ */

.nf-searchform {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
	max-width: 560px;
}

.nf-searchform input {
	flex: 1 1 240px;
	min-height: 46px;
	padding: 10px 14px;
	font: inherit;
	color: var(--nf-ink);
	background: var(--nf-surface);
	border: 1px solid var(--nf-rule);
	border-radius: var(--nf-radius);
}

.nf-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 40px 0 0;
}

.nf-pagination a,
.nf-pagination span {
	display: inline-block;
	min-width: 44px;
	padding: 10px 14px;
	text-align: center;
	text-decoration: none;
	background: var(--nf-surface);
	border: 1px solid var(--nf-rule);
	border-radius: var(--nf-radius);
}

.nf-pagination .current {
	background: var(--nf-ink);
	color: #fff;
	border-color: var(--nf-ink);
}

.nf-quicklinks {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
	font-size: var(--nf-step-1);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.nf-footer {
	background: var(--nf-ink);
	color: #c9d6e6;
	padding-block: 56px 32px;
	font-size: 0.9375rem;
}

.nf-footer a {
	color: #fff;
	text-decoration-color: rgb(255 255 255 / 0.35);
}

.nf-footer a:hover {
	color: #ffd5da;
}

.nf-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 40px 56px;
}

.nf-footer__brand img {
	width: 196px;
	height: auto;
}

.nf-footer__brand p {
	margin-top: 16px;
	max-width: 42ch;
}

.nf-footer__brand .nf-langs {
	margin-top: 20px;
}

.nf-langs--footer a {
	color: #c9d6e6;
	border: 1px solid rgb(255 255 255 / 0.2);
}

.nf-langs--footer a[aria-current] {
	color: var(--nf-ink);
	background: #fff;
}

.nf-footer__title {
	margin-bottom: 12px;
	font-family: var(--nf-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #93a6be;
}

.nf-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 24px;
}

.nf-footer__list li {
	break-inside: avoid;
	padding-bottom: 8px;
	overflow-wrap: break-word;
	hyphens: auto;
}

.nf-footer__mm .nf-button {
	margin-top: 16px;
	color: var(--nf-ink);
	background: #fff;
	border-color: #fff;
}

.nf-footer__mm .nf-button:hover {
	color: var(--nf-ink);
	background: #ffd5da;
	border-color: #ffd5da;
}

.nf-footer__newsletter > p:not(.nf-footer__title) {
	margin-bottom: 14px;
}

.nf-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 40px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgb(255 255 255 / 0.15);
	font-size: 0.8125rem;
	color: #93a6be;
}

.nf-footer__legal p:first-child {
	max-width: 80ch;
}

@media (max-width: 960px) {
	.nf-footer__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.nf-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.nf-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

.nf-footer__operator {
	text-align: right;
	line-height: 1.7;
}

@media (max-width: 720px) {
	.nf-footer__operator {
		text-align: left;
	}
}

.nf-factsheet__cat {
	display: grid;
	grid-template-columns: 3.2rem minmax(0, 1fr);
	align-items: baseline;
	gap: 10px;
}

.nf-factsheet__cat > span:last-child {
	display: grid;
	gap: 2px;
}

.nf-factsheet__cat.is-low .nf-factsheet__big,
.nf-low {
	color: var(--nf-seal-ink);
}
