/*
 * Three looks of the same page, chosen by <html data-look="...">:
 * split (default), framed, students.
 * The markup never changes; only these rules do.
 */

:root {
	--inset: max(var(--gutter), calc((100% - 1200px) / 2));
}

/* ---------- Shared home layout ---------- */

.home-section {
	padding-block: var(--section);
	padding-inline: var(--gutter);
}

.home-section__inner {
	max-width: 1200px;
	margin-inline: auto;
}

.home-section h2 {
	font-size: var(--wp--preset--font-size--heading-2);
	margin: 0 0 24px;
}

.home-section--ranking {
	background: var(--navy-dark);
	color: var(--white);
	padding-block: 48px;
}

.home-section--ranking .ranking__badges img {
	width: auto;
	height: 96px;
	background: var(--white);
	padding: 6px;
}

.home-section--open-day {
	background: var(--navy-light);
}

.open-day {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px;
	align-items: center;
}

.open-day h2 a {
	color: var(--navy-dark);
}

.open-day p {
	margin: 0 0 8px;
}

.news-layout {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 48px;
	align-items: start;
}

.news-list .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
}

.news-list .wp-block-post-template > li {
	margin: 0;
}

.news-card .wp-block-post-featured-image {
	aspect-ratio: 3 / 2;
}

.news-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
}

.news-card__body {
	padding: 20px 24px 24px;
	display: grid;
	gap: 8px;
}

.news-card__body > * {
	margin: 0;
}

.news-card .wp-block-post-title {
	font-size: 22px;
	line-height: 1.25;
	font-weight: 600;
}

.student-links {
	background: var(--navy-light);
	border-radius: var(--radius-md);
	padding: 24px;
}

@media (min-width: 960px) {
	.student-links {
		position: sticky;
		top: 24px;
	}
}

.student-links h2 {
	font-size: 28px;
	margin-bottom: 8px;
}

.matura {
	display: grid;
	grid-template-columns: 200px minmax(0, 720px);
	gap: 48px;
	align-items: start;
}

.matura__badge img {
	width: 200px;
	height: auto;
	display: block;
}

.home-section--contests {
	background: var(--navy-light);
}

.contests {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.contests .poster-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	padding: 24px;
}

.contests h2 {
	font-size: 24px;
	line-height: 1.2;
}

.jobs {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px;
	align-items: center;
}

.jobs img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-md);
	display: block;
}

.jobs p {
	margin: 0 0 8px;
}

.notice-strip {
	background: var(--navy-light);
	border-bottom: 1px solid var(--line);
	padding: 16px var(--gutter);
}

.notice-strip__inner {
	max-width: 1200px;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	column-gap: 8px;
	border-left: 4px solid var(--navy);
	padding-left: 16px;
}

@media (max-width: 959px) {
	.open-day,
	.news-layout,
	.matura,
	.contests,
	.jobs {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.matura__badge img {
		width: 140px;
	}
}

@media (max-width: 639px) {
	.news-list .wp-block-post-template,
	.open-day-photos {
		grid-template-columns: minmax(0, 1fr);
	}

	.open-day-photos img:not(:first-child) {
		display: none;
	}
}

/* ---------- Header: shared ---------- */

.site-utility {
	background: var(--navy-dark);
	color: var(--white);
}

.site-utility a {
	color: var(--white);
}

.site-utility :where(a):focus-visible {
	outline-color: var(--gold);
	box-shadow: none;
}

.site-utility p {
	margin: 0;
}

.site-header__main {
	background: var(--white);
	padding-block: 16px;
}

.site-nav {
	background: var(--navy);
	color: var(--white);
}

.site-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding-inline: 16px;
}

.site-nav .wp-block-navigation__submenu-container {
	color: var(--ink);
}

.site-nav :where(.wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content, .wp-block-navigation__responsive-container-open):focus-visible {
	outline-color: var(--gold);
	box-shadow: none;
}

@media (max-width: 959px) {
	.site-utility {
		display: none;
	}
}

@media (max-width: 599px) {
	.site-header__main {
		padding-block: 8px;
	}

	.site-nav {
		padding-block: 4px;
	}
}

/* ---------- Hero: shared ---------- */

.hero {
	display: grid;
	background: var(--navy-dark);
	color: var(--white);
}

/* The photo fills whatever box a look gives it; it never sets the hero's height itself. */
.hero__photo {
	margin: 0;
	min-height: 0;
	position: relative;
	overflow: hidden;
}

.hero__photo img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__title,
.hero__schools {
	position: relative;
	z-index: 2;
}

.hero__eyebrow {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gold);
	margin: 0 0 12px;
}

.hero h1 {
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.05;
	color: inherit;
	margin: 0;
}

.hero__schools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hero__school {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px 20px 8px 8px;
	border-radius: var(--radius-sm);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.2;
	text-decoration: none;
	color: inherit;
}

.hero__school img {
	width: 40px;
	height: 40px;
	padding: 4px;
	border-radius: 50%;
	background: var(--white);
	object-fit: contain;
	flex: none;
}

.hero__school:hover span {
	text-decoration: underline;
}

.hero :where(a):focus-visible {
	outline-color: var(--gold);
	box-shadow: none;
}

