/**
 * Theme Name: Canadian Charity Law
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
	--theme-content-spacing: 1.75em;
}
body {
	--wp--preset--font-size--small: 0.833em;
  --wp--preset--font-size--medium: 1em;
  --wp--preset--font-size--x-large: clamp(1.728rem , calc(3vw + 1rem), 2.488rem);		
  --wp--preset--font-size--xx-large: clamp(2rem , calc(5vw + 1rem), 4rem);	
}

#header > [data-device="desktop"]:after, #header > [data-device="mobile"]:after {
	content: "";
	display: block;
	width: 100%;
	height: 36px;
	background-image: url(../../uploads/2019/11/leaves-bg.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-attachment: scroll;
	background-size: cover;
}
#header > [data-device="mobile"]:after { height: 18px; }

.ct-breadcrumbs {
    --theme-font-weight: 400;
    --theme-text-transform: uppercase;
    --theme-font-size: 14px;
}

.entry-title {
	font-size: 20px;
}
[data-prefix="blog"] .entry-card .entry-meta { font-weight: 400; }

.widget-title { font-size: 1em; text-transform: uppercase;} 

.ct-footer [data-row="middle"] {
	--theme-content-spacing: 0.5em;
}
.nowrap {white-space: nowrap;}

/* LINKS */

body[data-link='type-1'] .entry-content a,
body[data-link='type-1'] .entries a,
body[data-link='type-1'] .ct-footer a,
body[data-link='type-1'] .page-description a {
  background-image: linear-gradient(var(--theme-link-hover-color), var(--theme-link-hover-color));
	background-size: 100% 1px;
	background-position: 0% 100%;
  background-repeat: no-repeat;
	transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955); 
}
	body[data-link='type-1'] .entry-content a:hover,
	body[data-link='type-1'] .entries a:hover,
  body[data-link='type-1'] .page-description a:hover 	{
		background-size: 0% 1px;
	}

body[data-link='type-1'] .entry-content a.revert,
body[data-link='type-1'] .ct-footer a  {
	/* color: inherit; */
	background-size: 0% 1px;
}
	body[data-link='type-1'] .entry-content a.revert:hover,
	body[data-link='type-1'] .ct-footer a:hover 	{
	/* 	color: var(--theme-link-initial-color); */
		background-size: 100% 1px;
	}

body[data-link='type-1'] a.ct-image-container, body[data-link='type-1'] a.wp-block-button__link, body[data-link='type-1'] .entry-content a.icon,
body[data-link='type-1'] .ctf-context a, body[data-link='type-1'] .ctf-author-box a,
body[data-link='type-1'] .entry-content :is(h1,h2,h3,h4,h5,h6) > a, body[data-link='type-1'] .entries :is(h1,h2,h3,h4,h5,h6) > a,
body[data-link='type-1'] .highlights2 a, body[data-link='type-1'] .is-style-outline.wp-block-tag-cloud a,
body[data-link='type-1'] a.btn-charitydata,
body[data-link='type-1'] a.ct-button, body[data-link='type-1'] a.ct-button-ghost, 
body[data-link='type-1'] a.page-numbers  {
	background-image: none;
	background-size: 0% 0px;
}

body[data-link='type-1'] .entry-content a.icon:hover svg{
	fill: var(--theme-palette-color-1);
}

p > a, li > a { font-weight: 600; }


/* Buttons */

.ct-button-ghost, .wp-block-buttons .wp-block-button .wp-block-button__link.is-style-outline, .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link {
    border-width: 1px;
    border-style: solid;
    border-color: currentColor;;
}

/* Blocks */

.wp-block-separator:not(.is-style-dots) {
    height: 1px;
		background-color: #ccc;
}

.wp-block-tag-cloud { 
	font-size: 13px; 
	line-height: 1;
	justify-content: center;
}
.wp-block-tag-cloud a {
	font-weight: 400;
}


/*== Spacer */

  .wp-block-spacer.is-style-responsive-large {
    height: 3rem !important;
  }

  .wp-block-spacer.is-style-responsive-small {
    height: 1.5rem !important;
  }

 

/*== Lists */

.entry-content ul {
	padding-left: 1rem; 
}

.entry-content ul.nobullet, .entry-content ul.wp-block-social-links , .entry-content ul.entry-meta {
    --theme-list-indent: 0;
    --theme-list-style-type: none;
    --theme-content-spacing: 0;
		padding-left: 0;
}

ul.is-style-fancy, .page-description > ul {
	list-style: none;
	padding-left: 0;
}

ul.is-style-fancy > li, .page-description > ul > li  {
	position: relative;
	padding-left: 1.6em;
}
	ul.is-style-fancy > li+li, .page-description > ul > li+li {
		margin-top: 0.2em;
	}
	ul.is-style-fancy > li::before, .page-description > ul > li::before {
		content: ""; 
		background-color: var(--theme-palette-color-2);
		display: block; 
		position: absolute; left: 0;
		width: 0.8em; 
		height: 0.8em; 
		border-radius: 50%;
		transform: translateY(0.5em); 
	}

	ul.is-style-fancy ul, .page-description > ul ul {
		list-style-type: "\268A\00A0 ";
	}
	
	
ul.is-style-line {
	list-style-type: "\268A\00A0 ";
}	


ul.is-style-nobullet {
	list-style: none;
	padding-left: 0;
}


@media (min-width: 782px) {
  ul.split {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 30px;
  }
}


/*==  Lead  */

.text-lead {
		font-family: Georgia;
		font-size: 1.1875em;
    margin-block-end: var(--theme-content-spacing);
}
.has-style-serif {
	font-family: Georgia;
	text-transform: none;
}


