/*
 * The looks of the same page, chosen by <html data-look="...">: students (the default, the school's choice)
 * and three variants of it, runway, light and horizon, which only override some of its rules at the end of the file.
 * 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;
}

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

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

.home-aside 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 {
	box-sizing: border-box;
	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: auto minmax(0, 1fr) auto;
	gap: 16px 32px;
	align-items: center;
}

.jobs__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: var(--radius-md);
	background: var(--navy);
	color: var(--gold);
}

.jobs__icon svg {
	width: 32px;
	height: 32px;
}

.jobs h2 {
	margin: 0 0 4px;
	font-size: 24px;
	line-height: 1.2;
}

.jobs p {
	margin: 0;
}

.jobs .label {
	margin-bottom: 4px;
}

@media (max-width: 959px) {
	.open-day,
	.news-layout,
	.matura,
	.contests {
		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;
	}

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

	.jobs__icon {
		width: 48px;
		height: 48px;
	}

	.jobs > .more-link {
		grid-column: 1 / -1;
	}
}

/* ---------- 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-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;
}

/* The arrow belongs to its item: tucked into the item's padding, with the usual gap before the next one. */
.site-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon {
	margin-inline: -8px 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__schools {
	position: relative;
	z-index: 2;
}

.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.php serves the closer phone crop here, with the aircraft in front. */
	.hero__photo {
		aspect-ratio: 4 / 3;
	}

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

/* ---------- Base look (students): home page v2 from the Narwik Design System project ---------- */

/* The v2 palette (ui_kits/website/HomeV2.jsx in the design system project). */
[data-look] {
	--s-navy: #13285c;
	--s-ink: #141a2e;
	--s-muted: #55607a;
	--s-line: #dde1ea;
	--s-ground: #f4f5f8;
	--s-gold: #e8b33a;
	--students-header: 131px;
}

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

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

@media (min-width: 960px) {
	/* Header: a navy frame floating on the photo; inside it the quick links bar, logo, menu and a white Rekrutacja button. */
	[data-look] .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: 1100px;
		margin: 16px auto 0;
		border: 1px solid rgb(255 255 255 / 0.25);
		border-radius: 6px;
		color: var(--white);
		background: rgb(19 40 92 / 0.92);
		backdrop-filter: blur(12px);
		box-shadow: 0 12px 32px rgb(20 26 46 / 0.25);
	}

	/* On the home page the frame floats on the photo, so the photo starts at the top of the page whatever the header's height. */
	[data-look] body.home .site-header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
	}

	/* With no photo underneath: full-width navy behind the frame, painted by border-image so the open submenus are not cut off. */
	[data-look] body:not(.home) .site-header {
		border-image: linear-gradient(var(--s-navy) 0 0) fill 0 / 0 / 16px 100vmax 0;
		outline: 1px solid rgb(255 255 255 / 0.25);
		outline-offset: -1px;
		box-shadow: none;
		margin-bottom: 16px;
	}

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

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

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

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

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

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

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

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

	[data-look] .site-brand__name {
		display: block;
		font-weight: 700;
		font-size: 16px;
		line-height: 1.2;
	}

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

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

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

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

	[data-look] .site-header__cta .wp-block-button__link:hover {
		background: var(--s-ground);
		text-decoration: underline;
	}

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

	[data-look] .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] .site-header .wp-block-navigation {
		grid-area: 3 / 1 / 4 / -1;
		justify-self: start;
		margin: 0 !important;
		padding: 0 12px 6px;
		max-width: none;
		font-size: 15px;
		font-weight: 600;
		color: var(--white);
	}

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

	[data-look] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon {
		margin-inline: -4px 4px;
	}

	[data-look] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
	[data-look] .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(--s-gold);
	}

	/* Submenu panel: white, with a navy "[" bracket on the left. */
	[data-look] .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;
		font-size: 16px;
		font-weight: 600;
	}

	/* WordPress narrows an open panel to 200px with a more specific rule. */
	[data-look] .site-header .wp-block-navigation .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
		min-width: 280px;
	}

	[data-look] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .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;
	}

	/* The next level has no bracket, and it opens past the panel's padding instead of over it. */
	[data-look] .site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
		padding: 12px 20px;
	}

	[data-look] .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:nth-last-child(-n + 4) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,
	[data-look] .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container:has(> :nth-child(9)) > .wp-block-navigation-item:nth-child(odd) > .wp-block-navigation__submenu-container {
		right: calc(100% + 34px);
	}

	[data-look] .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container:has(> :nth-child(9)) > .wp-block-navigation-item:nth-child(even) > .wp-block-navigation__submenu-container {
		right: auto;
		left: calc(100% + 20px);
	}

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

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

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

	[data-look] .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, then the two schools and the ranking on one navy band (the first screen), then the rest. */
	[data-look] main.home {
		display: flex;
		flex-direction: column;
		margin-block-start: 0;
	}

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

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

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

	/* The photo runs behind the header and shows the building with the 18-08 jet in front; no text on it. */
	[data-look] .hero__photo {
		height: calc(var(--students-header) + clamp(340px, 100svh - 390px, 44vw));
	}

	[data-look] .hero__photo img {
		object-position: 50% 78%;
	}

	[data-look] .hero__schools {
		justify-content: center;
		gap: 12px;
		padding: 36px var(--gutter);
	}
}

