/* Cresset — elementor/widgets.css
   Elementor widget overrides (breadcrumbs, text/counter widgets, custom
   links, pagination).
   Split from style.css 2026-08-22 (Stage 1); rules verbatim. */

/* Yoast breadcrumbs - underline copy */
#breadcrumbs {
	text-decoration: none;
}

/* text widget - remove last margin on paragraphs */
.elementor-widget-text-editor .elementor-widget-container p:last-of-type {
	margin-bottom: 0;
}

/* counter widget - add an underline */
.elementor-counter .elementor-counter-title {
	display: block !important;
	text-align: center;
}

.elementor-counter-title:before {
	content: " ";
	display: block;
	position: relative;
	width: 40px;
	height: 1px;
	margin: 12px auto 8px;
	background: #005172;
}

div.elementor-counter .elementor-counter-number-wrapper {
	display: block;
	text-align: center;
}

div.elementor-counter .elementor-counter-number-prefix,
div.elementor-counter .elementor-counter-number,
div.elementor-counter .elementor-counter-number-suffix {
	display: inline-block;
	flex-grow: 0;
	margin-right: -.15em;
	margin-left: -.15em;
}

/* custom bullet points */
.single-post .elementor-widget-theme-post-content ul,
.elementor-widget-text-editor ul {
	margin: 0;
	padding-inline-start: 0.75em;

	&.wp-block-list {
		padding-inline-start: 1em;
	}
}

.single-post .elementor-widget-theme-post-content ul li,
.elementor-widget-text-editor ul li {
	padding: 0 0 .8em .8em;
}

.single-post .elementor-widget-theme-post-content ul li::marker,
.elementor-widget-text-editor ul li::marker {
	color: #005172;
}

.light ul li::marker,
.elementor-widget-text-editor.light ul li::marker {
	color: #fff;
}

/* post heading margins */
.single-post .elementor-widget-theme-post-content h2:not(.elementor-21328 h2, .exclude-h-margin h2) {
	margin-top: 1em;
}

.single-post .elementor-widget-theme-post-content h3:not(.elementor-21328 h3, .exclude-h-margin h3) {
	margin-top: 0.8em;
}



/* custom link style */
/*Pages also have the .elementor-widget-theme-post-content so we can't target that by itself 
 * or all other links on page (like button or widgets) will get the styling*/

.single-post .elementor-widget-theme-post-content a,
.elementor-widget-text-editor:not(.single-page-header) a,
.single-event .elementor-widget-theme-post-content a:not(.btn-primary):not(.btn-tertiary),
.elementor-element.elementor-widget.elementor-widget-theme-post-content a:not(.btn-primary):not(.btn-tertiary):not(.elementor-button):not(.elementor-widget-container a) {
	color: #414042;
	font-weight: 500;
	text-decoration: none;
	background-image: linear-gradient(#ffffff, #ffffff),
		linear-gradient(#D1D3D4, #D1D3D4),
		linear-gradient(#000000, #000000);
	background-size: 10px 1px, 100% 1px, 0 1px;
	background-position: calc(10px * -1) 100%, 100% 100%, 0 100%;
	background-repeat: no-repeat;
	transition: background-size .5s ease-out, background-position .5s ease-out, color .5s ease;
}

.single-team_bio .elementor-widget-theme-post-content a:hover,
.single-post .elementor-widget-theme-post-content a:hover,
.single-event .elementor-widget-theme-post-content a:hover,
.elementor-widget-text-editor a:not(.btn-primary):not(.btn-tertiary):hover,
.elementor-element.elementor-widget.elementor-widget-theme-post-content a:not(.btn-primary):not(.btn-tertiary):not(.elementor-button):hover {
	color: #414042;
	background-size: 10px 1px, 0 1px, 100% 1px;
	background-position: calc(100% + 10px) 100%, 100% 100%, 0 100%;
}

/** Hide prev/next on first/last page, this applies to ALL paginated Elementor widgets. **/
span.page-numbers:not(.current, .dots) {
	display: none;
}