.is-style-lead-text {
  font-size: 1.444rem;
  font-weight: 700;
  color: var(--theme-palette-color-1);
}
	@media (max-width: 999.98px) {
		.is-style-lead-text {
			font-size: 1.111rem;
			line-height: 1.4;
		}
	}


.is-style-serif {
	font-family: Georgia;
	font-size: 1.1875em;
}

/*==  Stats */


.stats strong {
  font-size: 1.25em;
  line-height: 1.3;
}

@media (min-width: 1000px) {
  .stats strong {
    font-size: 2.074em;
    line-height: 1.2;
  }
}


/*==   Courses */

.courses a { 
	widows: 2;
  font-weight: 600;	
}
.new-label { 
	display: inline;
	padding: 0 0.5em;
	font-family: "Open Sans", sans-serif;
	font-size: 12px; 
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.02em;
	vertical-align: top;
	white-space: nowrap;
	background-color: var(--theme-palette-color-2); 
	color: #fff; 
} 


.single-courses .page-description { max-width: 620px; }

/*==   HIGHLIGHTS */

.highlights2 {
	display:grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
    list-style-type: none;
    padding: 0;	
    gap: 1px;
    background-color: #9f1422;	
		width: auto;		
}
.highlights2 li {
  display: flex;
  flex-direction: column;
	justify-content: center;
  height: 100%;
  background-color: #f7f7f7;	
	margin: 0;
}
	
.highlights2 a {
	border-bottom-width: 0;
	text-align: center;
	font-size: 1.2em;
	/* line-height: 1.2; */
	/* font-weight: 700; */
	/* text-transform: uppercase;  */
	display: block;
	padding: 9px;
}

@media screen and (min-width: 640px) {
	.highlights2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/*
@media screen and (min-width: 1200px) {
	.highlights2 { grid-template-columns: repeat(4, 1fr); }
}  */



/* SUBSCRIBE FORM */

body .style-light input {
    border-color: #777;
}

.subscribe-form  div {
    display: flex;
    width: 100%;
    max-width: 600px;
	margin: 0 auto;
}
	.subscribe-form input[type=email] {
		flex-grow: 1;
		margin: 0;
	}
	.subscribe-form button { 
		white-space: nowrap;
	}
/*
.js-cm-form input[type=text], .js-cm-form input[type=email] { width: 100%;}
.js-cm-form label { font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: 0.05em; } *7



/* Charity data */

.btn-charitydata {display: block; border: solid 1px #05243d; text-align: center; margin: 0 auto; }
	.btn-charitydata img {display: block; max-width: 220px; margin: 30px auto; }
	.btn-charitydata h3 {background-color: #095586; color: #fff; padding: 30px 5vw; font-family: Georgia, Times, serif;  font-size: 1.728rem; margin: 0;}
	.btn-charitydata p {background-color: #05243d; color: #fff; padding: 30px 5vw; margin: 0;}
	.btn-charitydata:hover h3,  .btn-charitydata:hover p {background-color: #0b0e10;}

/* Contact info */


.ct-contact-info-block  .contact-title {display: none;}
.ct-contact-info-block  .contact-text {font-weight: 600; }
.ct-contact-info-block ul[data-icons-type="simple"] { padding-left: 0;}



/* FACET WP */
.facetwp-type-search { width: 33%;}
.facetwp-type-search .facetwp-input-wrap {display: block;}
.facetwp-selections ul { padding-left: 0; }
.facetwp-selection-label { font-weight: 600; color: var(--theme-palette-color-2); }
button.facetwp-reset {background-color: transparent; text-transform: uppercase; font-weight: 600; letter-spacing: 0.02em; color: var(--theme-palette-color-2); }
button.facetwp-reset:hover {color: var(--theme-palette-color-1); }
.facetwp-template article { border-top: solid 1px #ccc; padding: 20px 0;}

.facetwp-template .info {  font-weight: 600; font-size: 14px; margin-bottom: 0.5em;}
.facetwp-template p {margin-bottom: 0;}


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

/* EVENTS */

.em-list article.event h3 {margin-bottom: 9px; }
.em-list article.event p { text-transform: uppercase; font-weight: 600; } 
p.event-meta { text-transform: uppercase; font-weight: 600; color: var(--theme-palette-color-1); font-size: 1.2em;}

.past-events article {
	position: relative;
  padding: 9px 0 9px 2em;
  border-top: solid 1px #ddd;
} 
.past-events article::before {
  content: " ";
  display: inline-block;
	width: 1em;
	height: 1em;
background-image: url("data:image/svg+xml,%3Csvg width='64px' height='64px' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' fill='%239f1422' stroke='%239f1422' stroke-width='102.4'%3E%3Cg stroke-width='0'%3E%3C/g%3E%3Cg stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg%3E%3Cpath fill='%239f1422' d='M338.752 104.704a64 64 0 000 90.496l316.8 316.8-316.8 316.8a64 64 0 0090.496 90.496l362.048-362.048a64 64 0 000-90.496L429.248 104.704a64 64 0 00-90.496 0z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
	background-size: cover;
  position: absolute;
  left: 0.2em;
  top: 18px;
}
.past-events article p { margin-bottom: 0; }

.past-events h2 {color: var(--theme-palette-color-2); }
.past-events h2:not(:first-child) { margin-top: var(--theme-content-vertical-spacing); }


/* Courses */

.course-cta { margin: 30px 0;}
.course-cta:first-child {margin-top: 0;}