@media (min-width: 960px) and (max-width: 1279px) {
	[data-look] {
		--students-header: 191px;
	}
}

@media (min-width: 1280px) {
	[data-look] .site-header .wp-block-navigation {
		grid-area: 2 / 2;
		justify-self: end;
		padding: 0;
	}
}

/* The navy band under the photo: the two schools (the school's name is in the header). */
[data-look] .hero {
	background: var(--s-navy);
}

/* The two schools as outlined pills. */
[data-look] .hero__school {
	padding: 6px 18px 6px 6px;
	background: rgb(255 255 255 / 0.08);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4);
	border-radius: 6px;
	font-size: 17px;
	font-weight: 700;
	transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

[data-look] .hero__school:hover {
	background: rgb(255 255 255 / 0.16);
	box-shadow: inset 0 0 0 1px var(--white);
}

[data-look] .hero__school img {
	width: 44px;
	height: 44px;
}

/* Ranking: on the same navy band, gold places between thin lines, the two badges at the end. */
[data-look] .home-section--ranking {
	background: var(--s-navy);
	padding: 0 var(--gutter) 32px;
}

[data-look] .ranking {
	box-sizing: border-box;
	max-width: 1000px;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 32px;
	padding-top: 28px;
	border-top: 1px solid rgb(255 255 255 / 0.2);
}

[data-look] .ranking__badges {
	grid-area: 1 / 2;
}

[data-look] .home-section--ranking .ranking__badges img {
	width: auto;
	height: 80px;
	padding: 4px;
	border-radius: 4px;
}

[data-look] .ranking__badges a {
	display: block;
	border-radius: 4px;
	transition: transform 200ms var(--ease);
}

[data-look] .ranking__badges a:hover {
	transform: translateY(-2px);
}

[data-look] .ranking__list {
	grid-area: 1 / 1;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

[data-look] .ranking__list li {
	padding: 2px 20px;
	border-left: 1px solid rgb(255 255 255 / 0.2);
	color: rgb(255 255 255 / 0.88);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

[data-look] .ranking__list li:first-child {
	border-left: 0;
	padding-left: 0;
}

[data-look] .ranking__list :is(strong, .ranking__unit) {
	display: inline;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 30px;
	line-height: 1.15;
	color: var(--s-gold);
}

[data-look] .ranking__where {
	display: block;
	margin-top: 2px;
}

[data-look] :is(.hero, .home-section--ranking) :where(a):focus-visible {
	outline-color: var(--gold);
	box-shadow: none;
}

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

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

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

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

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

[data-look] :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);
}

/* Open day: the heading is the link; three photos as one large and two small. */
@media (min-width: 960px) {
	[data-look] .open-day {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}

	[data-look] .matura {
		grid-template-columns: 160px minmax(0, 1fr);
	}
}

[data-look] .open-day h2 {
	font-size: 30px;
	line-height: 1.2;
}

[data-look] .open-day h2 a {
	color: var(--s-navy);
	text-decoration: none;
}

