/*
 * Ursa Prek: the About page (template-about.php, inc/about.php). The introduction beside the quote, a filter set like
 * the shop's, the CV in two columns as a timeline, the funders' logos in one row. In a CV row the title is dark and the
 * place grey; a title that links somewhere has a thin orange line under it; "Article:" and the like hang in a small
 * column of their own.
 */

.up-main .up-page.up-about {
	--ab-strong: rgba(0, 0, 0, 0.84);
	--ab-soft: var(--up-text-soft, rgba(0, 0, 0, 0.48));
	--ab-line: rgba(255, 140, 0, 0.7);
}
@media (min-width: 768px) {
	.up-main .up-page.up-about {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* --- the introduction and the quote */
.up-about__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 56px;
	align-items: start;
	margin-bottom: 44px;
}
.up-main .up-about .up-about__lead p {
	margin: 0 0 1em;
	padding-top: 0;
	font-size: 16px;
	line-height: 1.75;
	color: var(--up-text-color);
}
.up-main .up-about .up-about__lead p strong {
	color: var(--ab-strong);
}
.up-about__current {
	margin-top: 26px;
}
.up-main .up-about .up-about__current .up-cv__row {
	grid-template-columns: 48px minmax(0, 1fr);
}
.up-main .up-about .up-about__current .up-cv__what {
	padding-left: 0;
	border-left: 0;
	color: var(--ab-strong);
}
.up-main .up-about .up-about__current .up-cv__what::before {
	display: none;
}
.up-main .up-about .up-about__current .up-cv__year {
	text-align: left;
}
.up-main .up-about .up-about__current h2.up-cv__heading {
	padding-left: 0 !important;
}
/* the theme gives every quote 1.6em, weight 600 and a black rule: here it is the quiet text beside the introduction */
.up-main .up-about .up-about__quote .wp-block-quote,
.up-main .up-about .up-about__quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	color: inherit;
}
.up-main .up-about .up-about__quote blockquote p {
	margin: 0;
	font-size: 16px !important;
	font-style: italic;
	font-weight: 400 !important;
	line-height: 1.75 !important;
	color: var(--up-text-color);
}
.up-main .up-about .up-about__quote cite {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	color: var(--ab-soft);
	text-wrap: balance;
}
.up-main .up-about .up-about__quote cite em {
	font-style: italic;
}

/* --- the filter */
.up-about__filter {
	margin: 0 0 34px;
	padding: 14px 0;
	border-top: 1px solid var(--up-rule);
	border-bottom: 1px solid var(--up-rule);
}
.up-about__filter .up-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.up-about__filter .up-filter__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.up-main .up-about .up-about__filter .up-filter__link {
	display: inline-block;
	padding: 4px 0 3px;
	border-bottom: 1px solid transparent;
	font-family: var(--up-menu-font);
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--up-ink);
	transition: color 0.18s ease, border-color 0.18s ease;
}
.up-main .up-about .up-about__filter .up-filter__link:hover,
.up-main .up-about .up-about__filter .up-filter__link:focus-visible {
	color: var(--up-orange);
}
.up-main .up-about .up-about__filter .up-filter__link.is-current {
	color: var(--up-orange);
	border-bottom-color: currentColor;
}

/* --- the CV: two columns; with a choice in the filter one column with only that part */
.up-about__cv {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 56px;
	align-items: start;
}
.up-about__cv.is-filtered {
	display: block;
	max-width: 760px;
}
.up-about__part {
	margin: 0 0 40px;
	scroll-margin-top: 110px;
}
.up-about__part[hidden] {
	display: none !important;
}
.up-main .up-about h2.up-cv__heading {
	margin: 0 0 12px !important;
	padding: 0 0 0 86px !important;
	font-family: var(--up-menu-font) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	text-align: left !important;
	color: var(--up-ink-strong) !important;
}
.up-main .up-about .up-cv {
	margin: 0;
	padding: 0;
}
.up-main .up-about .up-cv__row {
	grid-template-columns: 70px minmax(0, 1fr);
}
.up-main .up-about .up-cv__year {
	padding: 0 14px 0 0;
	font-family: var(--up-menu-font);
	font-size: 12px;
	line-height: 27px;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
	color: var(--up-orange);
}
.up-main .up-about .up-cv__what {
	font-size: 16px;
	line-height: 27px;
	color: var(--ab-soft);
}
/* a title (typed in bold) is dark, at the normal weight */
.up-main .up-about .up-cv__what strong,
.up-main .up-about .up-cv__what b {
	font-weight: 400;
	color: var(--ab-strong);
}
.up-main .up-about .up-cv__what a,
.up-main .up-about .up-cv__what a span,
.up-main .up-about .up-cv__what a strong {
	color: var(--ab-strong) !important;
}
.up-main .up-about .up-cv__what a {
	text-decoration: underline !important;
	text-decoration-color: var(--ab-line) !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 4px;
}
.up-main .up-about .up-cv__what a span,
.up-main .up-about .up-cv__what a strong {
	text-decoration: none !important;
}
.up-main .up-about .up-cv__what a:hover,
.up-main .up-about .up-cv__what a:hover span,
.up-main .up-about .up-cv__what a:hover strong {
	color: var(--up-orange) !important;
}
.up-main .up-about .up-cv__what ul {
	color: var(--ab-soft);
}
/* "Article", "Podcast" ...: in a small column of their own, so a second line starts under the title */
.up-main .up-about .up-cv__what.has-kind {
	padding-left: 112px;
}
.up-main .up-about .up-cv__kind {
	position: absolute;
	top: 0;
	left: 16px;
	font-family: var(--up-menu-font);
	font-size: 10.5px;
	line-height: 27px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ab-soft);
}

/* --- the funders: the logos in one row, the line under them */
.up-about__support {
	margin-top: 20px;
	padding-top: 28px;
	border-top: 1px solid var(--up-rule);
}
.up-about__logos {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 22px 40px;
}
.up-main .up-about .up-about__logos figure {
	flex: none;
	margin: 0;
}
.up-main .up-about .up-about__logos img {
	display: block;
	width: auto;
	max-width: none;
	filter: grayscale(1);
	opacity: 0.62;
}
.up-main .up-about .up-about__logos .up-logo-soft img {
	opacity: 0.42;
}
.up-main .up-about .up-about__credit p {
	margin: 16px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ab-soft);
}

@media (max-width: 767px) {
	.up-about__intro,
	.up-about__cv {
		display: block;
	}
	.up-about__quote {
		margin-top: 30px;
	}
	.up-about__filter .up-filter__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 22px;
		padding-right: 30px;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
	.up-main .up-about .up-cv__row {
		grid-template-columns: 54px minmax(0, 1fr);
	}
	.up-main .up-about .up-cv__year {
		padding-right: 10px;
		font-size: 11px;
		letter-spacing: 0;
	}
	.up-main .up-about h2.up-cv__heading {
		padding-left: 70px !important;
	}
	.up-main .up-about .up-cv__what.has-kind {
		padding-left: 16px;
	}
	.up-main .up-about .up-cv__kind {
		position: static;
		display: block;
		line-height: 1.6;
		padding-top: 4px;
	}
	.up-about__logos {
		display: grid;
		grid-template-columns: repeat(2, max-content);
	}
	.up-main .up-about .up-about__logos img {
		transform: scale(0.85);
		transform-origin: left center;
	}
}
