/*
Theme Name:     Circumference Lite Child
Theme URI:
Description:    Circumference-lite child theme.
Author:         Réseau Koumbit
Author URI:
Template:       circumference-lite
Text Domain:    circumferencelite-child
Domain Path:    /languages
Version:        0.3.0
*/

/* Base Elements */
hr,
.cir-divider-dotline {
	height: 1px;
}

.wp-block-group h5, .wp-block-column h5{
	clear: none !important;
}

/* Main Navigation Menu */
/* display all items on one line */
@media screen and (min-width: 643px) {
	ul.nav-menu {
		display: flex;
		white-space: nowrap;
	}
	/* don't apply white-space nowrap to submenus */
	ul.sub-menu {
		white-space: normal;
	}
}

/* Knowledge Hub - global display */
article.type-publication footer p {
  margin: .5em 0;
}

article.type-publication .entry-meta {
	margin: 0;
}

article.type-publication .post-thumbnail img {
  display: block;
  max-width: 100px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #eee;
}

.type-publication .subtitle {
	display: inline-block;
	font-size: 1.25rem;
	line-height: inherit;
}

.type-publication .sdgs .meta-label {
	font-weight: 700;
	text-transform: none;
}


.sdgs p {
	margin: 0;
}

.sdgs-wrapper {
	display: flex;
	flex-flow: row wrap;
}

.sdgs-wrapper img {
	width: 100px;
	margin: 5px;
}

.sdgs-wrapper img:hover,
.sdgs-wrapper img:focus,
.sdgs-wrapper img:active {
	opacity: .8;
}

@media screen and (min-width: 600px) {
	article.type-publication .post-thumbnail img {
		max-width: 200px;
	}

	.sdgs {
		grid-column: 1 / 3;
	}

	.sdgs-wrapper img {
		width: 125px;
	}
}

/* Knowledge Hub - archive display */
body:not(.single) article.type-publication {
  margin-bottom: 3em;
}

body:not(.single) article.type-publication .entry-title a {
	font-weight: bold;
	line-height: 1.25em;
}

body:not(.single) .sdgs {
	border-bottom: 1px solid #e2e5e7;
	padding-bottom: .5em;
}

#kh-page-wrapper .entry-header h1 {
	font-weight: bold;
}

#kh-page-wrapper .page::after {
	content: '';
	display: block;
	width: 80%;
	border-bottom: 1px solid #e2e5e7;
	margin: 3em auto 4em auto;
}

#kh-page-wrapper .entry-content p {
	font-size: 1.25em;
}

/* Hide site wide search and recent posts on KH for mobile */
.page-id-2172 #kh-sidebar-wrapper #search-2, 
.page-id-2172 #kh-sidebar-wrapper #recent-posts-2 {
	display: none;
}

@media screen and (min-width: 600px) {
  body:not(.single) article.type-publication {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: auto 2fr;
    grid-column-gap: 1.25em;
  }

  body:not(.single) article.type-publication figure {
    grid-row-start: 1;
    grid-row-end: 3;
    margin-left: 0;
    margin-right: 0;
  }

  body:not(.single) article.type-publication figure .post-thumbnail {
    margin: 0;
  }

  body:not(.single) article.type-publication .post-thumbnail img {
	  max-width: 140px;
  }

  body:not(.single) article.type-publication footer {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
  }

  body:not(.single) .sdgs-wrapper img {
	  width: 100px;
  }
}

@media screen and (min-width: 800px) {
	body:not(.single) article.type-publication .post-thumbnail img {
		max-width: 160px;
	}
}

@media screen and (min-width: 992px) {
    .page-id-2172 #kh-sidebar-wrapper #search-2, 
    .page-id-2712 #kh-sidebar-wrapper #recent-posts-2 {
        display: block;
    }

    #kh-sidebar-wrapper {
        float: right;
    }

    #kh-archive-wrapper {
        float: left;
    }

    body:not(.single) .sdgs-wrapper img {
	    width: 90px;
    }
}


/* Knowledge Hub - single display */
.single .sdgs-wrapper img {
  width: 120px;
}

.single-publication article .publication-download {
  text-align: center;
}

.single-publication article .publication-download > div {
  margin: 1em;
}

.single-publication article .publication-download > div a {
  display: inline-block;
  color: #fff;
  font-weight: bold;
  background-color: #9ca9b0;
  padding: .5em .75em;
  border: #9ca9b0 solid;
  text-align: center;
}

.single-publication article .publication-download > div a:hover {
  color: #9ca9b0;
  background-color: #fff;
  text-decoration: none;
}


@media screen and (min-width: 600px) {
  .single-publication article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 1em;
  }

  .single-publication article figure {
    grid-row-start: 3;
    grid-column: 2/3;
    max-width: 250px;
    display: flex;
    justify-self: flex-end;
    margin-left: 0;
    margin-right: 0;
  }

  .single-publication article .entry-content {
    grid-row: 2/4;
  }

  .single-publication article .publication-download {
    grid-column-start: 2;
    grid-row-start: 2;
  }

  .single-publication article header {
    grid-row-start: 1;
    grid-column-start: 1;
    grid-column-end: 3;
  }

  .single-publication article footer {
    grid-column: 1 / 3;
  }

  .single .sdgs-wrapper img {
    width: 175px;
  }
}