[data-look] .open-day h2 a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

[data-look] .open-day p {
	font-size: 18px;
}

[data-look] .open-day-photos img {
	border-radius: 6px;
}

@media (min-width: 640px) {
	[data-look] .open-day-photos {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 8px;
	}

	[data-look] .open-day-photos img:first-child {
		grid-row: span 2;
		height: 100%;
		aspect-ratio: auto;
	}
}

[data-look] .jobs__icon {
	background: var(--s-navy);
	color: var(--s-gold);
}

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

[data-look] .matura__badge img {
	width: 160px;
}

/* Contests: one poster card per row, so the text gets a readable line length. */
[data-look] .contests {
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

[data-look] .contests .poster-card {
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 32px;
}

[data-look] .contests .poster-card img {
	width: 180px;
	border-color: var(--s-line);
}

[data-look] .contests h2 {
	font-size: 24px;
}

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

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

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

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

	[data-look] .home-aside {
		margin-top: 0;
	}
}

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

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

[data-look] .news-card__body {
	margin-top: 0;
	padding: 14px 0;
	gap: 4px;
	border-bottom: 1px solid var(--s-line);
}

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

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

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

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

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

[data-look] .news-list li:first-child .news-card__body {
	padding-top: 16px;
	padding-bottom: 20px;
}

[data-look] .news-list li:first-child .wp-block-post-title {
	font-size: 26px;
	line-height: 1.2;
}

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

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

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

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

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

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

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

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

[data-look] .home-aside {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

[data-look] .home-aside h2 {
	font-size: 32px;
	margin-bottom: 24px;
}

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

/* Lists of posts and wide tables end at the edges of that frame. */
[data-look] body:not(.home) {
	--wp--style--global--wide-size: 1100px;
}

[data-look] body:not(.home) main .wp-block-query {
	max-width: 1100px;
}

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

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

/* The quiet search button would be navy on navy here, so it turns white. */
[data-look] .page-head .wp-block-search .wp-element-button:not(.has-background) {
	color: var(--white);
	border-color: var(--white);
}

[data-look] .page-head .wp-block-search .wp-element-button:not(.has-background):hover {
	color: var(--s-navy);
	background: var(--white);
}

/* In a grid of posts the text lines up with the photo, and a post without a photo gets a gold line in its place. */
[data-look] .wp-block-post-template .news-card > .wp-block-group {
	padding-inline: 0 !important;
	border-bottom: 1px solid var(--s-line);
}

[data-look] .wp-block-post-template .news-card:not(:has(.wp-block-post-featured-image)) {
	border-top: 3px solid var(--s-gold);
}

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

/* The footer's columns end at the edges of the header frame. */
[data-look] .site-footer > .wp-block-columns {
	max-width: 1100px !important;
}

/* The grey label colour is too faint on the dark footer; a soft white keeps the contrast above 4.5:1. */
[data-look] .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;
	}

	/* Every submenu row is one tap target high; a label on two lines keeps some air above and below. */
	:root .site-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		box-sizing: border-box;
		min-height: var(--tap);
		padding-block: 6px;
		line-height: 1.3;
	}

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

