/* Blog archive 955:9095 / 1489:12463 and single 1485:12067 / 1489:12966. */

.blog-hero,
.blog-index,
.blog-card,
.blog-sidebar,
.single-story,
.blog-contact-cta { box-sizing: border-box; }

/* Archive hero ----------------------------------------------------------- */
.blog-hero {
	position: relative;
	z-index: 0;
	height: 621px;
	overflow: hidden;
	background: #333;
}
.blog-hero__image,
.blog-hero__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.blog-hero__image { object-fit: cover; object-position: center 56%; }
.blog-hero__shade { background: rgba(0,0,0,.2); }
.blog-hero__content {
	position: absolute;
	/* Match the shared 1360px page container used by the other full-width
	   heroes. The gutter stays 40px at the 1440px design frame and grows
	   evenly on wider screens instead of leaving the copy at the viewport edge. */
	left: max(var(--gutter), calc((100vw - var(--content-w)) / 2));
	bottom: 36px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	max-width: 777px;
	color: #fff;
}
.blog-hero__eyebrow {
	display: inline-flex;
	padding: 4px;
	border-radius: 2px;
	background: rgba(255,255,255,.2);
	font: 600 12px/12.15px var(--font-heading);
	letter-spacing: -.048px;
}
.blog-hero__title {
	max-width: 777px;
	margin: -12px 0 0;
	font: 700 72px/75.2px var(--font-heading);
	letter-spacing: -.4px;
	white-space: normal;
}
.blog-hero__body {
	width: 672px;
	margin: -12px 0 0;
	font: 400 16px/20.2px var(--font-body);
}
.blog-hero__breadcrumb { display: none; }
.blog-site-body { margin-top: 0 !important; }

/* Archive body ----------------------------------------------------------- */
/* The redesign (955:9095) dropped the sidebar from the index: the body is one
   column of category bands. Figma puts the first heading 50 below the hero and
   the footer 55 below the last grid. */
.blog-index {
	width: 100%;
	margin: 0 auto;
	padding-block: 50px 55px;
}

