/* 
Theme Name:		derelictproperty
Theme URI:		https://derelict-property.co.uk
Description:	derelictproperty is a child theme of GeneratePress, created by Chris Sparshott
Author:			Chris Sparshott
Author URI:		https://sparshott.co.uk
Template:		generatepress
Version:		1.0.0
Text Domain:	derelictproperty
*/

:root {
	--link-color: #ff4e00;
}

body {
	max-width: 100vw;
	overflow-x: hidden;
}

/* utilities */
.capitalize { text-transform: capitalize; }
.capitalise { text-transform: capitalize; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }

.text--center {
	text-align: center;
}

.overflow--hidden {
	overflow: hidden;
}

/* box shadow */
.shadow {
	box-shadow: 0 0 10px 0 rgb(0 0 0 / 10%);
}

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

.block-link a:before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: transparent;
}

.block-link h2 a:before {
	z-index: 10;
}

/* table styles */
.table--fixed {
	table-layout: fixed;
}

.table--striped, 
.table--striped th, 
.table--striped td {
	border-color: #ddd;
}

/*.table--striped thead th,*/
.table--striped tbody tr:nth-child(odd) td {
	background-color: #eee;
}

.table--striped caption {
	padding: 10px;
	caption-side: bottom;
	font-size: 14px;
	color: #999;
}

/* components */
/* cards*/
.seemly-card--best .shadow {
	box-shadow: 0 0 10px 0 rgb(192 46 20 / 50%);
}

/* lists */
.comparison-list ul {
	margin: 0 0 1.5em 0;
	list-style: none;
}

.comparison-list li {
	padding-left: 28px;
	position: relative;
}

.comparison-list li::before {
	content: '';
	width: 20px;
	height: 20px;
	position: absolute;
	top: 5px;
	left: 0;
}

.comparison-list--pros li::before {
	background: url('https://smalldogowner.com/wp-content/uploads/2022/05/check-solid-compact.svg') no-repeat center center;
	filter: brightness(0) saturate(100%) invert(75%) sepia(9%) saturate(3006%) hue-rotate(118deg) brightness(79%) contrast(97%);
}

.comparison-list--cons li::before {
	background: url('https://smalldogowner.com/wp-content/uploads/2022/05/times-solid.svg') no-repeat center center;
	filter: brightness(0) saturate(100%) invert(57%) sepia(30%) saturate(5209%) hue-rotate(318deg) brightness(98%) contrast(79%);
}

/* single-post styles */
body.single-post .site-branding a {
	color: var(--accent-1);
}

/* link styles */
/* 
body:not(.home) .site-content h2:not(.wp-show-posts-entry-title) a,
body:not(.home) .site-content h3 a,
body:not(.home) .site-content p a:not(.button),
body:not(.home) .site-content li a {
	color: var(--accent);
}

body:not(.home) .site-content h2:not(.wp-show-posts-entry-title) a:hover,
body:not(.home) .site-content h2:not(.wp-show-posts-entry-title) a:active,
body:not(.home) .site-content h3 a:hover,
body:not(.home) .site-content h3 a:active,
body:not(.home) .site-content p a:not(.button):hover,
body:not(.home) .site-content p a:not(.button):focus,
body:not(.home) .site-content li a:hover,
body:not(.home) .site-content li a:focus {
	text-decoration: none;
	outline-color: var(--link-hover);
	color: var(--accent);
} 
*/

.entry-title a {
	color: inherit;
}

.entry-content * ~ h2,
.entry-content * ~ h3,
.entry-content * ~ h4,
.entry-content * ~ h5 {
	margin-top: 30px;
	line-height: 1.2;
}

body.home .entry-content a:focus,
body.home .entry-content a:hover {
	text-decoration: none !important;
}

body.home .cards a {
	color: inherit !important;
}

.entry-content #ez-toc-container {
	display: none;
}

/* sidebar search */
.sidebar .search-form label {
	flex: 1 1 auto;
}

/* footer */
#footer-widgets {}

#footer-widgets .gb-grid-wrapper {
	display: block;
}

#footer-widgets .gb-grid-wrapper .gb-grid-column {
	width: 100%;
	padding: 0;
	margin: 0 0 10px 0;
}

#footer-widgets .wp-block-search {
	background-color: rgba(0, 0, 0, 0.3);
}

#footer-widgets .wp-block-search__inside-wrapper {
	border: none;
}

#footer-widgets .wp-block-search input[type="search"] {
	border: none;
	background-color: transparent;
	color: #fff;
}

/* Search results styles */
body.search-results .entry-content:not(:first-child), 
body.search-results .entry-summary:not(:first-child), 
body.search-results .page-content:not(:first-child) {
	margin-top: 15px;
}

body.search-results .post-image {
	margin-bottom: 15px !important;
}

/* define image aspect ratios for consistency */
body .post-image img,
.wp-show-posts-image img {
	min-width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover !important;
	object-position: center !important;
}

/* vendor styles */
#ez-toc-container {
	margin-bottom: 40px;
}

#ez-toc-container li ~ li {
	margin-top: 0;
}

#ez-toc-container.toc_close nav {
	display: none;
}

#ez-toc-container .ez-toc-list:not([style*="display: none;"]) {
	margin-top: 10px;
}

/* rank math */
body .rank-math-breadcrumb {
	width: 100%;
}

/* rank math breadcrumb alignment */
@media (min-width: 768px) {
	body.archive:not(.post-type-archive-dog_breed) .rank-math-breadcrumb,
	body.search-results .rank-math-breadcrumb {
		padding-left: 40px;
	}	
}

.block-link {
	position: relative;
	overflow: hidden;
}

.block-link a:first-child::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: transparent;
}

/**/
.display-inline {
	display: inline;
}