/* ---------- Base look (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] .site-header {
		background: var(--s-navy);
		border-bottom: 3px solid var(--s-gold);
	}

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

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

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

	[data-look] .site-brand__name {
		display: block;
		font-weight: 700;
		font-size: 14px;
		line-height: 1.2;
		color: var(--white);
	}

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

	[data-look] .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: 16px;
	}

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

	[data-look] .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] .site-header :where(a, button):focus-visible,
	[data-look] .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] .site-header .is-menu-open {
		background: var(--white) !important;
		color: var(--s-ink) !important;
	}

	[data-look] .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] .site-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		border-bottom: 1px solid var(--s-line);
		width: 100%;
	}

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

	[data-look] .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] .site-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		min-height: var(--tap);
		padding-block: 6px;
		display: flex;
		align-items: center;
		font-size: 17px;
		font-weight: 600;
		color: var(--s-ink);
	}

	[data-look] .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);
	}

	/* The whole photo (3:2, nothing cut), then one navy band: the two schools, the ranking. */
	[data-look] main.home {
		display: flex;
		flex-direction: column;
	}

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

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

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

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

	[data-look] .hero__school {
		min-height: var(--tap);
	}

	[data-look] .home-section--ranking {
		padding: 0 var(--gutter) 24px;
	}

	[data-look] .ranking {
		max-width: none;
		grid-template-columns: minmax(0, 1fr);
		padding-top: 24px;
	}

	[data-look] .ranking__badges {
		grid-area: auto;
		order: 2;
	}

	[data-look] .ranking__list {
		grid-area: auto;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 20px;
	}

	[data-look] .ranking__list li:nth-child(odd) {
		border-left: 0;
		padding-left: 0;
	}

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

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

	[data-look] .home-section h2,
	[data-look] .home-aside h2 {
		font-size: 28px;
	}

	[data-look] .open-day h2 {
		font-size: 26px;
	}

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

	[data-look] .matura {
		gap: 20px;
	}

	[data-look] .matura__badge img {
		width: 120px;
	}

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

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

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

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

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

/* Tablet: the two schools side by side, the ranking in one row. */
@media (min-width: 640px) and (max-width: 959px) {
	[data-look] .hero__schools {
		flex-direction: row;
		justify-content: center;
	}

	[data-look] .ranking__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	[data-look] .ranking__list li:nth-child(odd):not(:first-child) {
		border-left: 1px solid rgb(255 255 255 / 0.2);
		padding-left: 20px;
	}
}

/* Phone: the open day and contest cards stack, the poster above its text. */
@media (max-width: 639px) {
	[data-look] .ranking__list li {
		padding-inline: 16px 0;
	}

	[data-look] .ranking__badges {
		justify-content: flex-start;
	}

	[data-look] .hero__school {
		justify-content: center;
	}

	[data-look] .contests .poster-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	[data-look] .contests .poster-card img {
		width: 100%;
		max-width: 200px;
	}
}

/* Below 1280 px the right column's next level opens under its item (as in style.css). */
@media (min-width: 960px) and (max-width: 1279px) {
	[data-look] .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container:has(> :nth-child(9)) > .wp-block-navigation-item:nth-child(even) > .wp-block-navigation__submenu-container {
		left: 0;
	}
}

/* The bells and plan card and the shortcuts sit close under the photo as one compact block in every look. */
:root[data-look] .home-section--today {
	padding-block: 24px 16px;
}

:root[data-look] .home-section--quick {
	padding-block: 0 24px;
}

/* ---------- Variant: runway („Pas startowy”) ---------- */
/* Airport signage: a solid dark navy bar above the photo with a gold edge, the two schools as large white boards
   with a red edge, upper-case section titles, Source Sans for text, white cards with a brand navy top edge. */

:root[data-look="runway"] {
	--s-navy: #1b2a57;
	--s-ground: #f3f5f9;
}

:root[data-look="runway"] body {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
}

:root[data-look="runway"] :is(h1, h2, h3, h4, h5, h6, .hero__school, .ranking__list) {
	font-family: var(--font-display);
}

:root[data-look="runway"] :is(.news-layout__main > h2, .home-aside > h2, .page-head h1) {
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

:root[data-look="runway"] .site-header__cta .wp-block-button__link {
	background: var(--red);
	color: var(--white);
}

:root[data-look="runway"] .site-header__cta .wp-block-button__link:hover {
	background: var(--red-dark);
}

@media (min-width: 960px) {
	:root[data-look="runway"] .site-header,
	:root[data-look="runway"] body:not(.home) .site-header {
		width: 100%;
		max-width: none;
		margin: 0;
		padding-inline: max(var(--gutter), calc((100% - 1100px) / 2));
		border: 0;
		border-bottom: 4px solid var(--gold);
		border-image: none;
		border-radius: 0;
		outline: 0;
		background: var(--s-navy);
		backdrop-filter: none;
		box-shadow: none;
	}

	:root[data-look="runway"] body.home .site-header {
		position: relative;
	}

	:root[data-look="runway"] .site-utility {
		padding-inline: 0;
	}

	:root[data-look="runway"] .site-brand {
		padding-left: 0;
	}

	:root[data-look="runway"] .site-header__actions {
		padding-right: 0;
	}

	:root[data-look="runway"] .site-header .wp-block-navigation {
		padding-inline: 0;
	}

	/* The header stands above the photo, so the photo no longer runs behind it. */
	:root[data-look="runway"] .hero__photo {
		height: clamp(360px, 100svh - 330px, 44vw);
	}

	:root[data-look="runway"] .hero__schools {
		padding-block: 32px;
	}
}

:root[data-look="runway"] .hero__schools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1000px + 2 * var(--gutter));
	margin-inline: auto;
	gap: 16px;
}