/* Small screens: one stack for every look, never text on the photo. */
@media (max-width: 959px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__photo {
		aspect-ratio: 4 / 3;
	}

	.hero__title {
		padding: 24px var(--gutter) 0;
	}

	.hero__schools {
		flex-direction: column;
		padding: 24px var(--gutter) 32px;
	}
}

/* ---------- Look 1: split, text left, photo right ---------- */

@media (min-width: 960px) {
	[data-look="split"] .hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
		min-height: clamp(520px, 70svh, 680px);
	}

	[data-look="split"] .hero__photo {
		grid-column: 2;
		grid-row: 1 / -1;
	}

	[data-look="split"] .hero__photo img {
		object-position: 22% 60%;
	}

	[data-look="split"] .hero__title {
		grid-column: 1;
		grid-row: 1;
		align-self: end;
		padding: 64px 48px 0 var(--inset);
	}

	[data-look="split"] .hero h1 {
		font-size: clamp(48px, 4.2vw, 64px);
	}

	[data-look="split"] .hero__schools {
		grid-column: 1;
		grid-row: 2;
		align-self: start;
		flex-direction: column;
		gap: 12px;
		padding: 32px 48px 64px var(--inset);
	}
}

[data-look="split"] .hero__school {
	background: var(--white);
	color: var(--navy-dark);
}

[data-look="split"] .site-utility {
	background: var(--navy-light);
	color: var(--ink);
}

[data-look="split"] .site-utility a {
	color: var(--ink);
}

[data-look="split"] .site-utility :where(a):focus-visible {
	outline-color: var(--navy-dark);
}

[data-look="split"] .site-nav {
	background: var(--white);
	color: var(--navy-dark);
	border-bottom: 2px solid var(--navy-dark);
}

[data-look="split"] .site-header__main {
	border-bottom: 0;
	padding-bottom: 0;
}

[data-look="split"] .site-nav :where(.wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content, .wp-block-navigation__responsive-container-open):focus-visible {
	outline-color: var(--navy-dark);
	box-shadow: 0 0 0 5px var(--white);
}

[data-look="split"] .news-card,
[data-look="split"] .contests .poster-card,
[data-look="split"] .student-links {
	border-radius: var(--radius-sm);
	box-shadow: none;
}

[data-look="split"] .news-card:hover {
	box-shadow: none;
	border-color: var(--navy);
}

[data-look="split"] .home-section--open-day,
[data-look="split"] .home-section--contests {
	background: var(--white);
	border-top: 1px solid var(--line);
}

[data-look="split"] .home-section--matura {
	background: var(--navy-dark);
	color: var(--white);
}

[data-look="split"] .home-section--matura h2 {
	color: var(--white);
}

[data-look="split"] .home-section--matura .matura__badge img {
	background: var(--white);
	border-radius: var(--radius-sm);
	padding: 8px;
}

[data-look="split"] .home-section--matura :where(a):focus-visible {
	outline-color: var(--gold);
	box-shadow: none;
}

[data-look="split"] .home-section--jobs {
	background: var(--navy-light);
}

[data-look="split"] .home-section {
	padding-block: 64px;
}

/* ---------- Look 2: framed photo with a white title card ---------- */

[data-look="framed"] body {
	background: var(--navy-light);
}

[data-look="framed"] .hero {
	background: transparent;
	color: var(--navy-dark);
	max-width: 1200px;
	margin-inline: auto;
	padding: 32px var(--gutter) 0;
	box-sizing: content-box;
}

[data-look="framed"] .hero__photo img {
	border-radius: var(--radius-md);
	object-position: 40% 60%;
}

[data-look="framed"] .hero::after {
	content: "";
	z-index: 1;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-raised);
}

[data-look="framed"] .hero__eyebrow {
	color: var(--navy);
	font-size: 15px;
}

[data-look="framed"] .hero h1 {
	font-size: var(--wp--preset--font-size--heading-1);
}

[data-look="framed"] .hero__schools {
	flex-direction: column;
	gap: 0;
}

[data-look="framed"] .hero__school {
	min-height: 72px;
	padding: 12px 0;
	gap: 16px;
	font-size: 20px;
	color: var(--navy-dark);
	border-top: 1px solid var(--line);
	border-radius: 0;
}

[data-look="framed"] .hero__school::after {
	content: "→";
	margin-left: auto;
	color: var(--navy);
}

[data-look="framed"] .hero__school img {
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 0;
}

[data-look="framed"] .hero :where(a):focus-visible {
	outline-color: var(--navy-dark);
	box-shadow: 0 0 0 5px var(--white);
}

@media (min-width: 960px) {
	[data-look="framed"] .hero {
		grid-template-columns: minmax(0, 1fr) min(560px, 100%) 40px;
		grid-template-rows: 1fr auto auto;
	}

	[data-look="framed"] .hero__photo {
		grid-column: 1 / -1;
		grid-row: 1 / 3;
		aspect-ratio: 2 / 1;
	}

	[data-look="framed"] .hero::after {
		grid-column: 2;
		grid-row: 2 / 4;
	}

	[data-look="framed"] .hero__title {
		grid-column: 2;
		grid-row: 2;
		padding: 40px 40px 24px;
	}

	[data-look="framed"] .hero__schools {
		grid-column: 2;
		grid-row: 3;
		padding: 0 40px 32px;
	}
}

