/* ==========================================================================
   abcBIM — insights.css (2.2)
   Insights (/insights/, /insights/type/{term}/), the single insight and the
   Write for abcBIM page. The layouts are Learn's (learn.css: hero, tabs, grid,
   the article page, "Keep learning") and Post a job's (post-job.css and the
   enquiry card in training.css); cards are .lesson-card (base.css). Only what
   differs lives here.
   ========================================================================== */

/* ---------- Cards ---------- */
.insight-card__byline {
	margin-top: auto;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--c-muted);
}

.insight-card .lesson-card__excerpt + .insight-card__byline,
.insight-card .lesson-card__title + .insight-card__byline {
	padding-top: 2px;
}

/* A piece without an image: a text card with a rule on top instead of a picture. */
.insight-card--text {
	padding-top: 18px;
	border-top: 1px solid var(--c-ink);
}

.learn-grid .insight-card--text .lesson-card__title {
	font-size: clamp(24px, 2.2vw, 28px);
	line-height: 1.15;
}

.insight-card--text .lesson-card__excerpt {
	-webkit-line-clamp: 5;
}

.lesson-card--compact.insight-card--text .lesson-card__title {
	font-size: 24px;
}

/* ---------- Empty state ---------- */
.insight-empty {
	margin-top: 44px;
	max-width: 640px;
	padding-top: 28px;
	border-top: 1px solid var(--c-rule);
}

.insight-empty__title {
	margin: 0;
	font-family: var(--f-serif);
	font-size: clamp(26px, 2.4vw, 32px);
	line-height: 1.15;
}

.insight-empty__text {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-slate);
}

.insight-empty__actions {
	margin: 24px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
}

/* ---------- Single insight ---------- */
.byline__role {
	font-weight: 400;
	color: var(--c-graphite);
}

.byline__profile {
	color: var(--c-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.byline__profile:hover {
	color: var(--c-green);
}

/* Contributed pieces: whose views these are. */
.insight-note {
	margin: 36px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--c-rule);
	font-size: 15px;
	line-height: 1.55;
	color: var(--c-slate);
}

.insight-note .text-link {
	margin-left: 6px;
	white-space: nowrap;
}

/* ---------- Write for abcBIM ---------- */
.write-page .post-job__title em.accent {
	font-style: italic;
}

.write-page__text {
	margin: 16px 0 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-graphite);
}

.contact-form__help {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--c-muted);
}

.post-job__group > .contact-form__help {
	margin-top: -8px;
}

.contact-form__count {
	margin: 0;
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--c-muted);
}

.contact-form__count.is-over {
	color: #A33A2B;
}

.write-page__summary {
	min-height: 72px;
}

.write-page__article {
	min-height: 360px;
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 560px) {
	.write-page__article {
		min-height: 300px;
	}
}