:root[data-look="runway"] .hero__school {
	min-height: 88px;
	padding: 16px 24px 16px 16px;
	border-left: 6px solid var(--red);
	border-radius: 4px;
	background: var(--white);
	box-shadow: none;
	color: var(--s-navy);
	font-size: 22px;
}

:root[data-look="runway"] .hero__school:hover {
	background: var(--navy-light);
	box-shadow: none;
}

:root[data-look="runway"] .hero__school img {
	width: 56px;
	height: 56px;
	box-shadow: 0 0 0 1px var(--line);
}

:root[data-look="runway"] :is(.hero, .home-section--ranking) :where(a):focus-visible {
	outline-offset: 3px;
}

/* Ranking: white figures, each after a short gold marker like a runway edge light. */
:root[data-look="runway"] .ranking {
	border-top: 0;
}

:root[data-look="runway"] .ranking__list li:nth-child(n) {
	padding-left: 16px;
	border-left: 3px solid var(--gold);
}

:root[data-look="runway"] .ranking__list :is(strong, .ranking__unit) {
	color: var(--white);
}

:root[data-look="runway"] :is(.open-day, .matura, .jobs, .contests .poster-card) {
	border-top: 4px solid var(--navy);
	border-radius: 0 0 4px 4px;
	box-shadow: var(--shadow-card);
}

:root[data-look="runway"] .matura {
	border-left: 0;
}

/* Subpages: a full-width brand navy band, with a dashed white line along its foot like a runway centre line. */
:root[data-look="runway"] .page-head {
	width: 100%;
	max-width: none;
	border-bottom: 0;
	padding: 36px var(--gutter) 44px !important;
	background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.45) 0 32px, transparent 32px 64px) left 0 bottom 16px / 100% 3px no-repeat, var(--navy) !important;
}

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

@media (max-width: 639px) {
	:root[data-look="runway"] .hero__schools {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	:root[data-look="runway"] .hero__school {
		min-height: 72px;
		font-size: 19px;
	}

	:root[data-look="runway"] .hero__school img {
		width: 48px;
		height: 48px;
	}
}

/* ---------- Variant: light („Jasny”) ---------- */
/* Daylight: a white header card on the photo with a red Rekrutacja button, a white band with the schools and
   brand navy figures, rounded cards with a soft shadow, a light title band on subpages. Gold stays in the footer. */

:root[data-look="light"] {
	--s-navy: #2d4384;
	--s-ground: #f5f7fb;
}

:root[data-look="light"] .site-header__cta .wp-block-button__link {
	background: var(--red);
	color: var(--white);
}

:root[data-look="light"] .site-header__cta .wp-block-button__link:hover {
	background: var(--red-dark);
}

:root[data-look="light"] :is(.site-brand, .site-brand__name) {
	color: var(--navy-dark);
}

:root[data-look="light"] .site-brand img {
	box-shadow: 0 0 0 1px var(--line);
}

:root[data-look="light"] .language-switcher__toggle {
	color: var(--navy);
	border-color: var(--line);
}

:root[data-look="light"] .language-switcher__toggle:hover {
	background: var(--navy-light);
	border-color: var(--navy);
}

@media (min-width: 960px) {
	:root[data-look="light"] .site-header {
		color: var(--s-ink);
		background: rgb(255 255 255 / 0.97);
		border-color: var(--line);
		border-radius: 12px;
		box-shadow: 0 12px 32px rgb(20 26 46 / 0.18);
	}

	:root[data-look="light"] body:not(.home) .site-header {
		border-image: linear-gradient(var(--white) 0 0) fill 0 / 0 / 16px 100vmax 0;
		outline-color: var(--line);
		box-shadow: none;
	}

	:root[data-look="light"] .site-utility {
		color: var(--navy);
		border-bottom-color: var(--line);
	}

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

	:root[data-look="light"] .site-header .wp-block-navigation,
	:root[data-look="light"] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		color: var(--s-ink);
	}

	:root[data-look="light"] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
	:root[data-look="light"] .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(--red);
	}

	:root[data-look="light"] .site-header .wp-block-navigation .wp-block-navigation__submenu-container {
		box-shadow: 0 18px 40px rgb(20 26 46 / 0.18), 0 0 0 1px var(--line);
	}

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