@media (max-width: 959px) {
	[data-look="framed"] .hero {
		grid-template-rows: auto 32px auto auto;
	}

	[data-look="framed"] .hero__photo {
		grid-row: 1 / 3;
		grid-column: 1;
	}

	[data-look="framed"] .hero::after {
		grid-column: 1;
		grid-row: 2 / 5;
		margin-inline: 12px;
	}

	[data-look="framed"] .hero__title {
		grid-column: 1;
		grid-row: 3;
		padding: 0 36px 16px;
	}

	[data-look="framed"] .hero__schools {
		grid-column: 1;
		grid-row: 4;
		padding: 0 36px 24px;
	}
}

[data-look="framed"] .site-utility {
	display: none;
}

[data-look="framed"] .site-header__row {
	justify-content: center;
	position: relative;
}

[data-look="framed"] .site-brand img {
	width: 64px;
	height: 64px;
}

[data-look="framed"] .site-nav {
	background: var(--white);
	color: var(--navy-dark);
	border-bottom: 1px solid var(--line);
}

[data-look="framed"] .site-nav .wp-block-navigation {
	justify-content: center;
}

[data-look="framed"] .site-header__main {
	border-bottom: 0;
}

[data-look="framed"] .site-nav :where(.wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content, .wp-block-navigation__responsive-container-open):focus-visible {
	outline-color: var(--navy-dark);
	box-shadow: 0 0 0 5px var(--white);
}

@media (min-width: 600px) {
	[data-look="framed"] .site-header__actions {
		position: absolute;
		right: 0;
	}
}

[data-look="framed"] .home-section,
[data-look="framed"] .home-section--open-day,
[data-look="framed"] .home-section--contests {
	background: transparent;
}

[data-look="framed"] .home-section--ranking {
	padding-top: 96px;
}

