/* =========================================================
   Case study detail page (/case/{n}/)
   ========================================================= */

body.kb-case-single { padding-bottom: 3rem; }

.kb-case {
	--kb-case-gold: #f8c92a;
	--kb-case-gold-deep: #f9c125;
	--kb-case-ink: #212529;
	--kb-case-mute: rgba(33, 37, 41, .75);
	--kb-case-link: #0d6efd;
	--kb-case-heading: calc(1.275rem + .3vw);
}
@media (min-width: 1200px) {
	.kb-case { --kb-case-heading: 1.5rem; }
}

.kb-case__frame {
	padding-inline: 12px;
	overflow: hidden;
}

/* Breadcrumbs */
.kb-case__trail {
	margin: 24px 0;
	padding: 0 16px;
}
.kb-case__trail-link {
	color: var(--kb-case-gold);
	text-decoration: none;
}
.kb-case__trail-link:hover {
	color: var(--kb-case-gold-deep);
	text-decoration: underline;
}
.kb-case__trail-sep {
	margin: 0 10px;
	color: #999;
}
.kb-case__trail-here { color: #333; }

/* Page heading */
.kb-case__title {
	margin: 0 0 .5rem;
	color: var(--kb-case-ink);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}
.kb-case__when {
	margin: 0 0 3rem;
	color: var(--kb-case-mute);
	text-align: center;
}
.kb-case__icon {
	margin-right: .5rem;
	color: var(--kb-case-gold);
}

.kb-case__column {
	max-width: 900px;
	margin-inline: auto;
}

/* Main card */
.kb-case__sheet {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-bottom: 3rem;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
}

.kb-case__banner {
	padding: 24px;
	color: #fff;
	background-image: linear-gradient(135deg, var(--kb-case-gold), var(--kb-case-gold-deep));
}
.kb-case__who {
	display: flex;
	align-items: center;
}
.kb-case__face {
	display: block;
	width: 80px;
	height: 80px;
	margin-right: 1rem;
	border: 3px solid #fff;
	border-radius: 50%;
	object-fit: cover;
}
.kb-case__name {
	margin-bottom: 4px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}
.kb-case__profile {
	font-size: 1rem;
	line-height: 1.5;
	opacity: .9;
}
@media (min-width: 992px) {
	.kb-case__job { text-align: right; }
}
.kb-case__chip {
	display: inline-block;
	margin-bottom: .5rem;
	padding: 8px 16px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .2);
}
.kb-case__duration {
	margin-bottom: .5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.2;
}

