/*
 * Handoff stack. Theme body is Roboto, and that rule was beating the handoff's
 * Denim headings/links because both live in the same CSS layer.
 * Denim: headings, links, buttons. Roboto: body copy.
 */
/*
 * Handoff canvas is #f5f5f7. Content cards use bg-white. Event cards use bg-lgray
 * so white thumbnails stay visible. bg-card is not in the built stylesheet.
 */
body.sima-revamp-shell:has(#sima-newsroom),
body.sima-revamp-shell:has(#sima-newsroom) .palette-revamp-main,
body.sima-revamp-shell:has(#sima-newsroom) #sima-revamp,
#sima-newsroom .newsroom-tabbar {
	background-color: #f5f5f7;
}

#sima-newsroom {
	font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#sima-newsroom :is(h1, h2, h3, h4, h5, h6, a, button),
#sima-newsroom a :is(h1, h2, h3, h4, h5, h6, p, span, div) {
	font-family: "Denim", ui-sans-serif, system-ui, sans-serif;
}

#sima-newsroom .newsroom-card-title {
	margin: 0;
	font-family: "Roboto", ui-sans-serif, system-ui, sans-serif !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.375;
}

#sima-newsroom .newsroom-dive-card {
	height: 100%;
}

#sima-newsroom .newsroom-dive-media {
	aspect-ratio: 16 / 9;
	flex-shrink: 0;
}

#sima-newsroom .newsroom-dive-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

#sima-newsroom .newsroom-dive-title {
	flex-grow: 1;
	margin-bottom: 1.25rem;
}

#sima-newsroom .newsroom-icon-calendar,
#sima-newsroom .newsroom-filter-icon {
	color: #5998dd;
}

#sima-newsroom .newsroom-filter-logo {
	background-color: currentColor;
	-webkit-mask-image: var(--newsroom-icon);
	mask-image: var(--newsroom-icon);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

#sima-newsroom .newsroom-icon-book {
	color: #d26728;
}

#sima-newsroom .newsroom-event-date,
#sima-newsroom .newsroom-event-date :is(div, span) {
	font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
}

#sima-newsroom .font-medium {
	font-weight: 500;
}

#sima-newsroom .font-semibold {
	font-weight: 600;
}

#sima-newsroom .font-bold,
#sima-newsroom .newsroom-dive-badge {
	font-weight: 700;
}

#sima-newsroom .font-extrabold {
	font-weight: 800;
}

#sima-newsroom .hide-scrollbar {
	scrollbar-width: none;
}

#sima-newsroom .hide-scrollbar::-webkit-scrollbar {
	display: none;
}

#sima-newsroom .newsroom-tabbar {
	top: var(--revamp-header-height, 5rem);
}

#sima-newsroom .newsroom-region-option.is-active[data-region="us"] {
	background-color: color-mix(in srgb, #5998dd 12%, #fff);
	color: #5998dd;
}

#sima-newsroom .newsroom-region-option.is-active[data-region="global"] {
	background-color: color-mix(in srgb, #2a9c4f 12%, #fff);
	color: #2a9c4f;
}

#sima-newsroom .newsroom-search-field {
	position: relative;
}

#sima-newsroom #newsroom-search {
	-webkit-appearance: none;
	appearance: none;
}

#sima-newsroom #newsroom-search::-webkit-search-decoration,
#sima-newsroom #newsroom-search::-webkit-search-cancel-button,
#sima-newsroom #newsroom-search::-webkit-search-results-button,
#sima-newsroom #newsroom-search::-webkit-search-results-decoration {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: none !important;
	width: 0;
	height: 0;
}

#sima-newsroom .newsroom-search-icon {
	position: absolute !important;
	top: 50% !important;
	left: 0.875rem !important;
	z-index: 1;
	display: block !important;
	width: 1rem !important;
	height: 1rem !important;
	margin: 0 !important;
	pointer-events: none;
	transform: translateY(-50%) !important;
	translate: none !important;
}

#sima-newsroom .newsroom-search-clear {
	position: absolute !important;
	top: 50% !important;
	right: 0.5rem !important;
	z-index: 2;
	display: none;
	width: 1.5rem !important;
	height: 1.5rem !important;
	min-width: 0;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 9999px;
	background: transparent !important;
	line-height: 0;
	transform: none !important;
	translate: 0 -50%;
	align-items: center;
	justify-content: center;
}

#sima-newsroom .newsroom-search-clear svg {
	display: block !important;
	width: 0.875rem !important;
	height: 0.875rem !important;
	max-width: none;
}

#sima-newsroom .newsroom-search-clear.is-on {
	display: inline-flex !important;
}

#sima-newsroom .newsroom-search-open:not(.hidden) {
	display: inline-flex;
}

#sima-newsroom .newsroom-clear:not(.hidden) {
	display: inline-flex;
}

#sima-newsroom .newsroom-facet:hover {
	background-color: color-mix(in srgb, #5998dd 7%, transparent);
}

/* Handoff pills. Theme bg-muted is #5a6a7e, which turns industry tags slate. */
#sima-newsroom .newsroom-pill-industry {
	background-color: hsl(240 5% 92%);
	color: hsl(240 5% 40%);
}

#sima-newsroom a.newsroom-pill-industry:hover {
	background-color: hsl(240 5% 12%);
	color: #fff;
}

#sima-newsroom .newsroom-pill-product {
	border: 1px solid color-mix(in srgb, #5998dd 35%, transparent);
	background-color: color-mix(in srgb, #5998dd 10%, transparent);
	color: #5998dd;
}

#sima-newsroom a.newsroom-pill-product:hover {
	background-color: #5998dd;
	color: #fff;
}

/* Handoff menu hover is light gray. Theme hover:bg-muted is #5a6a7e. */
#sima-newsroom .dropdown-content > button:hover,
#sima-newsroom .dropdown-content > button:focus-visible {
	background-color: hsl(240 5% 92%);
	color: hsl(240 5% 12%);
}

#sima-newsroom .dropdown-content > button.is-selected:not(:hover) {
	background-color: color-mix(in srgb, #5998dd 10%, #fff);
	color: #5998dd;
}

#sima-revamp .newsroom-fade {
	animation: newsroomHeroFade 400ms ease-out;
}

@keyframes newsroomHeroFade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#sima-revamp .newsroom-fade {
		animation: none;
	}
}