[data-look="framed"] .home-section__inner {
	background: var(--white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	padding: clamp(24px, 4vw, 48px);
}

[data-look="framed"] .home-section--ranking {
	color: var(--ink);
}

[data-look="framed"] .ranking__list li {
	border-left-color: var(--line);
}

[data-look="framed"] .ranking__list strong {
	color: var(--navy);
}

[data-look="framed"] .home-section__inner {
	box-sizing: border-box;
}

[data-look="framed"] .news-card,
[data-look="framed"] .contests .poster-card {
	box-shadow: none;
}

[data-look="framed"] .home-section--contests .home-section__inner {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

[data-look="framed"] .home-section + .home-section {
	padding-top: 0;
}

/* ---------- Look 3: students, home page v2 from the Narwik Design System project ---------- */

/* The v2 palette, for this look only (ui_kits/website/HomeV2.jsx in the design system project). */
[data-look="students"] {
	--s-navy: #13285c;
	--s-ink: #141a2e;
	--s-muted: #5b6478;
	--s-line: #dde1ea;
	--s-ground: #f4f5f8;
	--s-gold: #e8b33a;
	--students-header: 215px;
	--students-band: 233px;
}

/* One typeface for the whole page, as in v2. */
[data-look="students"] body {
	background: var(--s-ground);
	color: var(--s-ink);
	font-family: var(--font-display);
	font-weight: 500;
}

[data-look="students"] :is(h1, h2, h3) {
	color: var(--s-ink);
}

/* The school name sits on the photo (wide screens) or on navy (small screens), so it stays white at every width. */
[data-look="students"] .hero h1 {
	color: var(--white);
}

@media (min-width: 960px) {
	/* Header: a thin white frame on the photo; inside it the quick links bar, logo, menu and a white Rekrutacja button. */
	[data-look="students"] .site-header {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 20px;
		box-sizing: border-box;
		width: calc(100% - 2 * var(--gutter));
		max-width: 1000px;
		margin: 16px auto 0;
		border: 1px solid rgb(255 255 255 / 0.55);
		border-radius: 6px;
		color: var(--white);
		background: transparent;
	}

	/* With no photo underneath: full-width navy behind the frame. */
	[data-look="students"] body:not(.home) .site-header {
		box-shadow: 0 0 0 100vmax var(--s-navy);
		clip-path: inset(-16px -100vmax 0);
		background: var(--s-navy);
		margin-bottom: 16px;
	}

	[data-look="students"] :is(.site-header__main, .site-header__row, .site-nav) {
		display: contents;
	}

	[data-look="students"] .site-utility {
		grid-column: 1 / -1;
		grid-row: 1;
		background: transparent;
		border-bottom: 1px solid rgb(255 255 255 / 0.3);
		padding: 4px 14px;
		font-size: 13px;
		font-weight: 600;
	}

	[data-look="students"] .site-utility > * {
		max-width: none;
	}

	[data-look="students"] .site-utility .wp-block-group {
		column-gap: 18px !important;
	}

	[data-look="students"] .site-utility a {
		display: inline-flex;
		align-items: center;
		min-height: 32px;
		color: var(--white);
		text-decoration: none;
	}

	[data-look="students"] .site-utility a:hover {
		text-decoration: underline;
	}

	[data-look="students"] .site-brand {
		grid-area: 2 / 1;
		padding: 12px 0 12px 20px;
		gap: 10px;
		color: var(--white);
	}

	[data-look="students"] .site-brand img {
		width: 48px;
		height: 48px;
		background: var(--white);
		border-radius: 50%;
		padding: 2px;
		box-sizing: border-box;
	}

	[data-look="students"] .site-brand__name {
		display: block;
		font-weight: 700;
		font-size: 14px;
		line-height: 1.25;
	}

	[data-look="students"] .site-brand__name span {
		font-weight: 700;
	}

	[data-look="students"] .site-header__actions {
		grid-area: 2 / 3;
		padding-right: 20px;
	}

	[data-look="students"] .site-header__cta {
		margin: 0;
	}

	[data-look="students"] .site-header__cta .wp-block-button__link {
		background: var(--white);
		color: var(--s-navy);
		border-radius: 4px;
		padding: 0 18px;
		font-family: var(--font-display);
		font-weight: 700;
		font-size: 14px;
	}

	[data-look="students"] .site-header__cta .wp-block-button__link:hover {
		background: var(--s-ground);
	}

	[data-look="students"] .language-switcher__toggle {
		background: transparent;
		color: var(--white);
		border-color: rgb(255 255 255 / 0.55);
	}

	[data-look="students"] .language-switcher__toggle:hover {
		background: rgb(255 255 255 / 0.12);
		border-color: var(--white);
	}

	/* Menu: in the second row of the frame up to 1279 px, next to the logo from 1280 px. */
	[data-look="students"] .site-header .wp-block-navigation {
		grid-area: 3 / 1 / 4 / -1;
		justify-self: start;
		margin: 0;
		padding: 0 12px 8px;
		max-width: none;
		font-size: 14px;
		font-weight: 600;
		color: var(--white);
	}

	[data-look="students"] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding: 10px 8px;
		color: var(--white);
		text-decoration: none;
	}

	[data-look="students"] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
	[data-look="students"] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-expanded="true"] {
		box-shadow: inset 0 -2px 0 var(--white);
	}

	/* Submenu panel: white, with a navy "[" bracket on the left. */
	[data-look="students"] .site-header .wp-block-navigation .wp-block-navigation__submenu-container {
		background: var(--white);
		color: var(--s-ink);
		border: 0;
		border-radius: 6px;
		box-shadow: 0 18px 40px rgb(20 26 46 / 0.25);
		padding: 16px 20px 16px 34px;
		min-width: 280px;
		font-size: 15px;
		font-weight: 600;
	}

	[data-look="students"] .site-header .wp-block-navigation .wp-block-navigation__submenu-container::before {
		content: "";
		position: absolute;
		left: 14px;
		top: 16px;
		bottom: 16px;
		width: 10px;
		border: 2px solid var(--s-navy);
		border-right: 0;
		border-radius: 3px 0 0 3px;
		pointer-events: none;
	}

	[data-look="students"] .site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		color: var(--s-ink);
		padding: 8px 4px;
		min-height: 40px;
		text-decoration: none;
	}

	[data-look="students"] .site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
		text-decoration: underline;
	}

	[data-look="students"] .site-header :where(a, button):focus-visible {
		outline-color: var(--gold);
		box-shadow: 0 0 0 6px var(--s-ink);
	}

	[data-look="students"] .site-header .wp-block-navigation__submenu-container :where(a, button):focus-visible {
		outline-color: var(--s-navy);
		box-shadow: 0 0 0 5px var(--white);
	}

	/* Order: photo, ranking band (together the first screen), notice, the rest. */
	[data-look="students"] main.home {
		display: flex;
		flex-direction: column;
		margin-block-start: 0;
	}

	[data-look="students"] main.home > * {
		order: 3;
		margin-block: 0;
	}

	[data-look="students"] main.home > .hero {
		order: 0;
	}

	[data-look="students"] main.home > .home-section--ranking {
		order: 1;
	}

	[data-look="students"] main.home > .notice-strip {
		order: 2;
	}

	/* The photo fills the first screen: it reaches behind the header and under the ranking band and fades into the page ground at the bottom. */
	[data-look="students"] .hero {
		position: relative;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 1fr auto auto 1fr;
		min-height: max(420px, calc(100svh - var(--students-header) - var(--students-band)));
		background: transparent;
	}

	[data-look="students"] .hero__photo {
		position: absolute;
		inset: calc(-1 * var(--students-header)) 0 calc(-1 * var(--students-band));
		z-index: 0;
	}

	[data-look="students"] .hero__photo img {
		object-position: 50% 35%;
	}

	[data-look="students"] .hero__photo::after {
		content: "";
		position: absolute;
		inset: 0;
		background:
			linear-gradient(180deg, rgb(244 245 248 / 0) 0, rgb(244 245 248 / 0) 58%, rgb(244 245 248 / 0.55) 80%, var(--s-ground) 100%),
			radial-gradient(ellipse 60% 34% at 50% 44%, rgb(20 26 46 / 0.5) 0, rgb(20 26 46 / 0.5) 50%, rgb(20 26 46 / 0) 100%),
			linear-gradient(180deg, rgb(20 26 46 / 0.6) 0, rgb(20 26 46 / 0.2) 30%, rgb(20 26 46 / 0.35) 55%, rgb(20 26 46 / 0) 85%);
	}

	[data-look="students"] :is(.hero__title, .hero__schools) {
		justify-self: center;
		width: min(920px, calc(100% - 2 * var(--gutter)));
		text-align: center;
	}

	[data-look="students"] .hero__title {
		grid-row: 2;
	}

	[data-look="students"] .hero__schools {
		grid-row: 3;
		justify-content: center;
		gap: 12px;
		padding: 28px 0 0;
	}

	[data-look="students"] .hero h1 {
		color: var(--white);
		font-size: clamp(44px, 7vw, 88px);
		line-height: 1.02;
		text-shadow: 0 2px 24px rgb(20 26 46 / 0.35);
	}

	/* The notice after the first screen: a white card with a red bar. */
	[data-look="students"] main.home > .notice-strip {
		background: transparent;
		border: 0;
		padding: 40px var(--gutter) 0;
	}
}