/* Inner blocks of the card */
.kb-case__block { padding: 48px; }
.kb-case__block--photos { background: #f8f9fa; }
.kb-case__block--staff { background: #d1e7dd; }
.kb-case__block--report { border-top: 1px solid #dee2e6; }

.kb-case__heading {
	margin: 0 0 1.5rem;
	color: var(--kb-case-ink);
	font-size: var(--kb-case-heading);
	font-weight: 500;
	line-height: 1.2;
}
.kb-case__heading--center { text-align: center; }
.kb-case__heading--blue { color: var(--kb-case-link); }
.kb-case__heading--tight { margin-bottom: 1rem; }

/* Before / after photos */
.kb-case__shot {
	position: relative;
	overflow: hidden;
	border-radius: 15px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
}
.kb-case__shot-img {
	display: block;
	width: 100%;
	height: 250px;
	border-radius: .5rem;
	object-fit: cover;
}
.kb-case__shot-tag {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 8px;
	color: #fff;
	font-weight: 700;
	text-align: center;
	background: rgba(0, 0, 0, .7);
}
.kb-case__shot-tag--after { background: var(--kb-case-gold-deep); }
.kb-case__between { text-align: center; }
.kb-case__arrow {
	color: var(--kb-case-gold);
	font-size: 3rem;
	line-height: 1.5;
}

/* Facts grid */
.kb-case__facts { margin-bottom: 24px; }
.kb-case__fact {
	padding: 16px;
	border-radius: 6px;
	background: #f8f9fa;
}
.kb-case__fact-label {
	margin-bottom: 4px;
	color: var(--kb-case-ink);
	font-weight: 700;
}
.kb-case__fact-value { color: var(--kb-case-mute); }

.kb-case__haul {
	margin-bottom: 24px;
	padding: 16px;
	border-radius: 6px;
	background: #fff3cd;
}
.kb-case__haul-title {
	margin: 0 0 .5rem;
	color: #664d03;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
}
.kb-case__haul-title .kb-case__icon { color: #f57c00; }
.kb-case__haul-text {
	margin: 0;
	color: var(--kb-case-ink);
	line-height: 2;
}

/* Staff comment */
.kb-case__staff {
	display: flex;
	align-items: center;
	margin-bottom: 16px;
}
.kb-case__sender-face {
	display: block;
	width: 70px;
	height: 70px;
	margin-right: 16px;
	padding: 4px;
	border-radius: 50%;
	background: #fff;
}
.kb-case__sender {
	color: var(--kb-case-ink);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
}
.kb-case__sender-role {
	color: var(--kb-case-mute);
	font-size: .9rem;
	line-height: 1.5;
}
.kb-case__bubble {
	position: relative;
	padding: 24px;
	border-radius: .5rem;
	color: var(--kb-case-ink);
	line-height: 2;
	background: #fff;
	box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.kb-case__bubble::before {
	content: "";
	position: absolute;
	top: -9px;
	left: 30px;
	border: solid transparent;
	border-width: 0 10px 10px;
	border-bottom-color: #fff;
}

/* Report (post body) */
.kb-case__report {
	color: var(--kb-case-ink);
	line-height: 2;
}

/* Buttons under the card */
.kb-case__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-bottom: 3rem;
}
.kb-case__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 24px;
	border: 1px solid;
	border-radius: 50rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	user-select: none;
	transition: all .3s ease;
}
.kb-case__btn--back {
	color: #000;
	border-color: #f8f9fa;
	background: #f8f9fa;
}
.kb-case__btn--back:hover {
	color: #000;
	border-color: #e9ecef;
	background: #e9ecef;
	transform: translateY(-2px);
}
.kb-case__btn--call {
	color: #fff;
	border-color: var(--kb-case-gold);
	background: var(--kb-case-gold);
}
.kb-case__btn--call:hover {
	color: #fff;
	border-color: var(--kb-case-gold-deep);
	background: var(--kb-case-gold-deep);
}

/* Related cases */
.kb-case__more {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, .175);
	border-radius: .375rem;
	background: #fff;
	box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.kb-case__peer {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .175);
	border-radius: .375rem;
	background: #fff;
}
.kb-case__peer-img {
	display: block;
	width: 100%;
	height: 120px;
	border-radius: calc(.375rem - 1px) calc(.375rem - 1px) 0 0;
	object-fit: cover;
}
.kb-case__peer-body {
	flex: 1 1 auto;
	padding: 16px;
}
.kb-case__peer-title {
	margin: 0 0 8px;
	color: var(--kb-case-ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
}
.kb-case__peer-kind {
	margin: 0 0 8px;
	color: var(--kb-case-mute);
	font-size: .9rem;
	line-height: 1.5;
}
.kb-case__peer-link {
	color: var(--kb-case-link);
	font-size: .9rem;
	line-height: 1.5;
	text-decoration: none;
}
.kb-case__peer-link:hover { color: var(--kb-case-link); }

/* Tablet and below */
@media (max-width: 768px) {
	.kb-case__title { font-size: 1.5rem; }
	.kb-case__name { font-size: 1.2rem; }
	.kb-case__face { width: 60px; height: 60px; }
	.kb-case__shot-img { height: 180px; }
	.kb-case__arrow { font-size: 2rem; }
	.kb-case__actions { flex-direction: column; align-items: center; }
}

/* Phones */
@media (max-width: 576px) {
	.kb-case__trail { font-size: .9rem; }
	.kb-case__sheet { border-radius: 15px; }
	.kb-case__block { padding: 30px 20px; }
	.kb-case__arrow { margin: 10px 0; transform: rotate(90deg); }
	.kb-case__fact { margin-bottom: 15px; }
}