/* Band ------------------------------------------------------------------- */
.blog-band + .blog-band { margin-top: 55px; }
.blog-band__heading {
	margin: 0 0 33px;
	font: var(--fw-bold) 48px/50.4px var(--font-heading);
	letter-spacing: var(--ls-tight);
	color: var(--text-heading-primary, #333);
}
.blog-band__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}
.blog-search {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 36px;
	margin: 0 0 24px;
	padding: 0 23px 0 12px;
	border: 0;
	border-radius: 2px;
	background: #f5f6f6;
	color: #6b6d6f;
}
.blog-search svg { flex: 0 0 16px; }
.blog-search input {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #3c3d3d;
	font: 400 12.814px/15.377px var(--font-body);
}
.blog-search input::placeholder { color: #6b6d6f; opacity: 1; }
.blog-index__empty { margin: 0; font: 400 16px/20.2px var(--font-body); color: #6b6d6f; }

/* Collapse order per _tokens-layout.css: 3-col -> 2-col at tablet. The mobile
   block further down keeps 2-col with the mobile card, as drawn. */
@media (max-width: 1023px) {
	.blog-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Archive card ----------------------------------------------------------- */
.blog-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 12px;
}
.blog-card__media {
	position: relative;
	display: block;
	width: 100%;
	height: 315px;
	overflow: hidden;
	border-radius: 2px;
	background: #f5f6f6;
}
.blog-card__media > img,
.blog-card__hover-media {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}
.blog-card__media > img { transition: filter 320ms ease, transform 600ms cubic-bezier(.22,1,.36,1); }
.blog-card__hover-media { z-index: 2; opacity: 0; transition: opacity 220ms ease; }
.blog-card.is-video-active .blog-card__hover-media { opacity: 1; }
.blog-card__tint {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(212,25,39,.56);
	opacity: 0;
	transition: opacity 320ms ease;
}
.blog-card--image:hover .blog-card__media > img { filter: blur(3px); transform: scale(1.025); }
.blog-card--image:hover .blog-card__tint { opacity: 1; }
.blog-card__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.blog-card__title {
	width: 100%;
	margin: 0;
	font: 700 20px/24px var(--font-heading);
	color: #333;
}
.blog-card__title a,
.blog-card__more { color: inherit; }
.blog-card__title a { text-decoration: none; }
.blog-card__excerpt {
	width: 100%;
	margin: 0;
	color: #6b6d6f;
	font: 400 14.416px/17.3px var(--font-body);
}
.blog-card__more {
	font: 400 14px/20px var(--font-body);
	text-underline-offset: 2px;
}

/* Archive pagination ----------------------------------------------------- */
.blog-index .navigation.pagination { grid-column: 1 / -1; margin: 48px 0 0; }
.blog-index .nav-links { display: flex; align-items: center; gap: 8px; }
.blog-index .page-numbers {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #e6e7e7;
	border-radius: 2px;
	color: #3c3d3d;
	font: 700 12px/16px var(--font-heading);
	text-decoration: none;
}
.blog-index .page-numbers.current { border-color: #d41927; background: #d41927; color: #fff; }

/* Shared archive/single sidebar ----------------------------------------- */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding-top: 24px; }
.blog-sidebar-card {
	display: flex;
	height: 488px;
	flex-direction: column;
	overflow: hidden;
	border-radius: 2px;
	background: #f5f6f6;
}
.blog-sidebar-card__media { height: 323px; overflow: hidden; }
.blog-sidebar-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-sidebar-card__copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.blog-sidebar-card__copy h2 { margin: 0; color: #333; font: 700 25.313px/30.375px var(--font-heading); }
.blog-sidebar-card__copy p { margin: 0; color: #6b6d6f; font: 400 12.814px/15.377px var(--font-body); }
.blog-sidebar-card__copy a {
	display: flex;
	width: 100%;
	height: 46px;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	border: 1px solid #d41927;
	border-radius: 2px;
	background: #d41927;
	color: #fff;
	font: 800 14.416px/17.3px var(--font-body);
	text-decoration: none;
}

.blog-newsletter {
	box-sizing: border-box;
	display: flex;
	min-height: 250px;
	flex-direction: column;
	gap: 16px;
	padding: 38px 16px 23px;
	background: #d41927;
	color: #fff;
}
.blog-newsletter__title {
	margin: 0;
	font: 700 20px/24px var(--font-heading);
	text-align: center;
}
.blog-newsletter__form { display: flex; flex-direction: column; gap: 6px; }
.blog-newsletter__input {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	padding: 10px 12px;
	border: 0;
	border-radius: 2px;
	background: #fff;
	color: #3c3d3d;
	font: 400 16px/20.2px var(--font-body);
	box-shadow: 0 1px 2px rgba(16,24,40,.05);
}
.blog-newsletter__input::placeholder { color: #afb1b1; opacity: 1; }
.blog-newsletter__privacy { margin: 0 0 10px; color: #fff; font: 400 12.814px/15.377px var(--font-body); }
.blog-newsletter__privacy a { color: inherit; }
.blog-newsletter__button {
	height: 46px;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 2px;
	background: rgba(255,255,255,.12);
	color: #fff;
	font: 800 14.416px/17.3px var(--font-body);
	backdrop-filter: blur(5px);
}

/* Single story ----------------------------------------------------------- */
.single-story-site-body { background: #fff; }
.single-story { width: 100%; max-width: 1440px; margin: 0 auto; }
.single-story__breadcrumb {
	display: flex;
	height: 20px;
	align-items: center;
	gap: 2px;
	padding: 0 32px;
	overflow: hidden;
	color: #3c3d3d;
	font: 400 10.125px/12.15px var(--font-body);
	white-space: nowrap;
}
.single-story__breadcrumb a { color: inherit; text-decoration: none; }
.single-story__hero {
	display: grid;
	grid-template-columns: 688px minmax(0, 648px);
	align-items: center;
	justify-content: space-between;
	padding: 48px 64px 48px 40px;
}
.single-story__intro { display: flex; flex-direction: column; gap: 24px; padding: 32px 64px; }
.single-story__title { margin: 0; color: #333; font: 700 48px/50.4px var(--font-heading); letter-spacing: -.4px; }
.single-story__lede { margin: 0; color: #6b6d6f; font: 400 16px/20.2px var(--font-body); }
.single-story__featured { height: 440px; overflow: hidden; border-radius: 2px; background: #f5f6f6; }
.single-story__featured img,
.single-story__featured iframe,
.single-story__featured video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }

.single-story__layout {
	display: grid;
	grid-template-columns: 864px 393px;
	column-gap: 119px;
	align-items: start;
}

/* With the sidebar switched off there is no second column to fill, and the
   fixed 393px track would leave the story at 864 beside a third of a page of
   nothing. :has() asks the layout whether a sidebar is actually in it, so one
   rule covers both states without the template having to add a class. */
.single-story__layout:not(:has(.blog-sidebar)) {
	grid-template-columns: minmax(0, 1fr);
	column-gap: 0;
}
.single-story__content { min-width: 0; padding: 48px 120px 48px 104px; color: #6b6d6f; }
.single-story__content h2 {
	max-width: 592px;
	margin: 48px 0 24px;
	color: #333;
	font: 700 38px/42px var(--font-heading);
}
.single-story__content > .single-story__section:first-child h2,
.single-story__editor-content > h2:first-child { margin-top: 48px; }
.single-story__content p,
.single-story__content li { font: 400 16px/20.2px var(--font-body); }
.single-story__content p { margin: 0 0 20px; }
.single-story__content ul,
.single-story__content ol { padding-left: 22px; }
.single-story__content a { color: #d41927; }
.single-story__section-image,
.single-story__editor-content figure.wp-block-image,
.single-story__editor-content > p > img {
	width: 640px;
	height: 440px;
	margin: 48px 0 0;
	overflow: hidden;
	border-radius: 2px;
}
.single-story__section-image img,
.single-story__editor-content figure.wp-block-image img,
.single-story__editor-content > p > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 96, not 48: 1489:12435 puts the sidebar at y=632 against a body that starts
   at 536, which is exactly the top of the first H2 (1485:12071). The content
   column reaches the same 96 as 48 padding plus the first heading's 48 margin,
   so the two columns start level. */
.single-story__layout > .blog-sidebar { padding-top: 96px; }

/* Contact CTA ------------------------------------------------------------ */
.blog-contact-cta { padding: 80px 16px; }
.blog-contact-cta__inner {
	position: relative;
	display: flex;
	height: 400px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 2px;
}
.blog-contact-cta__inner > img,
.blog-contact-cta__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.blog-contact-cta__inner > img { object-fit: cover; object-position: center 58%; }
.blog-contact-cta__shade { background: rgba(0,0,0,.1); }
.blog-contact-cta__content { position: relative; display: flex; width: 848px; flex-direction: column; align-items: center; gap: 16px; color: #fff; text-align: center; }
.blog-contact-cta__content h2 { margin: 0; font: 700 64px/64px var(--font-heading); letter-spacing: -.4px; }
.blog-contact-cta__content p { margin: 0; font: 400 18px/28px var(--font-heading); }
.blog-contact-cta__content a {
	display: flex;
	min-width: 177px;
	height: 60px;
	align-items: center;
	justify-content: center;
	padding: 0 28px;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 2px;
	background: rgba(255,255,255,.12);
	color: #fff;
	font: 800 14.416px/17.3px var(--font-body);
	text-decoration: none;
	backdrop-filter: blur(5px);
}

/* Archive's desktop design uses the sidebar signup; mobile uses the footer one. */
body.blog:not(.single-post) .site-footer .footer__newsletter { display: none; }

@media (hover: hover) {
	.blog-card__title a:hover,
	.blog-card__more:hover { color: #d41927; }
	.blog-sidebar-card__copy a:hover { background: #ad101c; border-color: #ad101c; }
	.blog-contact-cta__content a:hover,
	.blog-newsletter__button:hover { background: rgba(255,255,255,.2); }
}

@media (max-width: 767px) {
	.blog-hero { height: 700px; }
	.blog-hero__image { object-position: 47% center; }
	.blog-hero__content { left: 16px; right: 16px; bottom: 24px; gap: 12px; max-width: none; }
	.blog-hero__eyebrow { font-size: 12px; }
	.blog-hero__title { width: 100%; max-width: none; margin: 0; font-size: 48px; line-height: 50.4px; }
	.blog-hero__body { width: 100%; margin: 0; font-size: 16px; line-height: 20.2px; }
	.blog-hero__breadcrumb {
		position: absolute;
		top: 81px;
		left: 16px;
		display: flex;
		gap: 2px;
		color: #f5f6f6;
		font: 400 12.814px/15.377px var(--font-body);
	}
	.blog-hero__breadcrumb a { color: inherit; text-decoration: none; }

	.blog-index {
		display: block;
		width: 100%;
		padding-block: 0;
	}
	.blog-search { width: 369px; max-width: 100%; margin-bottom: 16px; }
	/* 1489:12463 insets the mobile grid by 12, not the 16 the global gutter
	   drops to. Per-section gutters are by design on this build. */
	.blog-band > .container { padding-inline: 12px; }
	.blog-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
	/* The bands sit flush: the heading's own 24 top and bottom is the gap. */
	.blog-band + .blog-band { margin-top: 0; }
	.blog-band__heading {
		margin: 0;
		padding-block: 24px;
		font-size: 32px;
		line-height: 34px;
	}
	.blog-card { gap: 12px; }
	.blog-card__media { height: auto; aspect-ratio: 1; }
	.blog-card__title { font-size: 16px; line-height: 18px; }
	.blog-card__excerpt { font-size: 14.416px; line-height: 17.3px; }
	.blog-card__more { font-size: 14px; line-height: 20px; }
	.blog-card__copy { gap: 12px; }
	.blog-sidebar { display: none; }
	.blog-index .navigation.pagination { margin-top: 32px; }
	body.blog:not(.single-post) .site-footer .footer__newsletter { display: flex; }

	.single-story__breadcrumb {
		box-sizing: border-box;
		height: 41px;
		padding: 0 16px;
		border-bottom: 1px solid #e5e7eb;
		font-size: 12.814px;
		line-height: 15.377px;
	}
	.single-story__breadcrumb span[aria-current] { overflow: hidden; text-overflow: ellipsis; }
	.single-story__hero { display: flex; flex-direction: column; align-items: stretch; padding: 0; }
	.single-story__intro { gap: 24px; padding: 32px 24px; }
	.single-story__title { font-size: 32px; line-height: 34px; }
	.single-story__lede { font-size: 16px; line-height: 20.2px; }
	.single-story__featured { width: 345px; height: 287px; margin: 0 auto; }
	.single-story__layout { display: block; }
	.single-story__content { box-sizing: border-box; width: 100%; padding: 0; }
	.single-story__section,
	.single-story__editor-content { padding: 32px 24px 0; }
	.single-story__content h2 { margin: 0 0 24px; font-size: 32px; line-height: 34px; letter-spacing: -.4px; }
	.single-story__content > .single-story__section:first-child h2,
	.single-story__editor-content > h2:first-child { margin-top: 0; }
	.single-story__content p,
	.single-story__content li { font-size: 16px; line-height: 20.2px; }
	.single-story__section-image,
	.single-story__editor-content figure.wp-block-image,
	.single-story__editor-content > p:has(> img) {
		width: 100vw;
		height: 440px;
		margin: 32px 0 0 -24px;
		border-radius: 2px;
	}
	.single-story__editor-content > p:has(> img) { overflow: hidden; }
	.single-story__editor-content > p > img { width: 100%; height: 100%; margin: 0; object-fit: cover; }

	.blog-contact-cta { padding: 32px 16px; }
	.blog-contact-cta__inner { height: 246px; }
	.blog-contact-cta__inner > img { object-position: center center; }
	.blog-contact-cta__content { width: 100%; gap: 16px; padding: 0 16px; }
	.blog-contact-cta__content h2 { font-size: 32px; line-height: 34px; }
	.blog-contact-cta__content p { max-width: 289px; font: 800 12.814px/15.377px var(--font-body); }
	.blog-contact-cta__content a { min-width: 0; height: 60px; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.blog-card__media > img,
	.blog-card__hover-media,
	.blog-card__tint { transition: none; }
}

/* Video-link affordance ---------------------------------------------------
   A post whose featured video opens at the provider leaves the site on click,
   so it says so. The badge is the Projects one (.projects__play-btn, 44x44,
   pill, blurred white) rather than a new invention - that treatment is already
   in the design and is already what a video means on this site. */
.blog-card__play,
.single-story__play {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 3;
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 150px;
	background: rgba(255, 255, 255, .15);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	transition: background var(--dur-fast) linear;
}
.single-story__featured--link { position: relative; }
.single-story__featured-link {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	border-radius: 2px;
}
.single-story__featured-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.single-story__featured-link:focus-visible {
	outline: 2px solid var(--btn-stroke-focused);
	outline-offset: 2px;
}

/* The badge sits inside .single-story__featured-link, whose `img` rule is
   `width:100%;height:100%` for the poster - that was stretching the 12x16
   play glyph to fill the whole 44px pill, so the story page showed a bare
   triangle where every other play badge shows the glass circle. Scoped
   higher than both poster rules rather than relying on source order. */
.blog-card__play img,
.single-story__featured .single-story__play img,
.single-story__play img {
	display: block;
	flex: none;
	width: 12px;
	height: 16px;
	object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
	.blog-card--external:hover .blog-card__play,
	.single-story__featured-link:hover .single-story__play { background: rgba(255, 255, 255, .3); }
}
@media (prefers-reduced-motion: reduce) {
	.blog-card__play,
	.single-story__play { transition: none; }
}
