  /* 
Theme Name: Babcock
Theme URI: https://www.babcockinternational.com
Description: Babcock is a child theme of GeneratePress
Author:	Chris Sparshott
Author URI: https://www.babcockinternational.com
Template: generatepress
Version: 1.0.0
Text Domain: babcock
*/

:root {
	--space-0: 0;
  	--space-1: 0.25rem; /* 4px */
  	--space-2: 0.5rem;  /* 8px */
  	--space-3: 1rem;    /* 16px */
  	--space-4: 1.5rem;  /* 24px */
  	--space-5: 2rem;    /* 32px */
  	--space-6: 3rem;    /* 48px */
	
	--space-05: calc(var(--space-1) / 2); /* 2px */
}

/* = cursors */
.cursor-default {
	cursor: default;
}

.cursor-pointer {
	cursor: pointer;
}

/* = block link */
.block-link {
	position: relative;
}

.block-link a::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9;
}

.block-link img {
	transition-property: transform;
	transition-duration: 0.2s;
	transition-timing-function: ease-in-out;
}

.block-link:hover img {
	transform: scale(1.1);
}

/* = fallback featured image */
.has-post-thumbnail .gb-block-image + .gb-block-image {
    display: none;
}

figure.gb-block-image {
	height: 100%;
}


/* = underline */
.underline,
.underline * {
	text-decoration: underline !important;
}

.hover\:underline:hover,
.hover\:underline *:hover {
	text-decoration: underline !important;
}

.no-underline,
.no-underline * {
	text-decoration: none !important;
}

.hover\:no-underline:hover,
.hover\:no-underline *:hover {
	text-decoration: none !important;
}

/**/
.aspect-auto {
	aspect-ratio: auto;
}

.aspect-square {
	aspect-ratio: 1/1;
}

.aspect-portrait {
	aspect-ratio: 5/4;
}

.aspect-video {
	aspect-ratio: 16/9;
}

/**/
body.single-post,
body.search,
body.error404 {
	.site-content {
		padding: 0 30px 60px;

		@media (min-width: 1025px) {
			padding-left: 40px;
			padding-right: 40px;
		}
	}
}

/**/
#breadcrumbs p {
	margin: 0;
	font-size: 14px;
}

/*===================
 * 
 *  Form styles 
 * 
 *=================== */

/* CF7 honeypot */
p:has([name^="feedback_note-"]) {
	position: absolute;
	top: -9999999px;
}

/* search fields (header modal, search page) */
[type="search"] {
	margin-top: 0;
	background: var(--grey-background);
}

body.error404 .wp-block-search__input,
body.search-no-results .wp-block-search__input {
	border: 1px solid var(--grey-border);
	border-right: none;
	background: var(--grey-background);
}

body.error404 .wp-block-search__input + button,
body.search-no-results .wp-block-search__input + button {
	margin-left: 0;
}



/*===================
 * 
 *  Card styles 
 * 
 *=================== */
.card--resource:hover .card--resource__image::before {
	transform: scale(1.2);
}

.card--resource .card--resource__image::before {
	transition-property: all;
	transition-duration: 0.3s;
	transition-timing-function: ease-in-out;
}


/*===================
 * 
 * Results rows
 * 
 * These appear on:
 * - Results & Presentations
 * - Financial Calendar
 * - Annual Reports
 * 
 *=================== */
.gb-tabs__item:has(> .results-row) {
	overflow-x: auto;
}

.gb-tabs__item > .results-row,
.gb-tabs__item > .results-row + .gb-query-loop-wrapper .results-row {
	width: fit-content;
	min-width: 100%;
}


/*===================
 * 
 * Page/Post Specific Styles
 * As defined by body class
 * 
 *=================== */
.single-post .entry-content figure:has(iframe[src*="vimeo.com"]) {
	clear: both;
}