/* The news pages: legal.css's background, header and column, with post cards and one post. */

main.news {
	max-width: 960px;
}

.news-list {
	display: grid;
	gap: 16px;
	margin-top: 24px;
}

.news-card {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 20px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	transition: border-color 0.3s ease;
}

.news-card:hover {
	border-color: #61dafb;
	opacity: 1;
}

/* The whole picture in a 16:9 frame (wide screenshots get dark margins instead of losing their sides). */
.news-card-picture {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	border-radius: 8px;
	background: #05090c;
}

.news-card-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 4px 10px 4px 0;
}

.news-card-title {
	margin: 4px 0 6px;
	color: white;
	font-size: 1.3rem;
	font-weight: 400;
	line-height: 1.3;
	overflow-wrap: break-word;
}

.news-card-summary {
	opacity: 0.85;
}

.news-card-more {
	margin-top: auto;
	padding-top: 10px;
	align-self: flex-end;
	color: #61dafb;
}

.news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	font-size: 0.85rem;
}

.news-tag {
	color: #61dafb;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.news-date {
	opacity: 0.7;
}

.news-message {
	margin-top: 24px;
	opacity: 0.8;
}

.news-back {
	display: inline-block;
	margin-bottom: 18px;
}

.news-post {
	max-width: 760px;
}

/* The post's picture in its own proportions. */
.news-post-picture {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 16px;
	border-radius: 12px;
	background: #05090c;
}

.news-post h1 {
	margin: 6px 0 0;
}

.news-paragraph {
	margin-top: 14px;
}

.news-post .request {
	margin-top: 20px;
}

@media (max-width: 640px) {
	.news-card {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.news-card-body {
		padding: 0 4px 4px;
	}
}
