/*
 * Site-wide overrides.
 *
 * Moved from Appearance → Customize → Additional CSS (PCT-1322) so it is
 * versioned with the theme. Add new global one-offs here, not in the Customizer.
 * Landing page styles live in landing-pages.css.
 */

/* ── Posts and minibriefs ───────────────────────────────────────── */
article.minibrief.type-minibrief .in__date {
	display: none;
}

.in__post .in__date time {
	color: #033147;
	font-size: 18px;
}

.single-post .tpc-post-date time {
	color: #033147;
	font-size: 18px;
	font-style: italic;
}

.in__post .entry-title.in__title {
	padding: 0 !important;
}

.single-post .single-post-image.image-cover {
	box-shadow: none;
}

.single-post .single-post-image.image-cover img {
	box-shadow: 10px 10px 30px 0 rgba(0, 0, 0, 0.3);
	width: auto !important;
}

.post-wrapper-archive .in__image > a {
	display: block;
}

.postid-6173 .post-excerpt {
	display: none;
}

.broken_link,
a.broken_link {
	text-decoration: none !important;
}

/* Hide the download button on audio players. */
audio::-internal-media-controls-download-button,
audio::-webkit-media-controls-download-button {
	display: none !important;
}

audio::-webkit-media-controls-enclosure {
	overflow: hidden !important;
}

/* ── Header ─────────────────────────────────────────────────────── */
.page-header-mobile .et_pb_module:nth-child(1) img {
	height: 40px;
}

/* Reserve the desktop header height to avoid layout shift. */
.et_pb_section_0_tb_header {
	max-width: 100%;
	min-height: 119px;
	width: 100vw;
}

.et_pb_section_0_tb_header.et_pb_section {
	padding-bottom: 0;
	padding-top: 0;
}

@media only screen and (min-width: 768px) and (max-width: 980px) {
	.et_pb_section_0_tb_header {
		display: none !important;
	}
}

@media only screen and (max-width: 767px) {
	.et_pb_section_0_tb_header {
		display: none !important;
	}

	.et_pb_image_0_tb_header .et_pb_image_wrap img {
		width: auto;
	}
}

/* Page 19521: header overlaying the hero. */
body.page-id-19521 header.et-l--header div.et_pb_section_0_tb_header {
	position: absolute;
	width: 100%;
}

body.page-id-19521 div#top-bar {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}

body.page-id-19521 div#top-bar .et_pb_column_0_tb_header {
	width: 25%;
}

body.page-id-19521 div#top-bar .et_pb_column_1_tb_header {
	width: 50%;
}

body.page-id-19521 div#top-bar .et_pb_column_2_tb_header {
	width: 25%;
}

body.page-id-19521 div#top-bar .et_pb_column_1_tb_header ul#menu-top-menu {
	display: flex;
	height: 38px;
	justify-content: space-between;
}

body.page-id-19521 div#header-main-menu-row {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	max-width: 100%;
	padding: 17px 20px 5px;
	width: 100%;
}

/* ── Safari-only section offsets ────────────────────────────────── */
@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
	.home .et_pb_section_2,
	.page-id-23344 .et_pb_section_1,
	.page-id-23473 .et_pb_section_1 {
		margin-top: -10rem !important;
	}

	.page-id-20342 .et_pb_section_2 {
		margin-top: 17.5vw;
	}

	.page-id-23473 .et_pb_section_1 {
		margin-top: 0 !important;
	}

	.page-id-22326 .et_pb_section_1.et_pb_section {
		margin-bottom: -5% !important;
	}

	@media only screen and (max-width: 600px) {
		.home .et_pb_section_2 {
			margin-top: -25rem !important;
		}

		.page-id-20342 .et_pb_section_2 {
			margin-top: 2.5rem;
		}
	}
}

/* ── Single pages ───────────────────────────────────────────────── */
/* Accordion workaround. */
article#post-18899 .et_pb_accordion_item_0 {
	background: unset !important;
	border: unset !important;
}

article#post-18899 .et_pb_accordion_item_0 > .et_pb_toggle_title {
	cursor: unset !important;
}

article#post-18899 .et_pb_accordion_item.et_pb_accordion_item_0.et_pb_toggle_close .et_pb_toggle_title::before {
	content: unset !important;
}

body.page-id-21882 .in__pagination {
	margin-top: 2rem;
}

.page-id-22326 .in__filters-wrapper {
	background-color: transparent !important;
}

.page-id-22326 .in__pagination {
	margin-top: 20px;
}

.page-id-22326 .post-filters {
	display: none;
}

.page-id-20243 .filter-dropdown:has(.post-filter-post_tag),
.page-id-20243 .filter-dropdown:has(.post-filter-series) {
	display: none;
}

/* Equal-height archive cards with the "more" link pinned to the bottom. */
.page-id-20243 .post-wrapper-archive .in__row,
.page-id-22326 #blog-area .post-wrapper-archive .in__row {
	align-items: stretch;
}

.page-id-20243 .post-wrapper-archive .in__post,
.page-id-22326 #blog-area .post-wrapper-archive .in__post {
	display: flex;
	flex-direction: column;
}

.page-id-20243 .post-wrapper-archive .in__post > article,
.page-id-22326 #blog-area .post-wrapper-archive .in__post > article {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.page-id-20243 .post-wrapper-archive .in__post .in__content,
.page-id-22326 #blog-area .post-wrapper-archive .in__post .in__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.page-id-20243 .post-wrapper-archive .in__post .in__content .in__excerpt,
.page-id-22326 #blog-area .post-wrapper-archive .in__post .in__content .in__excerpt {
	margin-bottom: 4rem;
}

.page-id-20243 .post-wrapper-archive .in__post .more-link-wrap,
.page-id-22326 #blog-area .post-wrapper-archive .in__post .more-link-wrap {
	margin-top: auto;
}

/* ── Single events ──────────────────────────────────────────────── */
.postid-22895 .et_pb_section_0_tb_body.et_pb_section,
.postid-22897 .et_pb_section_0_tb_body.et_pb_section {
	padding-bottom: 200px !important;
}

.single-events.postid-22161 #tfa_2454,
.single-events.postid-22161 #tfa_2432,
.single-events.postid-22161 .event-block.event-gallery,
.single-events.postid-22897 .event-block.event-gallery,
.single-events.postid-22895 .event-block.event-gallery {
	display: none;
}

.single-events.postid-22161 .et_pb_section.et_pb_section_0_tb_body {
	padding-bottom: 15vw;
	padding-top: 10vw !important;
}

.single-events.postid-22161 #tfa_2445-D {
	display: flex;
	flex-direction: column;
}

@media only screen and (max-width: 1100px) {
	.single-events.postid-22161 .et_pb_section.et_pb_section_0_tb_body {
		padding-bottom: 5vw;
	}
}

.postid-22331 .event-block.event-gallery {
	display: none;
}

/* PCT-1290 - Data Centers event: reduce hero gap above event image (desktop only). */
@media (min-width: 981px) {
	.single-events.postid-25133 .et_pb_section_0_tb_body.et_pb_section {
		padding-bottom: 200px !important;
	}
}
