/* Programme – timeline in the site's look (Montserrat, blue #6F8EC8, gold #CCA42C).
   Theme/kit style every button and heading, so key properties are restated with !important. */
.ppg {
	--ppg-blue: #6f8ec8;
	--ppg-gold: #cca42c;
	--ppg-gold-ink: #8a6a0c;
	--ppg-ink: #1f1d1a;
	--ppg-muted: #6f6a62;
	--ppg-line: #e6dfd0;
	font-family: Montserrat, sans-serif;
	font-feature-settings: "locl" 0;
}

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

/* Day tabs = the same pills as the exhibitors' categories. */
.ppg .ppg-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 10px 0 28px;
}

.ppg .ppg-tab,
.ppg .ppg-tab:hover,
.ppg .ppg-tab:focus {
	flex: none;
	margin: 0;
	padding: 12px 24px !important;
	border: 1px solid var(--ppg-blue) !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ppg-ink) !important;
	font-family: Montserrat, sans-serif !important;
	font-feature-settings: "locl" 0;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .06em !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}

.ppg .ppg-tab:hover {
	background: color-mix(in srgb, var(--ppg-blue) 12%, transparent) !important;
}

.ppg .ppg-tab:focus-visible {
	outline: 2px solid var(--ppg-blue);
	outline-offset: 2px;
}

.ppg .ppg-tab[aria-selected="true"] {
	background: var(--ppg-blue) !important;
	color: #fff !important;
}

.ppg .ppg-day[hidden] {
	display: none;
}

/* The day: a white card, like the consultations timetable. */
.ppg .ppg-list {
	max-width: 920px;
	margin: 0 auto !important;
	padding: 22px 44px !important;
	list-style: none !important;
	background: #fff;
	border: 1px solid #efe7d8;
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(31, 29, 26, .06);
}

/* One item: time | dot on a line | title + text. */
.ppg .ppg-item {
	display: grid;
	grid-template-columns: 96px 1fr;
	column-gap: 44px;
	row-gap: 4px;
	position: relative;
	margin: 0 !important;
	padding: 22px 0;
	border-bottom: 1px solid #f2ece1;
	list-style: none !important;
}

.ppg .ppg-item:last-child {
	border-bottom: 0;
}

.ppg .ppg-item::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 118px;
	width: 1px;
	background: var(--ppg-line);
}

.ppg .ppg-item:first-child::before {
	top: 30px;
}

.ppg .ppg-item:last-child::before {
	bottom: calc(100% - 30px);
}

.ppg .ppg-item:only-child::before {
	display: none;
}

.ppg .ppg-item::after {
	content: "";
	position: absolute;
	top: 31px;
	left: 113px;
	width: 11px;
	height: 11px;
	border: 2px solid var(--ppg-gold);
	border-radius: 50%;
	background: #fff;
}

.ppg .ppg-time {
	grid-column: 1;
	grid-row: 1 / span 2;
	color: var(--ppg-gold-ink);
	font-size: 24px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	text-align: right;
}

.ppg .ppg-end {
	display: block;
	margin-top: 2px;
	color: var(--ppg-muted);
	font-size: 15px;
	font-weight: 500;
}

.ppg .ppg-title,
.ppg .ppg-text {
	grid-column: 2;
}

.ppg .ppg-title {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--ppg-ink) !important;
	font-family: Montserrat, sans-serif !important;
	font-feature-settings: "locl" 0;
	font-size: 18px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1.4 !important;
	text-align: left !important;
	text-transform: none !important;
}

.ppg .ppg-text,
.ppg .ppg-text p {
	margin: 0 !important;
	color: var(--ppg-muted) !important;
	font-family: Montserrat, sans-serif !important;
	font-feature-settings: "locl" 0;
	font-size: 15px !important;
	line-height: 1.65 !important;
	text-align: left !important;
}

.ppg .ppg-text p + p {
	margin-top: 8px !important;
}

/* Live status. */
.ppg .ppg-item.is-past::after {
	background: var(--ppg-gold);
}

.ppg .ppg-item.is-past .ppg-time,
.ppg .ppg-item.is-past .ppg-title,
.ppg .ppg-item.is-past .ppg-text {
	opacity: .55;
}

.ppg .ppg-item.is-current::after {
	background: var(--ppg-gold);
	animation: ppg-pulse 1.6s ease-out infinite;
}

.ppg .ppg-item.is-current .ppg-time::after {
	content: "СЕГА";
	display: block;
	margin-top: 6px;
	color: var(--ppg-gold-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	animation: ppg-blink 1.6s ease-in-out infinite;
}

.ppg .ppg-item.is-current .ppg-title {
	color: var(--ppg-gold-ink) !important;
}

@keyframes ppg-pulse {
	0% { box-shadow: 0 0 0 0 rgba(204, 164, 44, .55); }
	70% { box-shadow: 0 0 0 10px rgba(204, 164, 44, 0); }
	100% { box-shadow: 0 0 0 0 rgba(204, 164, 44, 0); }
}

@keyframes ppg-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}

.ppg-empty {
	text-align: center;
}

@media (max-width: 767px) {
	.ppg .ppg-tab,
	.ppg .ppg-tab:hover,
	.ppg .ppg-tab:focus {
		padding: 10px 18px !important;
		font-size: 12px !important;
	}

	.ppg .ppg-list {
		padding: 6px 20px !important;
		border-radius: 18px;
	}

	.ppg .ppg-item {
		grid-template-columns: 1fr;
		padding: 18px 0 18px 22px;
	}

	.ppg .ppg-item::before {
		left: 4px;
	}

	.ppg .ppg-item:first-child::before {
		top: 24px;
	}

	.ppg .ppg-item:last-child::before {
		bottom: calc(100% - 24px);
	}

	.ppg .ppg-item::after {
		top: 24px;
		left: -1px;
	}

	.ppg .ppg-time,
	.ppg .ppg-title,
	.ppg .ppg-text {
		grid-column: 1;
		grid-row: auto;
	}

	.ppg .ppg-time {
		font-size: 18px;
		text-align: left;
	}

	.ppg .ppg-end {
		display: inline;
		margin: 0 0 0 4px;
		font-size: 16px;
	}

	.ppg .ppg-item.is-current .ppg-time::after {
		display: inline-block;
		margin: 0 0 0 10px;
		vertical-align: middle;
	}

	.ppg .ppg-title {
		font-size: 16px !important;
	}

	.ppg .ppg-text,
	.ppg .ppg-text p {
		font-size: 14px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ppg .ppg-item.is-current::after,
	.ppg .ppg-item.is-current .ppg-time::after {
		animation: none;
	}
}
