/* Shared media center on the homepage and detail pages. */
.uc-news {
	padding-top: clamp(64px, 7vw, 112px);
	padding-bottom: clamp(64px, 7vw, 112px);
	background: #fff;
	color: var(--uc-ink);
}

.uc-news__label {
	border-top: 1px solid var(--uc-line);
	padding-top: 20px;
	color: var(--uc-red);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.uc-news__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 32px;
	margin: 20px 0 36px;
}

.uc-news__head h2 {
	max-width: 820px;
	margin: 0;
	font-size: clamp(32px, 3.5vw, 52px);
	font-weight: 600;
	line-height: 1.1;
}

.uc-news__head > a {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: none;
	padding-bottom: 7px;
	border-bottom: 1px solid currentColor;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.uc-news__head > a:hover,
.uc-news__head > a:focus-visible {
	color: var(--uc-red);
}

.uc-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-flow: row;
	grid-auto-columns: auto;
	gap: 20px;
	overflow: visible;
}

.uc-media-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--uc-line);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.uc-media-card:hover,
.uc-media-card:focus-within {
	border-color: #c7d2d8;
	box-shadow: 0 16px 40px rgba(4, 31, 42, .09);
	transform: translateY(-3px);
}

.uc-media-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--uc-soft);
}

.uc-media-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.uc-media-card:hover .uc-media-card__image img {
	transform: scale(1.035);
}

.uc-media-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 25px 26px 27px;
}

.uc-media-card time {
	margin-bottom: 15px;
	color: var(--uc-red);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.uc-media-card h3 {
	margin: 0;
	font-size: clamp(20px, 1.7vw, 24px);
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.uc-media-card h3 a:hover,
.uc-media-card h3 a:focus-visible {
	color: var(--uc-red);
}

.uc-media-card p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 13px 0 24px;
	color: var(--uc-muted);
	font-size: 15px;
	line-height: 1.5;
}

.uc-media-card__more {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 22px;
	color: var(--uc-ink);
	font-size: 14px;
	font-weight: 700;
}

.uc-media-card__more:hover,
.uc-media-card__more:focus-visible {
	color: var(--uc-red);
}

.uc-news__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 42px;
	background: var(--uc-band);
	color: var(--uc-muted);
	font-size: 18px;
}

@media (max-width: 1050px) {
	.uc-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.uc-news__head { display: block; margin-bottom: 28px; }
	.uc-news__head h2 { font-size: clamp(30px, 8vw, 40px); }
	.uc-news__head > a { margin-top: 20px; }
	.uc-news__grid { grid-template-columns: 1fr; gap: 16px; }
	.uc-media-card__body { padding: 22px; }
	.uc-media-card h3 { font-size: 22px; }
	.uc-news__empty { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.uc-media-card,
	.uc-media-card__image img { transition: none; }
	.uc-media-card:hover,
	.uc-media-card:focus-within { transform: none; }
}
