/* Case study single — projects/Publication template design/Case Study Template.dc.html */
/* Break out of the theme container, as .ab-report does. */
.ab-case { width: 100vw; max-width: none; flex: 0 0 100vw; margin-left: calc(50% - 50vw); --ab-report-side: max(20px, calc((100vw - 1200px) / 2)); overflow-x: clip; background: #fff; color: #333; font-family: 'Aptos', 'Hanken Grotesk', -apple-system, sans-serif; }
.ab-case__head { max-width: 880px; margin: 0 auto; padding: 64px 24px 48px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.ab-case__title { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 46px; line-height: 1.16; color: #10363B; text-wrap: balance; }
.ab-case__meta { margin: 0; font-size: 15px; color: #5F5C5A; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.ab-case__meta strong { color: #10363B; font-weight: 600; }
.ab-case__hero { margin: 0 auto; max-width: 1200px; height: 620px; padding: 0 var(--ab-report-side, 20px); box-sizing: content-box; }
@media (min-width: 1240px) { .ab-case__hero { padding: 0; } }
.ab-case__tabs-fix, .ab-case .ab-report__tabs a { text-decoration: none; }
.ab-case__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-case__body { box-sizing: content-box; max-width: 680px; margin: 0 auto; padding: 72px 0 0; font-size: 18px; line-height: 1.65; }
.ab-case__body > :first-child { font-size: 21px; line-height: 1.55; color: #10363B; }
.ab-case__body h2, .ab-case__body h3 { margin: 24px 0 0; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 26px; line-height: 1.25; color: #10363B; }
.ab-case__body p { margin: 0 0 18px; }
.ab-case__foot { max-width: 680px; margin: 0 auto; padding: 40px 0 96px; display: flex; flex-direction: column; gap: 40px; }
.ab-case__pdf a { color: #008B99; font-weight: 600; }
.ab-case__people { background: radial-gradient(circle at 92% 20%, #FFDC88 0%, rgba(255,220,136,0) 45%), #FFF3CF; border-radius: 20px; padding: 32px 36px 20px; display: flex; flex-direction: column; }
.ab-case__eyebrow { margin: 0; padding-bottom: 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #008B99; }
.ab-case__person { display: flex; align-items: center; gap: 18px; padding: 16px 0; color: #10363B; text-decoration: none; }
.ab-case__person + .ab-case__person { border-top: 1px solid rgba(16,54,59,.12); }
.ab-case__person:hover { color: #008B99; }
.ab-case__person img, .ab-case__blank { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #E2E1E1; }
.ab-case__name { flex: 1; min-width: 0; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 22px; line-height: 1.25; }
.ab-case__go { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: #10363B; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
	.ab-case__head { padding: 36px 20px 28px; gap: 14px; }
	.ab-case__title { font-size: 30px; }
	.ab-case__hero { height: 260px; }
	.ab-case__body { max-width: none; padding: 40px 20px 0; font-size: 17px; }
	.ab-case__body > :first-child { font-size: 19px; }
	.ab-case__body h2, .ab-case__body h3 { font-size: 22px; }
	.ab-case__foot { max-width: none; padding: 32px 20px 64px; }
	.ab-case__people { padding: 24px 20px 12px; }
	.ab-case__name { font-size: 18px; }
	.ab-case__go { width: 40px; height: 40px; }
}

/* Body blocks from the design: margin pull-outs and the 3-across image row.
   Stacked in the column below 1240px, out in the margin above it. */
.ab-case__body .ab-cs-lead { font-size: 21px; line-height: 1.55; color: #10363B; }
.ab-cs-pull { margin: 8px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.ab-cs-pull--quote { border-top: 2px solid #008B99; padding-top: 18px; }
.ab-cs-pull--quote p { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 17px; line-height: 1.45; color: #10363B; }
.ab-cs-pull--quote span { font-size: 14px; line-height: 1.45; color: #5F5C5A; }
.ab-cs-pull--stat { background: #E7F4F5; border-radius: 20px; padding: 24px 26px; gap: 8px; }
.ab-cs-pull--stat strong { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 44px; line-height: 1; color: #008B99; }
.ab-cs-pull--stat span { font-size: 15px; line-height: 1.45; color: #10363B; }
@media (min-width: 1240px) {
	.ab-cs-pull { width: 220px; margin-top: 0; }
	.ab-cs-pull--left { float: left; margin-left: -276px; }
	.ab-cs-pull--right { float: right; margin-right: -276px; }
	.ab-cs-pull--stat + * , .ab-cs-pull--right + h2 { margin-top: 24px; }
}
.ab-cs-images { margin: 28px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: 360px;
	width: min(1312px, 100vw); margin-left: calc(50% - min(656px, 50vw)); clear: both; }
.ab-cs-images figure { margin: 0; }
.ab-cs-images img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
	.ab-cs-images { grid-template-columns: 1fr; height: auto; gap: 8px; }
	.ab-cs-images img { height: 240px; }
	.ab-case__body .ab-cs-lead { font-size: 19px; }
}

/* A block quote in the body is a side quote, like .ab-cs-pull--quote. */
.ab-case__body .wp-block-quote { margin: 8px 0 28px; padding: 18px 0 0; border: 0; border-top: 2px solid #008B99; background: none; display: flex; flex-direction: column; gap: 12px; }
.ab-case__body .wp-block-quote p { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 500; font-style: normal; font-size: 17px; line-height: 1.45; color: #10363B; }
.ab-case__body .wp-block-quote cite { font-size: 14px; font-style: normal; color: #5F5C5A; }
@media (min-width: 1240px) {
	.ab-case__body .wp-block-quote { float: left; width: 220px; margin: 0 0 0 -276px; }
}
/* Margin pull-outs sit beside the column, so nothing in it needs to clear them. */
.ab-case__more h2, .ab-case__more h3 { margin: 0 0 12px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 22px; color: #10363B; }
.ab-case__more p { margin: 0 0 10px; }
.ab-case__more a { color: #008B99; }

/* An existing row of images (columns holding nothing but images) is the design's 3-across row. */
.ab-case__body .wp-block-columns:has(img):not(:has(p, h2, h3, li)) {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 360px; gap: 8px; height: auto; clear: both; overflow: hidden;
	width: min(1312px, 100vw); margin: 28px 0 28px calc(50% - min(656px, 50vw)) !important; }
.ab-case__body .wp-block-columns:has(img):not(:has(p, h2, h3, li)) > .wp-block-column { margin: 0; min-width: 0; height: 360px; overflow: hidden; }
.ab-case__body .wp-block-columns:has(img):not(:has(p, h2, h3, li)) :is(.gb-container, figure, .gb-block-image, a) { height: 100%; margin: 0; padding: 0; }
.ab-case__body .wp-block-columns:has(img):not(:has(p, h2, h3, li)) img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.ab-case__body .wp-block-spacer:has(+ .wp-block-columns) { display: none; }
@media (max-width: 768px) {
	.ab-case__body .wp-block-columns:has(img):not(:has(p, h2, h3, li)) { grid-template-columns: 1fr; grid-auto-rows: 240px; width: 100vw; margin-left: -20px !important; }
	.ab-case__body .wp-block-columns:has(img):not(:has(p, h2, h3, li)) > .wp-block-column { height: 240px; }
	.ab-case__body .wp-block-columns:has(img):not(:has(p, h2, h3, li)) img { height: 240px; }
}

/* One body size: the old case studies set sizes per block (GenerateBlocks classes). */
.ab-case__body p:not(.ab-cs-lead), .ab-case__body li { font-size: 18px; line-height: 1.65; }
.ab-case__body li { margin-bottom: 6px; }
/* The older "blockquote" paragraph style is a side quote too. */
.ab-case__body p.blockquote { margin: 8px 0 28px; padding: 18px 0 0; border: 0; border-top: 2px solid #008B99; font-family: 'Montserrat', sans-serif; font-weight: 500; font-style: normal; font-size: 17px; line-height: 1.45; color: #10363B; }
@media (min-width: 1240px) { .ab-case__body p.blockquote { float: left; width: 220px; margin: 0 0 0 -276px; } }
@media (max-width: 768px) { .ab-case__body p:not(.ab-cs-lead), .ab-case__body li { font-size: 17px; } }

/* A long quote stays in the main column (ab_case_column_quotes). */
.ab-case__body .ab-cs-quote--column { float: none !important; width: auto !important; margin: 8px 0 32px !important; padding: 20px 0 0 !important; border-top: 2px solid #008B99; }
.ab-case__body .ab-cs-quote--column, .ab-case__body .ab-cs-quote--column p { font-family: 'Montserrat', sans-serif; font-weight: 500; font-style: normal; font-size: 21px !important; line-height: 1.5; color: #10363B; }
.ab-case__body .ab-cs-quote--column span, .ab-case__body .ab-cs-quote--column cite { font-family: inherit; font-size: 14px; color: #5F5C5A; }
@media (max-width: 768px) { .ab-case__body .ab-cs-quote--column, .ab-case__body .ab-cs-quote--column p { font-size: 19px !important; } }

/* Room above the footer whether or not the page has a foot section. */
.ab-case { padding-bottom: 96px; }
.ab-case__foot { padding-bottom: 0; }
/* More air around the 3-across image row. */
.ab-cs-images, .ab-case__body .wp-block-columns:has(img):not(:has(p, h2, h3, li)) { margin-top: 56px !important; margin-bottom: 56px !important; }
/* Related services: the publication report's pills, as links. */
.ab-case__services { display: flex; flex-direction: column; gap: 10px; }
.ab-case__services .ab-report__tags a { line-height: normal; font-size: 13px; color: #3A3A3A; background: #F0EFEE; border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.ab-case__services .ab-report__tags a:hover { background: #E7F4F5; color: #10363B; }
@media (max-width: 768px) { .ab-case { padding-bottom: 64px; } }

/* A rule between the article and the foot section. */
.ab-case__foot { margin-top: 56px; padding-top: 48px; border-top: 1px solid #E2E1E1; }
/* The design's dark service pills (Case Study Template). */
.ab-case__services .ab-report__tags { gap: 8px; }
.ab-case__services .ab-report__tags a { font-size: 15px; font-weight: 500; color: #fff; background: #10363B; border-radius: 999px; padding: 6px 14px; }
.ab-case__services .ab-report__tags a:hover { color: #fff; background: #008B99; }
.ab-case__services .ab-report__services-link, .ab-case__services .ab-report__services-link:hover { text-decoration: none; }

/* Featured Services: top of the right-hand column, beside the start of the article.
   Below 1240px it sits above the article instead. */
.ab-case__body > .ab-case__services { margin: 0 0 32px; }
@media (min-width: 1240px) {
	.ab-case__body > .ab-case__services { float: right; width: 220px; margin: 0 -276px 0 0; }
}

/* Featured Services heading: a label, not a link; pills wrap left to right. */
.ab-case__services { gap: 16px; }
.ab-case__body .ab-case__services h2.ab-report__services-link { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; color: #10363B; }
.ab-case__body .ab-case__services h2.ab-report__services-link:hover { color: #10363B; }
.ab-case__services .ab-report__tags { flex-wrap: wrap; flex-direction: row; }