@media (min-width: 1280px) {
	[data-look="students"] {
		--students-header: 131px;
	}

	[data-look="students"] .site-header .wp-block-navigation {
		grid-area: 2 / 2;
		justify-self: end;
		padding: 0;
	}
}

/* The address above the name: a small white box, black text. */
[data-look="students"] .hero__eyebrow {
	display: block;
	width: fit-content;
	margin: 0 auto 20px;
	padding: 6px 12px;
	border-radius: 4px;
	background: var(--white);
	color: var(--s-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

/* The two schools as glass pills. */
[data-look="students"] .hero__school {
	padding: 8px 16px 8px 8px;
	background: rgb(255 255 255 / 0.12);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45);
	border-radius: 6px;
	backdrop-filter: blur(4px);
	font-size: 15px;
	font-weight: 700;
}

[data-look="students"] .hero__school:hover {
	background: rgb(255 255 255 / 0.2);
}

/* Ranking band: navy only as wide as the cards (+16 px), white cards with a gold bar. */
[data-look="students"] .home-section--ranking {
	position: relative;
	z-index: 1;
	background: transparent;
	padding: 0 var(--gutter);
}

[data-look="students"] .ranking {
	box-sizing: border-box;
	max-width: 1032px;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	background: var(--s-navy);
	padding: 28px 16px;
}

[data-look="students"] .ranking__badges {
	order: 2;
	justify-content: center;
}

[data-look="students"] .home-section--ranking .ranking__badges img {
	height: 48px;
	padding: 4px;
	border-radius: 4px;
}

[data-look="students"] .ranking__list {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 16px;
}

[data-look="students"] .ranking__list li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 0.25em;
	align-items: baseline;
	align-content: start;
	background: var(--white);
	color: var(--s-muted);
	border: 0;
	border-radius: 6px;
	padding: 18px 20px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

[data-look="students"] .ranking__list :is(strong, .ranking__unit) {
	grid-row: 1;
	display: inline;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.1;
	color: var(--s-navy);
}

[data-look="students"] .ranking__list li::before {
	content: "";
	grid-area: 2 / 1 / 3 / -1;
	width: 28px;
	height: 2px;
	margin: 10px 0 8px;
	background: var(--s-gold);
}

[data-look="students"] .ranking__where {
	grid-area: 3 / 1 / 4 / -1;
}

[data-look="students"] .notice-strip {
	background: transparent;
	border: 0;
}

[data-look="students"] .notice-strip__inner {
	max-width: 1000px;
	box-sizing: border-box;
	background: var(--white);
	border-left: 3px solid var(--red);
	border-radius: 4px;
	padding: 18px 20px;
	color: var(--s-ink);
	font-size: 15px;
}

[data-look="students"] .notice-strip__inner p {
	margin: 0;
}

[data-look="students"] .notice-strip a {
	color: var(--s-navy);
	font-weight: 700;
}

/* Sections: a 1000 px column as in v2, cards without shadow. */
[data-look="students"] .home-section:not(.home-section--ranking) {
	padding-block: 56px;
}

[data-look="students"] .home-section:not(.home-section--ranking) + .home-section {
	padding-top: 0;
}

[data-look="students"] .home-section__inner {
	max-width: 1000px;
}

[data-look="students"] .home-section h2 {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}

[data-look="students"] .home-section--open-day,
[data-look="students"] .home-section--contests {
	background: transparent;
}

[data-look="students"] :is(.open-day, .matura, .jobs, .contests .poster-card) {
	box-sizing: border-box;
	background: var(--white);
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	padding: clamp(24px, 4vw, 40px);
}

[data-look="students"] .open-day h2 a {
	color: var(--s-ink);
}

[data-look="students"] .open-day-photos img,
[data-look="students"] .jobs img {
	border-radius: 6px;
}

[data-look="students"] .matura {
	border-left: 3px solid var(--s-gold);
	border-radius: 4px;
}

[data-look="students"] .contests h2 {
	font-size: 21px;
}

[data-look="students"] .contests summary {
	font-weight: 700;
	color: var(--s-navy);
	cursor: pointer;
}

[data-look="students"] .label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--s-muted);
}

