/*
 * Home page sections (A3, ADR-0024), loaded on the front page and in the editor. Every section is a
 * group the editors fill in (Pages › Ana Sayfa); the classes here only arrange it. White and paper
 * sections alternate: the console, the organizers, the speakers on paper, the programme and key
 * dates, the heritage band on paper under the dotted grid, the announcements, the sponsors on paper
 * and the venue on the edition color's tint. Links
 * that make a whole card clickable stretch over the card on the site only (.wp-site-blocks), so the
 * editor can still place the cursor in the card's text. Older sections live in home-extras.css.
 */

.wp-block-post-content > :is(.savtek-section, .savtek-heritage-band, .savtek-venue-band) {
	margin-block: 0;
}

.savtek-section {
	padding-block: var(--wp--custom--section);
}

/*
 * Congress facts elsewhere on the page: the white card of style.css, three or four facts in a row.
 * Right after the slider they become the console below.
 */
.savtek-facts {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 1100px) {

	.savtek-facts:not(:has(> .savtek-facts__item:nth-child(4))) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/*
 * The facts console (A3): right after the slider it lies over the stage's foot from 782px as one
 * white card, the countdown first, then the date and the venue, divided by hairlines; on phones it
 * follows the stage, stacked, under the phase's main button (is-action, on the edition color's
 * tint), which only phones show: from 782px the header holds the same button (team lead, 2026-10-24:
 * two equal buttons side by side read as a mistake).
 */
.wp-block-post-content:has(> .savtek-slider + .savtek-facts) {
	--savtek-console-overlap: 0px;
}

@media (min-width: 782px) {

	.wp-block-post-content:has(> .savtek-slider + .savtek-facts) {
		--savtek-console-overlap: 3rem;
	}
}

.wp-block-post-content > .savtek-slider + .savtek-facts {
	border: 1px solid var(--wp--custom--border-color);
	grid-template-columns: minmax(0, 1fr);
	margin-block: calc(-1 * var(--savtek-console-overlap)) clamp(1rem, 2vw, 1.5rem);
	overflow: clip;
	position: relative;
	z-index: 4;
}

.savtek-slider + .savtek-facts > .savtek-facts__item {
	padding: 1.4rem 1.6rem;
}

.savtek-slider + .savtek-facts > .savtek-facts__item + .savtek-facts__item {
	border-left: 0;
	border-top: 1px solid var(--wp--custom--border-color);
}

@media (min-width: 782px) {

	.wp-block-post-content > .savtek-slider + .savtek-facts {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
	}

	.savtek-slider + .savtek-facts > .savtek-facts__item + .savtek-facts__item {
		border-left: 1px solid var(--wp--custom--border-color);
		border-top: 0;
	}

	.savtek-slider + .savtek-facts > .savtek-facts__item:not(.is-status) {
		align-content: start;
		display: grid;
	}
}

@media (min-width: 782px) {

	.savtek-slider + .savtek-facts > .savtek-facts__item.is-action {
		display: none;
	}
}

@media (max-width: 781px) {

	.savtek-slider + .savtek-facts > .savtek-facts__item.is-action {
		border-top: 0;
		order: -1;
	}

	.savtek-slider + .savtek-facts:has(> .is-action) > .savtek-facts__item:first-child {
		border-top: 1px solid var(--wp--custom--border-color);
	}
}

/* The phase's main button (Call_To_Action), its note under it. */
.savtek-slider + .savtek-facts > .is-action {
	align-content: center;
	background: var(--wp--custom--accent-tint);
	display: grid;
	gap: 0.6rem;
}

.savtek-facts__actions > .wp-block-button {
	flex: 1 1 auto;
}

.savtek-facts__actions .wp-block-button__link {
	width: 100%;
}

.savtek-slider + .savtek-facts .is-action > .savtek-facts__note {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	text-align: center;
}

/* After the congress: links to the records. */
.savtek-facts__links {
	display: grid;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.savtek-facts__links a {
	color: var(--savtek-accent-text);
	font-weight: 600;
	text-decoration: none;
}

.savtek-facts__links a::after {
	content: " →";
	content: " →" / "";
}

.savtek-facts__links a:hover {
	text-decoration: underline;
}

/* The status cell: the chip, the countdown block and the opening line, one under the other. */
.savtek-slider + .savtek-facts > .savtek-facts__item.is-status {
	align-content: start;
	display: grid;
	gap: 0.75rem;
}

.savtek-slider + .savtek-facts :where(.savtek-facts__item) > .savtek-facts__chip {
	align-items: center;
	background: var(--wp--custom--accent-tint);
	border: 1px solid var(--wp--custom--accent-soft);
	border-radius: 999px;
	color: var(--wp--preset--color--accent);
	display: inline-flex;
	font-size: 0.8125rem;
	font-weight: 600;
	gap: 0.45rem;
	justify-self: start;
	margin: 0;
	padding: 0.2rem 0.65rem 0.2rem 0.55rem;
	white-space: nowrap;
}

.savtek-slider + .savtek-facts .savtek-facts__chip::before {
	background: var(--wp--preset--color--accent);
	border-radius: 50%;
	content: "";
	flex: none;
	height: 0.45rem;
	width: 0.45rem;
}

.savtek-slider + .savtek-facts .is-status > .wp-block-savtek-countdown {
	margin: 0;
}

.savtek-slider + .savtek-facts .is-status > .savtek-facts__value {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	font-weight: 400;
	margin: 0;
}

.savtek-facts__value strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* After the congress there is no countdown: its state is the anchor, with a thanks and the past congresses. */
.savtek-slider + .savtek-facts .is-status:not(:has(.wp-block-savtek-countdown)) > .savtek-facts__value {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
}

.savtek-slider + .savtek-facts :where(.savtek-facts__item) > .savtek-facts__value {
	font-size: 1.125rem;
	margin-top: 0.4rem;
}

.savtek-slider + .savtek-facts :where(.savtek-facts__item) > .savtek-facts__note {
	font-size: 0.9375rem;
}

/* Elsewhere on the page the facts card wraps: two facts to a row on tablets, one on phones. */
@media (max-width: 1099px) {

	.savtek-facts:not(.savtek-slider + *) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.savtek-facts:not(.savtek-slider + *) > .savtek-facts__item:nth-child(3) {
		border-left: 0;
	}

	.savtek-facts:not(.savtek-slider + *) > .savtek-facts__item:nth-child(n + 3) {
		border-top: 1px solid var(--wp--custom--border-color);
	}
}

@media (max-width: 679px) {

	.savtek-facts:not(.savtek-slider + *) {
		grid-template-columns: minmax(0, 1fr);
	}

	.savtek-facts:not(.savtek-slider + *) > .savtek-facts__item {
		padding: 1.15rem 1.25rem;
	}

	.savtek-facts:not(.savtek-slider + *) > .savtek-facts__item + .savtek-facts__item {
		border-left: 0;
		border-top: 1px solid var(--wp--custom--border-color);
	}
}

/*
 * The organizers and the sponsors: a compact band each, a small title and the link to their page
 * above the logos. The sponsors move in a strip; the organizers stand still in one formal row
 * (is-band, team lead 2026-10-24), with their label in a column of its own from 1100px. The
 * organizers' band closes the console with a hairline.
 */
.savtek-section.savtek-orgs-band {
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.savtek-orgs-band:not(.is-style-section-paper) {
	border-bottom: 1px solid var(--wp--custom--border-color);
}

.savtek-orgs-band .savtek-orgs-band__head {
	align-items: baseline;
	gap: 0.25rem 2rem;
	justify-content: space-between;
}

.savtek-orgs-band .savtek-orgs-band__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0;
}

.savtek-orgs-band__head .savtek-more {
	font-size: 0.9375rem;
	margin: 0;
}

.savtek-orgs-band > .savtek-orgs {
	margin-block-start: 0.625rem;
}

.savtek-orgs-band .savtek-orgs.is-band {
	--savtek-logo-base: 6rem;
	--savtek-logo-max-w: 9rem;
	--savtek-logo-max-h: 4rem;
}

.savtek-orgs-band .is-band .savtek-orgs__list {
	flex-wrap: nowrap;
	justify-content: space-between;
}

.savtek-orgs-band:has(> .is-band) .savtek-orgs-band__title {
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Padding brings the box to the wide width (50% counts from the page's padded box). */
@media (min-width: 1100px) {

	.savtek-orgs-band:has(> .is-band) {
		align-items: center;
		column-gap: clamp(2rem, 4vw, 4rem);
		display: grid;
		grid-template-columns: 13rem minmax(0, 1fr);
		padding-inline: max(var(--wp--style--root--padding-left), calc(50% + var(--wp--style--root--padding-left) - var(--wp--style--global--wide-size) / 2));
	}

	.savtek-orgs-band:has(> .is-band) > * {
		margin: 0 !important;
		max-width: none;
	}

	.savtek-orgs-band:has(> .is-band) > .savtek-orgs-band__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.6rem;
	}

	.savtek-orgs-band .savtek-orgs.is-band {
		--savtek-logo-base: 7rem;
		--savtek-logo-max-w: 10rem;
		--savtek-logo-max-h: 4.5rem;
	}
}

@media (max-width: 781px) {

	.savtek-orgs-band .is-band .savtek-orgs__list {
		justify-items: center;
		row-gap: 1.25rem;
	}

	.savtek-orgs-band .savtek-orgs.is-band .savtek-orgs__logo {
		max-height: calc(4rem * var(--savtek-logo-scale, 1));
	}
}

/* Section heads: the link on the heading's baseline at the right; on phones under the intro (style.css). */
@media (min-width: 782px) {

	.wp-site-blocks .savtek-head {
		align-items: baseline;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		row-gap: 0;
	}

	.wp-site-blocks .savtek-head > .wp-block-group:first-child {
		display: contents;
	}

	.wp-site-blocks .savtek-head > .savtek-more {
		grid-area: 1 / 2;
	}

	.wp-site-blocks .savtek-head :is(.wp-block-heading, .savtek-head__intro) {
		grid-column: 1;
	}
}

/* Figures: a figure whose number is not set is left out with its label; an edition reads "12.". */
.savtek-figure:not(:has(.savtek-figure__value)) {
	display: none;
}

.savtek-figure.is-ordinal .savtek-figure__value::after {
	content: ".";
}

/* Programme at a glance and the key dates share a band: side by side from 1100px, a lone one spans. */
.savtek-plan {
	display: grid;
	gap: clamp(2.5rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 1fr);
}

.savtek-plan > * {
	margin: 0;
	min-width: 0;
}

@media (min-width: 1100px) {

	.savtek-plan:has(> :nth-child(2)) {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	}
}

/*
 * Heritage (A3): a paper band under the dotted grid with the figures in the edition color and the
 * past congresses up to this year; the brochure's small tank (inc/decor.php) stands faint at the
 * right on wide screens. Phones leave the drawing out.
 */
.savtek-heritage {
	background: var(--savtek-dots), var(--wp--preset--color--paper);
	overflow: hidden;
	padding-block: var(--wp--custom--section);
	position: relative;
}

.savtek-heritage > :not(.savtek-decor) {
	position: relative;
	z-index: 1;
}

/* Under the last figure, beside the years: clear of every text. */
.savtek-heritage > .savtek-decor {
	bottom: -0.75rem;
	height: auto;
	opacity: 0.6;
	pointer-events: none;
	position: absolute;
	right: max(var(--wp--style--root--padding-right), calc((100% - var(--wp--style--global--wide-size)) / 2));
	width: min(20%, 15rem);
	z-index: 0;
}

.savtek-heritage .savtek-figures {
	border-top: 1px solid var(--wp--custom--border-strong);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.savtek-heritage .savtek-figure {
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.5rem 0 0;
	position: relative;
}

/* A tick where each figure starts, on the line above them, in the edition color. */
.savtek-heritage .savtek-figure::before {
	background: var(--wp--preset--color--accent);
	content: "";
	height: 1.25rem;
	left: 0;
	position: absolute;
	top: 0;
	width: 2px;
}

.savtek-heritage .savtek-figures > *,
.savtek-heritage .savtek-figure > * {
	margin: 0;
}

.savtek-heritage .savtek-figure__value {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3.25rem, 1.4rem + 5.4vw, var(--wp--preset--font-size--huge));
	font-variant-numeric: tabular-nums lining-nums;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 0.9;
}

.savtek-heritage .savtek-figure__label {
	color: var(--wp--preset--color--muted);
	font-size: 1.0625rem;
	margin-top: 0.75rem;
}

.savtek-heritage .savtek-years {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	max-width: var(--wp--style--global--wide-size);
}

@media (max-width: 781px) {

	.savtek-heritage > .savtek-decor {
		display: none;
	}

	.savtek-heritage .savtek-figures {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.savtek-heritage .savtek-figure:nth-child(n + 3) {
		border-top: 1px solid var(--wp--custom--border-color);
		margin-top: 1.25rem;
	}
}

/* Announcements: three equal cards, the announcements page's card style; the title's link covers its card. */
.savtek-news .wp-block-post-template {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.savtek-news .wp-block-post {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--border-color);
	border-radius: var(--wp--custom--radius);
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	position: relative;
	transition: box-shadow var(--wp--custom--transition);
}

.savtek-news .wp-block-post:hover {
	box-shadow: var(--wp--custom--shadow-card);
}

/* The photo's treatment is the card photos' (core-post-template.css). */
.savtek-news .savtek-news__image {
	aspect-ratio: 16 / 10;
	margin: 0;
}

.savtek-news .savtek-news__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.savtek-news__body {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	padding: 1.25rem 1.4rem 1.5rem;
}

.savtek-news .savtek-news__body > * {
	margin: 0;
}

.savtek-news .savtek-news__date {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums lining-nums;
}

.savtek-news .savtek-badge {
	align-self: center;
	order: -1;
}

.savtek-news .savtek-news__title {
	flex-basis: 100%;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
}

.savtek-news__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.savtek-news__title a:hover {
	text-decoration: underline;
}

.wp-site-blocks .savtek-news__title a::before {
	content: "";
	inset: 0;
	position: absolute;
}

.wp-site-blocks .savtek-news__title a:focus-visible {
	outline: 0;
}

.wp-site-blocks .savtek-news .wp-block-post:has(a:focus-visible) {
	outline: 3px solid var(--savtek-ring);
	outline-offset: 3px;
}

/* Below 900px the cards lie down: a small photo beside the date and title. */
@media (max-width: 899px) {

	.savtek-news .wp-block-post-template {
		gap: 0.75rem;
		grid-template-columns: minmax(0, 1fr);
	}

	.savtek-news .wp-block-post:has(.savtek-news__image) {
		display: grid;
		grid-template-columns: 7.5rem minmax(0, 1fr);
	}

	.savtek-news .savtek-news__image {
		aspect-ratio: auto;
		height: 100%;
		min-height: 6.5rem;
	}

	.savtek-news .savtek-news__image img {
		inset: 0;
		position: absolute;
	}

	.savtek-news__body {
		gap: 0.35rem 0.75rem;
		padding: 0.9rem 1rem;
	}

	.savtek-news .savtek-news__title {
		font-size: 1.0625rem;
	}
}

/*
 * Venue and contact (A3): a band on the edition color's tint, the photo filling the left half
 * with a slanted edge, the venue, the buttons and the secretariat's contact on the right, and the
 * brochure's ship (inc/decor.php) faint behind the contact. The text's right edge lines up with
 * the wide content above it. Below 1100px the photo comes first and the text follows.
 */
.savtek-venue-band {
	background-color: var(--wp--custom--accent-tint);
	overflow: hidden;
	position: relative;
}

/* In a strip of its own under the contact (the text's bottom padding below). */
.savtek-venue-band > .savtek-decor {
	bottom: 1.5rem;
	height: auto;
	opacity: 0.6;
	pointer-events: none;
	position: absolute;
	right: max(var(--wp--style--root--padding-right), calc((100% - var(--wp--style--global--wide-size)) / 2));
	width: min(18%, 13rem);
	z-index: 0;
}

.savtek-venue {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	position: relative;
	z-index: 1;
}

.savtek-venue > * {
	margin: 0;
}

.savtek-venue .savtek-venue__image {
	clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
	margin: 0;
	min-height: 30rem;
	position: relative;
}

.savtek-venue .savtek-venue__image img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

/* Percentages of padding count from the column, half the band: (200% - wide) / 2 is the margin of the wide content. */
.savtek-venue__info {
	padding: var(--wp--custom--section) max(var(--wp--style--root--padding-right), calc(100% - var(--wp--style--global--wide-size) / 2)) max(var(--wp--custom--section), 12rem) clamp(2rem, 4vw, 4rem);
	position: relative;
	z-index: 1;
}

/* Without a photo (the pattern before one is chosen) the text lines up with the wide content. */
.savtek-venue:not(:has(> .savtek-venue__image)) {
	grid-template-columns: minmax(0, 1fr);
}

.savtek-venue:not(:has(> .savtek-venue__image)) > .savtek-venue__info {
	margin-top: 0;
	padding-inline: max(var(--wp--style--root--padding-left), calc((100% - var(--wp--style--global--wide-size)) / 2));
}

.savtek-venue .savtek-venue__info > * {
	margin-block: 0;
}

.savtek-venue__info .savtek-venue__text {
	color: var(--wp--preset--color--muted);
	margin-top: 1rem;
	max-width: 32rem;
}

.savtek-venue__info > .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.savtek-contact {
	border-top: 1px solid var(--wp--custom--accent-light);
	color: var(--wp--preset--color--muted);
	display: grid;
	gap: 1.25rem 2rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding-top: 1.75rem;
}

.savtek-venue__info > .savtek-contact {
	margin-top: clamp(2rem, 4vw, 2.75rem);
}

.savtek-contact > *,
.savtek-contact p {
	margin: 0;
}

.savtek-contact strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.savtek-contact .savtek-details {
	gap: 0.35rem;
	margin: 0;
}

.savtek-contact .savtek-details > * {
	margin: 0;
}

.savtek-contact .savtek-details__item:has(.wp-block-button, .savtek-details__value) {
	align-items: baseline;
	column-gap: 1rem;
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
}

.savtek-contact .savtek-details__label {
	color: var(--wp--preset--color--muted);
	font-size: inherit;
	font-weight: 400;
	line-height: 1.6;
}

.savtek-contact .savtek-details__item > :is(.savtek-details__value, .wp-block-buttons) {
	font-weight: 400;
	margin: 0;
}

.savtek-contact .savtek-details .is-style-link .wp-element-button {
	color: var(--wp--preset--color--contrast);
	font-variant-numeric: tabular-nums lining-nums;
	font-weight: 400;
	text-decoration: underline;
	text-decoration-color: var(--wp--custom--accent-light);
}

.savtek-contact .savtek-details .is-style-link .wp-element-button:hover {
	color: var(--wp--preset--color--accent);
}

@media (max-width: 1099px) {

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

	/* Closer to the photo's own shape, so a phone crops it less. */
	.savtek-venue .savtek-venue__image {
		clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
		height: clamp(12rem, 50vw, 22rem);
		min-height: 0;
	}

	.savtek-venue__info {
		padding: 2rem var(--wp--style--root--padding-right) var(--wp--custom--section) var(--wp--style--root--padding-left);
	}

	.savtek-venue-band > .savtek-decor {
		display: none;
	}
}

@media (max-width: 781px) {

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

/*
 * Scroll reveals: section heads and figures rise into place as they enter the screen, driven by
 * the scroll itself (no script). Only on screens, for visitors who have not asked for less motion,
 * in browsers with scroll-driven animations; elsewhere, and when printing, they simply show. The
 * site scope keeps the editor still.
 */
@media screen and (prefers-reduced-motion: no-preference) {

	@supports (animation-timeline: view()) {

		.wp-site-blocks .savtek-head,
		.wp-site-blocks .savtek-figure {
			animation: savtek-rise linear both;
			animation-range: entry 0% entry 35%;
			animation-timeline: view();
		}
	}
}

@keyframes savtek-rise {

	from {
		opacity: 0;
		transform: translateY(1.5rem);
	}
}

/* The hidden page title comes first in main; the slider starts right below the header. */
.wp-site-blocks > main > .wp-block-post-content {
	margin-block-start: 0;
}
