/* E2d (04 §3.7): post lists (/news, /training), topic chips, post page. Current site look. */
.posts-intro {
	max-width: 40em;
	margin: 1rem auto 0;
	font-size: 16px;
	color: #4a4a4a;
	text-wrap: pretty;
}
.posts-intro a,
.posts-empty a {
	color: #0B63B5;
	text-decoration: underline;
}
.posts-empty {
	font-size: 16px;
	color: #4a4a4a;
	text-align: center;
	padding: 40px 0;
}

/* Topic chips */
.topic-chips ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0 0 40px;
}
.topic-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid #0B63B5;
	border-radius: 999px;
	color: #0B63B5;
	background: #fff;
	font-size: 16px;
	line-height: 1.25;
	overflow-wrap: anywhere;
	transition: background-color .15s ease, color .15s ease;
}
.topic-chip:hover,
.topic-chip:focus-visible {
	background: #EAF2FB;
	color: #0B63B5;
}
.topic-chip[aria-current="page"] {
	background: #0B63B5;
	color: #fff;
}
.topic-chip-count {
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	opacity: .85;
}

/* Post list */
.post-list {
	display: grid;
	gap: 24px;
	margin-bottom: 40px;
}
.post-card {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .1);
}
.post-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	background: #F3F5F8;
}
.post-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	padding: 20px;
}
.post-topic {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #EAF2FB;
	color: #0A4F91;
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.post-topic:hover {
	color: #0A4F91;
	text-decoration: underline;
}
.post-card-title {
	max-width: 40ch;
	margin: 0;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.3;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}
.post-card-title a {
	color: #212529;
}
.post-card-title a:hover {
	color: #0B63B5;
}
.post-card-date {
	margin: 0;
	font-size: 14px;
	color: #0A4F91;
}
.post-card-summary {
	max-width: 65ch;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: #3a3a3a;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}
.post-card-more {
	margin-top: auto;
	padding-top: 8px;
	font-size: 16px;
	font-weight: bold;
	color: #0B63B5;
}
.post-card-more:hover {
	color: #0A4F91;
	text-decoration: underline;
}
@media screen and (min-width: 768px) {
	.post-card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	}
	.post-card-media {
		aspect-ratio: auto;
		min-height: 220px;
	}
	.post-card-body {
		padding: 28px 32px;
	}
}

/* Post page */
.post-detail .container {
	max-width: 44rem;
}
.post-detail .post-topic {
	margin-bottom: 12px;
}
.post-draft-note {
	padding: 10px 16px;
	border-left: 4px solid #8a5a00;
	background: #FFF6E5;
	color: #5c3d00;
	font-size: 16px;
}
.post-body {
	overflow-wrap: anywhere;
}
.post-body img {
	max-width: 100%;
	height: auto;
}
.post-body p,
.post-body li {
	text-wrap: pretty;
}
.post-detail h3 {
	text-wrap: balance;
	overflow-wrap: anywhere;
}
.post-body h3 {
	margin-top: 2rem;
	font-size: 22px;
	color: #0B63B5;
}
@media screen and (max-width: 575px) {
	.posts-section {
		padding: 40px 0;
	}
}
.post-share {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 4px;
	background: #0A63B5;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}
.post-share:hover,
.post-share:focus {
	background: #0A4F91;
	color: #fff;
}