[data-look="students"] .more-link a {
	font-size: 15px;
	font-weight: 700;
	color: var(--s-navy);
}

/* News: one large item (2:1 photo), under it a list of title and date. Uczeń in a narrow column. */
@media (min-width: 960px) {
	[data-look="students"] .news-layout {
		grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
		column-gap: 48px;
	}
}

[data-look="students"] .news-list .wp-block-post-template {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

[data-look="students"] .news-card,
[data-look="students"] .news-card:hover {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

[data-look="students"] .news-card__body {
	padding: 13px 0;
	gap: 4px;
	border-bottom: 1px solid var(--s-line);
}

[data-look="students"] .news-card .wp-block-post-date {
	font-size: 11px;
	font-weight: 600;
	color: var(--s-muted);
}

[data-look="students"] .news-card .wp-block-post-title {
	font-weight: 700;
}

[data-look="students"] .news-card .wp-block-post-title a {
	color: var(--s-ink);
	text-decoration: none;
}

[data-look="students"] .news-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

[data-look="students"] .news-list li:first-child .wp-block-post-featured-image {
	aspect-ratio: 2 / 1;
	border-radius: 6px;
	overflow: hidden;
}

[data-look="students"] .news-list li:first-child .news-card__body {
	padding-top: 18px;
}

[data-look="students"] .news-list li:first-child .wp-block-post-title {
	font-size: 21px;
	line-height: 1.25;
}

[data-look="students"] .news-list li:first-child .wp-block-post-excerpt {
	font-size: 14px;
	color: var(--s-muted);
	font-weight: 500;
}

[data-look="students"] .news-list li:not(:first-child) :is(.wp-block-post-featured-image, .wp-block-post-excerpt) {
	display: none;
}

[data-look="students"] .news-list li:not(:first-child) .news-card__body {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

[data-look="students"] .news-list li:not(:first-child) .wp-block-post-title {
	font-size: 15px;
	font-weight: 600;
}

[data-look="students"] .news-list li:not(:first-child) .wp-block-post-date {
	order: 2;
	flex: none;
}

/* A slight zoom of the photo on hover. */
[data-look="students"] :is(.news-card .wp-block-post-featured-image, .open-day-photos, .jobs) {
	overflow: hidden;
}

[data-look="students"] :is(.news-card .wp-block-post-featured-image img, .open-day-photos img) {
	transition: transform 450ms var(--ease);
}

[data-look="students"] .news-card:hover .wp-block-post-featured-image img,
[data-look="students"] .open-day-photos img:hover {
	transform: scale(1.05);
}

[data-look="students"] .student-links {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

[data-look="students"] .student-links h2 {
	font-size: 32px;
	margin-bottom: 24px;
}

[data-look="students"] .student-links ul {
	border: 0;
}

[data-look="students"] .student-links li,
[data-look="students"] .student-links li + li {
	border-top: 1px solid var(--s-line);
}

[data-look="students"] .student-links a {
	min-height: 51px;
	padding: 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--s-ink);
}

[data-look="students"] .student-links a::after {
	color: var(--red);
	font-weight: 700;
}

[data-look="students"] .student-links a:hover {
	text-decoration: underline;
}

/* Cards slide in on scroll (no script; off when the visitor prefers reduced motion). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		[data-look="students"] :is(.open-day, .news-card, .student-links, .matura, .contests .poster-card, .jobs) {
			animation: students-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}

@keyframes students-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Subpages: the title in a navy block as wide as the ranking band, with a gold line under it. */
[data-look="students"] .page-head {
	box-sizing: border-box;
	width: calc(100% - 2 * var(--gutter));
	max-width: 1032px;
	margin-inline: auto;
	background-color: var(--s-navy) !important;
	border-bottom: 3px solid var(--s-gold);
	padding: 28px 16px !important;
}

[data-look="students"] .page-head h1 {
	color: var(--white);
}

[data-look="students"] .page-head .wp-block-post-date {
	color: rgb(255 255 255 / 0.8);
}

[data-look="students"] .site-footer {
	background: var(--s-ink) !important;
}

/* The grey label colour is too faint on the dark footer; a soft white keeps the contrast above 4.5:1. */
[data-look="students"] .site-footer .label {
	color: rgb(255 255 255 / 0.75);
}

/* ---------- Small screens: one header row for every look ---------- */

@media (max-width: 959px) {
	/* The navigation block shows its menu button only below 600 px; the theme shows it up to 959 px. */
	:root .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	:root .site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	:root .site-header {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		background: var(--white);
		border-bottom: 1px solid var(--line);
	}

	:root .site-header > * {
		margin-block: 0;
	}

	:root .site-header__main {
		border: 0;
		padding-right: 8px;
	}

	:root .site-header .site-nav {
		align-self: stretch;
		display: flex;
		align-items: center;
		background: var(--white);
		color: var(--navy-dark);
		border: 0;
		padding: 0 max(8px, calc(var(--gutter) - 12px)) 0 0;
	}

	:root .site-header .wp-block-navigation__responsive-container-open {
		color: var(--navy-dark);
	}

	:root .site-header .wp-block-navigation__responsive-container-open:focus-visible {
		outline-color: var(--navy-dark);
		box-shadow: 0 0 0 5px var(--white);
	}

	:root .site-header__cta .wp-block-button__link {
		white-space: nowrap;
	}

	/* The open menu covers the screen: its submenus are indented lists, not floating cards. */
	:root .site-header .is-menu-open .wp-block-navigation__submenu-container {
		min-width: 0;
		margin-left: 4px;
		padding: 0 0 0 16px;
		border: 0;
		border-left: 2px solid var(--line);
		border-radius: 0;
		box-shadow: none;
	}

	:root .site-header .is-menu-open :where(a, button):focus-visible {
		outline-color: var(--navy-dark);
		box-shadow: 0 0 0 5px var(--white);
	}

	[data-look="framed"] .site-header__row {
		justify-content: space-between;
	}

	[data-look="framed"] .site-brand img {
		width: 48px;
		height: 48px;
	}
}

/* ---------- Look 3: students, phone and tablet (below 960 px), as the v2 mobile version ---------- */
/* The theme rule stays: photo on top, text under it, never text on the photo. */

@media (max-width: 959px) {
	/* Header: a navy bar, the round logo with the name, a white Rekrutacja button and a white menu button. */
	[data-look="students"] .site-header {
		background: var(--s-navy);
		border-bottom: 3px solid var(--s-gold);
	}

	[data-look="students"] .site-header__main,
	[data-look="students"] .site-header .site-nav {
		background: var(--s-navy);
		padding-block: 10px;
	}

	[data-look="students"] .site-brand {
		gap: 10px;
		color: var(--white);
	}

	[data-look="students"] .site-brand img {
		width: 40px;
		height: 40px;
		background: var(--white);
		border-radius: 50%;
		padding: 2px;
		box-sizing: border-box;
	}

	[data-look="students"] .site-brand__name {
		display: block;
		font-weight: 700;
		font-size: 13px;
		line-height: 1.25;
		color: var(--white);
	}

	[data-look="students"] .site-brand__name span {
		font-weight: 700;
	}

	[data-look="students"] .site-header__cta .wp-block-button__link {
		background: var(--white);
		color: var(--s-navy);
		border-radius: 4px;
		padding: 0 14px;
		font-weight: 700;
		font-size: 14px;
	}

	[data-look="students"] .language-switcher__toggle {
		background: transparent;
		color: var(--white);
		border-color: rgb(255 255 255 / 0.55);
	}

	[data-look="students"] .site-header .wp-block-navigation__responsive-container-open {
		min-width: var(--tap);
		min-height: var(--tap);
		justify-content: center;
		align-items: center;
		border-radius: 4px;
		background: var(--white);
		color: var(--s-navy);
	}

	[data-look="students"] .site-header :where(a, button):focus-visible,
	[data-look="students"] .site-header .wp-block-navigation__responsive-container-open:focus-visible {
		outline: 3px solid var(--gold);
		outline-offset: 2px;
		box-shadow: 0 0 0 6px var(--s-ink);
	}

	/* Open menu: a white screen, 18 px items, submenus with a navy "[" bracket. */
	[data-look="students"] .site-header .is-menu-open {
		background: var(--white) !important;
		color: var(--s-ink) !important;
	}

	[data-look="students"] .site-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		font-size: 18px;
		font-weight: 700;
		color: var(--s-ink);
		min-height: 56px;
		display: flex;
		align-items: center;
	}

	[data-look="students"] .site-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		border-bottom: 1px solid var(--s-line);
		width: 100%;
	}

	[data-look="students"] .site-header .is-menu-open .wp-block-navigation__submenu-container {
		position: relative;
		margin: 0 0 16px 4px;
		padding: 4px 0 4px 20px;
		border: 0;
	}

	[data-look="students"] .site-header .is-menu-open .wp-block-navigation__submenu-container::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		width: 8px;
		border: 2px solid var(--s-navy);
		border-right: 0;
		border-radius: 3px 0 0 3px;
	}

	[data-look="students"] .site-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		min-height: var(--tap);
		display: flex;
		align-items: center;
		font-size: 16px;
		font-weight: 600;
		color: var(--s-ink);
	}

	[data-look="students"] .site-header .is-menu-open :where(a, button):focus-visible {
		outline: 3px solid var(--s-navy);
		outline-offset: 2px;
		box-shadow: 0 0 0 5px var(--white);
	}

	/* A 4:3 photo with a navy block under it: the address in a white box, the name centred, the schools as pills. */
	[data-look="students"] main.home {
		display: flex;
		flex-direction: column;
	}

	[data-look="students"] main.home > * {
		order: 3;
		margin-block: 0;
	}

	[data-look="students"] main.home > .hero {
		order: 0;
	}

	[data-look="students"] main.home > .home-section--ranking {
		order: 1;
	}

	[data-look="students"] main.home > .notice-strip {
		order: 2;
		padding: 24px var(--gutter) 0;
	}

	[data-look="students"] .hero {
		background: var(--s-navy);
	}

	[data-look="students"] .hero__title {
		padding: 28px var(--gutter) 0;
		text-align: center;
	}

	[data-look="students"] .hero h1 {
		color: var(--white);
		font-size: clamp(34px, 9vw, 48px);
		line-height: 1.05;
	}

	[data-look="students"] .hero__eyebrow {
		margin-bottom: 16px;
	}

	[data-look="students"] .hero__schools {
		padding: 20px var(--gutter) 28px;
		gap: 10px;
	}

	[data-look="students"] .hero__school {
		justify-content: center;
		min-height: var(--tap);
		backdrop-filter: none;
	}

	/* A full-width ranking band, cards 2 × 2, badges under them. */
	[data-look="students"] .home-section--ranking {
		padding: 0;
	}

	[data-look="students"] .ranking {
		max-width: none;
		padding: 0 var(--gutter) 24px;
	}

	[data-look="students"] .ranking__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	[data-look="students"] .ranking__list li {
		padding: 14px 14px 16px;
	}

	[data-look="students"] .ranking__list :is(strong, .ranking__unit) {
		font-size: 22px;
	}

	/* Sections: smaller gaps, the same card layout. */
	[data-look="students"] .home-section:not(.home-section--ranking) {
		padding-block: 32px;
	}

	[data-look="students"] .home-section h2,
	[data-look="students"] .student-links h2 {
		font-size: 26px;
	}

	[data-look="students"] :is(.open-day, .matura, .jobs, .contests .poster-card) {
		padding: 20px;
	}

	[data-look="students"] .news-layout {
		gap: 40px;
	}

	[data-look="students"] .news-list li:first-child .wp-block-post-title {
		font-size: 19px;
	}

	[data-look="students"] .news-list li:not(:first-child) .news-card__body {
		flex-direction: column;
		gap: 2px;
	}

	[data-look="students"] .news-list li:not(:first-child) .wp-block-post-date {
		order: 0;
	}

	[data-look="students"] .student-links a {
		min-height: var(--tap);
		font-size: 16px;
	}

	[data-look="students"] .page-head {
		width: 100%;
		max-width: none;
		padding: 24px var(--gutter) !important;
	}
}