@media (max-width: 959px) {
	:root[data-look="light"] .site-header {
		background: var(--white);
		border-bottom: 1px solid var(--line);
	}

	:root[data-look="light"] .site-header__main,
	:root[data-look="light"] .site-header .site-nav {
		background: var(--white);
	}

	:root[data-look="light"] .site-header .wp-block-navigation__responsive-container-open {
		background: var(--navy);
		color: var(--white);
	}

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

	:root[data-look="light"] .page-head {
		border-radius: 0;
	}
}

/* The band under the photo is white: the schools as soft navy pills, the ranking in brand navy. */
:root[data-look="light"] :is(.hero, .home-section--ranking) {
	background: var(--white);
	color: var(--s-ink);
}

:root[data-look="light"] .home-section--ranking {
	border-bottom: 1px solid var(--line);
}

:root[data-look="light"] .hero__school {
	border-radius: 999px;
	background: var(--navy-light);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--navy-dark);
}

:root[data-look="light"] .hero__school:hover {
	background: #dbe2f2;
	box-shadow: inset 0 0 0 1px var(--navy);
}

:root[data-look="light"] :is(.hero, .home-section--ranking) :where(a):focus-visible {
	outline-color: var(--navy);
}

:root[data-look="light"] .ranking {
	border-top-color: var(--line);
}

:root[data-look="light"] .ranking__list li,
:root[data-look="light"] .ranking__list li:nth-child(odd):not(:first-child) {
	border-left-color: var(--line);
	color: var(--s-muted);
}

:root[data-look="light"] .ranking__list :is(strong, .ranking__unit) {
	color: var(--navy);
}

:root[data-look="light"] :is(.open-day, .matura, .jobs, .contests .poster-card) {
	border-radius: 12px;
	box-shadow: var(--shadow-card);
}

:root[data-look="light"] .matura {
	border-left-color: var(--red);
}

:root[data-look="light"] .open-day-photos img,
:root[data-look="light"] .news-list li:first-child .wp-block-post-featured-image {
	border-radius: 10px;
}

/* Subpages: the title on a light navy band with a short red line under it. */
:root[data-look="light"] .page-head {
	background-color: var(--navy-light) !important;
	border-bottom: 0;
	border-radius: 12px;
}

:root[data-look="light"] .page-head h1 {
	color: var(--navy-dark);
}

:root[data-look="light"] .page-head h1::after {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	margin-top: 12px;
	background: var(--red);
}

:root[data-look="light"] .page-head .wp-block-post-date {
	color: var(--s-muted);
}

:root[data-look="light"] .page-head .wp-block-search .wp-element-button:not(.has-background) {
	color: var(--navy);
	border-color: var(--navy);
}

:root[data-look="light"] .page-head .wp-block-search .wp-element-button:not(.has-background):hover {
	color: var(--white);
	background: var(--navy);
}

:root[data-look="light"] .wp-block-post-template .news-card:not(:has(.wp-block-post-featured-image)) {
	border-top-color: var(--red);
}

:root[data-look="light"] .site-footer {
	background: var(--navy) !important;
}

/* ---------- Variant: horizon („Horyzont”) ---------- */
/* A taller photo under a flush navy bar that fades into the navy band; on wide screens the two schools stand as
   white cards over the photo's lower edge. The sections below are editorial: white ground, thin rules, red markers. */