/* Tabby Tabs */
.responsive-tabs li.responsive-tabs__list__item {
	font-size: 0.813em;
}


/* Search & Filter sidebar widget */
.searchandfilter ul li {
	margin-bottom: .5em;
	margin: 0 0 1em;
}

.searchandfilter ul li h4 {
  margin: .5em 0 .5em;
}

.searchandfilter ul li select {
  max-width: 280px;
}

.searchandfilter input[type="submit"] {
	font-size: 1.125em;
	margin: .5em 0;
}

/* Tag Cloud */
#cool_tag_cloud-2 {
	margin-bottom: 0;
}

.widget_cool_tag_cloud .tag-cloud-link {
	padding-right: .5em;
}

/* Tag Cloud on 'Knowledge Hub Tags' page */
.entry-content .cool-tag-cloud .ctcleft > div {
	padding-left: 2em;
}

.entry-content .cool-tag-cloud .ctcleft > div > a {
	display: list-item;
	list-style: disclosure-closed;
}

/* SDG Taxonomy archive pages */
.archive.tax-sdg .page-header {
	display: flex;
	flex-flow: row wrap;
}

.archive.tax-sdg .page-header::before {
	content: '';
	background-size: 150px;
	display: inline-block;
	flex-shrink: 0;
	height: 150px;
	width: 150px;
	margin-right: 1em;
	position: relative;
	top: -2em;
}

.term-159 .page-header::before, .term-1011 .page-header::before, .term-1047 .page-header::before, .term-1425 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-01.png);
}

.term-160 .page-header::before, .term-1013 .page-header::before, .term-1049 .page-header::before, .term-1429 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-02.png);
}

.term-177 .page-header::before, .term-1015 .page-header::before, .term-1051 .page-header::before, .term-1441 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-03.png);
}

.term-178 .page-header::before, .term-1017 .page-header::before, .term-1053 .page-header::before, .term-1443 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-04.png);
}

.term-161 .page-header::before, .term-1019 .page-header::before, .term-1055 .page-header::before, .term-1445 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-05.png);
}

.term-168 .page-header::before, .term-1021 .page-header::before, .term-1057 .page-header::before, .term-1453 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-06.png);
}

.term-187 .page-header::before, .term-1023 .page-header::before, .term-1059 .page-header::before, .term-1455 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-07.png);
}

.term-169 .page-header::before, .term-1025 .page-header::before, .term-1061 .page-header::before, .term-1457 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-08.png);
}

.term-224 .page-header::before, .term-1027 .page-header::before, .term-1063 .page-header::before, .term-1459 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-09.png);
}

.term-183 .page-header::before, .term-1029 .page-header::before, .term-1065 .page-header::before, .term-1461 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-10.png);
}

.term-162 .page-header::before, .term-1031 .page-header::before, .term-1067 .page-header::before, .term-1463 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-11.png);
}

.term-163 .page-header::before, .term-1033 .page-header::before, .term-1069 .page-header::before, .term-1465 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-12.png);
}

.term-184 .page-header::before, .term-1035 .page-header::before, .term-1071 .page-header::before, .term-1467 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-13.png);
}

.term-185 .page-header::before, .term-1037 .page-header::before, .term-1073 .page-header::before, .term-1469 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-14.png);
}

.term-170 .page-header::before, .term-1039 .page-header::before, .term-1075 .page-header::before, .term-1471 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-15.png);
}

.term-200 .page-header::before, .term-1041 .page-header::before, .term-1077 .page-header::before, .term-1473 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-16.png);
}

.term-179 .page-header::before, .term-1043 .page-header::before, .term-1079 .page-header::before, .term-1475 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG-goals_icons-individual-rgb-17.png);
}

.term-154 .page-header::before, .term-1045 .page-header::before, .term-1081 .page-header::before, .term-1477 .page-header::before {
	background-image: url(/wp-content/themes/circumferencelite-child/icons/E_SDG_logo_with_UN_Emblem_square_rgb.png);
}

@media screen and (min-width: 600px) {
	.archive.tax-sdg .page-header {
		flex-flow: row nowrap;
	}
}

/* if no search results */
.archive.tax-sdg .page-content.no-results .page-header::before {
	display: none;
}

.search-no-results .page-header{
	text-align:left;
	margin-bottom: 3.5em;
}

/* change widget display on other languages */

/* hide the repeat title */
html:lang(fr-FR) .widget_recent_entries h3, html:lang(es-ES) .widget_recent_entries h3, html:lang(pt-PT) .widget_recent_entries h3{
	display:none;
}

/* move the recent post list slightly higher */
html:lang(fr-FR) .widget_recent_entries, html:lang(es-ES) .widget_recent_entries, html:lang(pt-PT) .widget_recent_entries{
	margin-top: -20px;
}

/* Create custom CSS class with before select to add magnifying glass icon  */

.searchicon a:before {
	padding-right:5px;
	font: normal normal normal 14px/1 FontAwesome;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	content: "\f002" !important;
}