/* ---------- Look switcher ---------- */

.look-switcher {
	position: fixed;
	left: calc(16px + env(safe-area-inset-left, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 1000;
	font-family: var(--wp--preset--font-family--body);
	color: var(--ink);
}

.look-switcher__toggle {
	min-height: var(--tap);
	padding: 0 20px;
	border: 2px solid var(--white);
	border-radius: var(--radius-md);
	background: var(--navy-dark);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 18px;
	cursor: pointer;
	box-shadow: var(--shadow-raised);
}

.look-switcher__toggle:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
	box-shadow: none;
}

.look-switcher__panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	width: 360px;
	max-height: 70svh;
	overflow-y: auto;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-raised);
	padding: 16px;
}

.look-switcher__options {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
}

.look-switcher__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--navy-dark);
	padding: 0;
	margin-bottom: 8px;
}

.look-switcher__option {
	display: grid;
	grid-template-columns: auto 64px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-height: 56px;
	padding: 8px;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.look-switcher__option:hover {
	background: var(--navy-light);
}

.look-switcher__option:has(input:checked) {
	background: var(--navy-light);
	box-shadow: inset 3px 0 0 var(--navy);
}

.look-switcher__option input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--navy);
}

.look-switcher__text {
	display: grid;
}

.look-switcher__name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 18px;
	color: var(--navy-dark);
}