:root[data-look="horizon"] {
	--s-navy: #1b2a57;
	--s-ground: var(--white);
}

:root[data-look="horizon"] .site-header__cta .wp-block-button__link {
	background: var(--red);
	color: var(--white);
}

:root[data-look="horizon"] .site-header__cta .wp-block-button__link:hover {
	background: var(--red-dark);
}

:root[data-look="horizon"] .hero__photo::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 40%;
	background: linear-gradient(rgb(27 42 87 / 0), var(--s-navy));
}

:root[data-look="horizon"] .hero__school {
	border-radius: 8px;
	background: var(--white);
	box-shadow: 0 12px 32px rgb(10 16 40 / 0.3);
	color: var(--s-ink);
}

:root[data-look="horizon"] .hero__school:hover {
	background: var(--white);
	box-shadow: 0 16px 40px rgb(10 16 40 / 0.4), inset 0 -3px 0 var(--red);
}

:root[data-look="horizon"] .hero__school::after {
	content: "→" / "";
	margin-left: auto;
	padding-left: 12px;
	color: var(--red);
	font-size: 24px;
}

@media (min-width: 960px) {
	:root[data-look="horizon"] .site-header {
		width: 100%;
		max-width: none;
		margin: 0;
		padding-inline: max(var(--gutter), calc((100% - 1100px) / 2));
		border: 0;
		border-bottom: 1px solid rgb(255 255 255 / 0.2);
		border-radius: 0;
		background: rgb(27 42 87 / 0.85);
		box-shadow: none;
	}

	:root[data-look="horizon"] body:not(.home) .site-header {
		border-image: none;
		outline: 0;
		margin-bottom: 0;
		background: var(--s-navy);
	}

	:root[data-look="horizon"] .site-utility {
		padding-inline: 0;
	}

	:root[data-look="horizon"] .site-brand {
		padding-left: 0;
	}

	:root[data-look="horizon"] .site-header__actions {
		padding-right: 0;
	}

	:root[data-look="horizon"] .site-header .wp-block-navigation {
		padding-inline: 0;
	}

	:root[data-look="horizon"] .hero__photo {
		height: calc(var(--students-header) + clamp(400px, 100svh - 300px, 50vw));
	}

	:root[data-look="horizon"] .hero__schools {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		box-sizing: border-box;
		width: 100%;
		max-width: calc(1000px + 2 * var(--gutter));
		margin: -64px auto 0;
		padding-block: 0 36px;
		gap: 24px;
	}

	:root[data-look="horizon"] .hero__school {
		min-height: 96px;
		padding: 20px 24px 20px 20px;
		font-size: 22px;
	}

	:root[data-look="horizon"] .hero__school img {
		width: 56px;
		height: 56px;
		box-shadow: 0 0 0 1px var(--line);
	}
}

/* Ranking: white figures under a gold line that fades out like the horizon. */
:root[data-look="horizon"] .ranking {
	border-top: 0;
	background: linear-gradient(90deg, var(--gold), rgb(254 244 0 / 0)) top / 100% 2px no-repeat;
}

:root[data-look="horizon"] .ranking__list strong {
	color: var(--white);
}

/* Sections: no cards, thin rules between them; the section titles carry a short red marker. */
:root[data-look="horizon"] :is(.open-day, .matura, .jobs, .contests .poster-card) {
	padding: 32px 0 0;
	border-top: 1px solid var(--s-line);
	border-radius: 0;
	background: transparent;
}

:root[data-look="horizon"] .matura {
	border-left: 0;
}

:root[data-look="horizon"] :is(.news-layout__main > h2, .home-aside > h2)::before {
	content: "";
	display: block;
	width: 40px;
	height: 4px;
	margin-bottom: 14px;
	background: var(--red);
}

/* Subpages: a full-width navy band with a gold-to-red line under it. */
:root[data-look="horizon"] .page-head {
	width: 100%;
	max-width: none;
	padding: 40px var(--gutter) !important;
	border-bottom: 4px solid;
	border-image: linear-gradient(90deg, var(--gold), var(--red)) 1;
}

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

@media (max-width: 959px) {
	:root[data-look="horizon"] .hero__school {
		min-height: 64px;
	}
}
