/*
Theme Name: Canstein Advocatuur (Hello Elementor Child)
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Child theme of Hello Elementor for Canstein Advocatuur. Replaces the custom mxdfr-base theme; layout lives in Elementor, this theme only carries site logic and the styles Elementor cannot express.
Author: Elementor Team / StudentWebDev
Author URI: http://studentwebdev.nl/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/*
 * Colours and sizes come from Elementor's global variables
 * (Site Settings → Variables: --cs-gold, --cs-green, …). The fallbacks
 * below only apply if a variable is ever removed.
 *
 * What lives where:
 *   - Elementor global classes (cs-container, cs-card, cs-title, cs-list, …):
 *     styling of Elementor elements – edit those in the editor.
 *   - This file: things Elementor cannot target – the page base, markup
 *     *inside* text elements (lists, links) and Gutenberg post content.
 */

/* ---------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------ */

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

body {
	font-family: copperplate, serif;
	background-color: var(--cs-bg, #f3f3f3);
	color: var(--cs-green, #03312e);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------------------
 * Lists inside text elements (class "cs-list" in Elementor)
 * Gold bar bullet, same as the old theme's .custom-li.
 * ------------------------------------------------------------------------ */

.cs-list ul {
	list-style: none;
	margin: 10px 0;
	padding: 0;
}

.cs-list ul li {
	background: url("../../uploads/2019/05/bullet.png") no-repeat left center;
	background-size: 18px;
	padding-left: 30px;
	margin-bottom: 10px;
}

.cs-list ol {
	margin: 10px 0;
	padding-left: 20px;
}

.cs-list ol li {
	margin-bottom: 10px;
}

/* Numbered lists whose numbers are written in the text (class "cs-ol-manual",
   used where numbering continues across lists, e.g. Algemene voorwaarden). */
.cs-ol-manual ol {
	list-style: none;
	padding-left: 0;
}

.cs-ol-manual ol li {
	padding-left: 28px;
	text-indent: -28px;
}

/* ---------------------------------------------------------------------------
 * Links inside text elements
 * ------------------------------------------------------------------------ */

.e-paragraph-base a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid var(--cs-gold, #caaa77);
}

.e-paragraph-base a:hover {
	color: var(--cs-gold-dark, #c39a5b);
}

/* ---------------------------------------------------------------------------
 * Gutenberg post content (blog posts & FAQs) – wrapper class "cs-post-body"
 * ------------------------------------------------------------------------ */

.cs-post-body,
.cs-post-body .elementor-widget-theme-post-content {
	font-family: macho, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--cs-green, #03312e);
}

.cs-post-body :is(h1, h2, h3, h4, h5, h6) {
	color: var(--cs-green, #03312e);
}

/* Clear the floated featured image below the article. */
.cs-post-body::after {
	content: "";
	display: block;
	clear: both;
}

.cs-post-body p,
.cs-post-body li {
	font-family: macho, sans-serif;
}

.cs-post-body h1,
.cs-post-body h2,
.cs-post-body h3,
.cs-post-body h4 {
	font-family: copperplate, serif;
	line-height: 1.25;
	margin: 1.5em 0 0.5em;
}

.cs-post-body h2 { font-size: 25px; font-weight: 500; }
.cs-post-body h3 { font-size: 22px; font-weight: 300; }
.cs-post-body h4 { font-size: 19px; font-weight: 500; }

.cs-post-body a {
	color: #000;
	background-color: var(--cs-grey-light, #e8e8e8);
	border: 2px solid var(--cs-grey-light, #e8e8e8);
	padding: 0 7px;
	border-radius: 2px;
	line-height: 27px;
	text-decoration: none;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.cs-post-body a:hover {
	color: #000;
	border-color: #d0cfcf;
}

.cs-post-body img {
	max-width: 100%;
	height: auto;
}

.cs-post-body blockquote {
	position: relative;
	margin: 1.5em 0 1.5em 14px;
	padding: 15px;
	border: 0;
}

.cs-post-body blockquote p {
	font-size: 22px;
	font-weight: 600;
	color: var(--cs-gold, #caaa77);
	margin: 0 0 0.5em;
}

.cs-post-body blockquote::before {
	content: "\201C";
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(-50%, -50%);
	font: 6em/1.08em "PT Sans", sans-serif;
	color: var(--cs-gold, #caaa77);
}

.cs-post-body blockquote cite {
	display: block;
	text-align: right;
	margin-right: 40px;
	font-size: 0.875em;
	font-weight: 500;
	font-style: normal;
	color: var(--cs-gold, #caaa77);
}

/* Posts in the blog categories use the bilo / bely fonts. */
.category-blogs-nl .cs-post-body,
.category-blogs-en .cs-post-body,
.category-blogs-nl .cs-post-body p,
.category-blogs-en .cs-post-body p,
.category-blogs-nl .cs-post-body li,
.category-blogs-en .cs-post-body li {
	font-family: bilo, sans-serif;
	font-weight: 500;
}

.category-blogs-nl .cs-post-body p,
.category-blogs-en .cs-post-body p {
	text-align: justify;
}

.category-blogs-nl .cs-post-body :is(h1, h2, h3, h4, h5, h6),
.category-blogs-en .cs-post-body :is(h1, h2, h3, h4, h5, h6) {
	font-family: bely, serif;
	font-weight: 700;
}

/* Post title follows the same font switch (wrapper carries the post classes). */
.elementor-location-single.category-blogs-nl .cs-post-title,
.elementor-location-single.category-blogs-en .cs-post-title {
	font-family: bely, serif;
	font-weight: 700;
}

/* FAQs use the "study" font (old .single-faqs rule). */
.single-faqs .cs-post-body,
.single-faqs .cs-post-body .elementor-widget-theme-post-content,
.single-faqs .cs-post-body :is(p, li, h1, h2, h3, h4, h5, h6),
.single-faqs .elementor-location-single .cs-post-title {
	font-family: study, sans-serif;
}

.single-faqs .elementor-location-single .cs-post-title {
	font-weight: 700;
}

/* FAQs: featured image only on mobile (old .single-faqs rule). */
@media (min-width: 768px) {
	.single-faqs .cs-post-image {
		display: none;
	}
}

/* Gutenberg columns stack on mobile (old .single-faqs rule). */
@media (max-width: 767px) {
	.cs-post-body .wp-block-columns {
		display: block;
	}

	.cs-post-body .desktoponly {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
 * Plugin output
 * ------------------------------------------------------------------------ */

/* Comments are not used on this site (was in Additional CSS). */
.comments-area {
	display: none;
}