.look-switcher__hint {
	font-size: 15px;
	color: var(--muted);
	line-height: 1.3;
}

/* Wireframe thumbnails: navy = photo, dark navy = text panel. */
.look-switcher__thumb {
	width: 64px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background-color: var(--white);
	background-repeat: no-repeat;
}

.look-switcher__thumb--split {
	background-image: linear-gradient(var(--navy-dark), var(--navy-dark)), linear-gradient(var(--navy), var(--navy));
	background-size: 50% 100%, 50% 100%;
	background-position: 0 0, 100% 0;
}

.look-switcher__thumb--framed {
	background-color: var(--navy-light);
	background-image: linear-gradient(var(--white), var(--white)), linear-gradient(var(--navy), var(--navy));
	background-size: 26px 14px, 56px 26px;
	background-position: 8px 22px, 4px 4px;
}

.look-switcher__thumb--students {
	background-image: linear-gradient(var(--white), var(--white)), linear-gradient(var(--white), var(--white)), linear-gradient(var(--navy), var(--navy)), linear-gradient(var(--navy-dark), var(--navy-dark));
	background-size: 24px 6px, 24px 6px, 100% 26px, 100% 14px;
	background-position: 4px 30px, 34px 30px, 0 0, 0 100%;
}

.look-switcher__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.look-switcher__action {
	min-height: 44px;
	padding: 0 14px;
	border: 2px solid var(--navy);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--navy-dark);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

.look-switcher__action:hover {
	background: var(--navy-light);
}

.look-switcher__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 639px) {
	/* Hidden from sight only: screen readers still read the look's name. */
	.look-switcher__name-long {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.look-switcher__panel {
		position: fixed;
		left: 16px;
		right: 16px;
		width: auto;
		bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	}
}
