/*
Theme Name: Potash Development Association PDA
Theme URI: http://www.pda.org.uk
Description: Custom theme for Potash Development Association PDA
Version: 1.2.2
Author: Patrick Harvey
Author URI: http://www.green-shoots.org
*/

/* basic typography */

body{
	font-family: 'Yantramanav', sans-serif;
	margin:0;
	padding:0;
}
h1,
h2,
h3,
h4,
h5,
h6,
h7,
p,
ul,
li,
div{
	margin:0;
	padding:0;
}
.nobrk{
    white-space: nowrap;
}
#masthead{
	font-family: 'Ubuntu', sans-serif;
}
/* basic layout */
#container{
	background:#fff;
}
#masthead{
	background:#00538E;
	color:#fff;
	float: left;
    width: 100%;
	padding:1rem 0;
}
.pageContent{
	clear:both;
	float:none;
	max-width:1280px;
	/*display:table;*/
	display:block;
	display:flex;
	width:100%;
	margin: 0 auto;
}
#pdaFooter{
    background: #00538E;
    color: #fff;
    padding: 2em 0;
    font-size: 0.9em;
	margin-bottom: 0px;
}
#pdaFooter p {
    padding: 0 1em;
}
.leftCol{
	/*display:table-cell;*/
	display:block;
	float:left;
	width:25%;
}
.mainCol{
	/*display:table-cell;*/
	display:block;
	float:right;
	width:75%;
}
.greenBg{
	background-color:#044D35;
}
.paleBg{
	background-color:#089FA5;	
}
/*	=========================
	==== masthead layout ====
	=======================*/
.leftCol.greenBg,
#featureImage.mainCol{
	height:340px;
}
#featureImage.mainCol{
	position:relative;
}
#featureImage>div{
width:100%;
height:100%;
background-repeat:no-repeat;
background-position:center center;
background-size:cover;
}
#topSearch{
	margin:1rem 0;
}
#headerLeft{
	width:50%;
	float:left;
}
#headerRight{
	width:50%;
	float:left;
	text-align:right;
}
#topSearch input[type=submit]{
	display:none;
}
#topSearch input[type=text]{
	-webkit-transition: width  1s ease-in-out;
	-moz-transition: width  1s ease-in-out;
	-o-transition: width  1s ease-in-out;
	transition: width  1s ease-in-out;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
	padding-right:30px;
    width: 200px;
    background-image: url(image/search.png);
	background-repeat:no-repeat;
	background-position: 98% center;
	background-position: calc(100% - 5px) center;
	background-color:#E8EEF3;
	height:2rem;
	line-height:2rem;
	border:none;
	border-radius:3px;
	color: #999;
	max-width:100%;
}
#topSearch input[type=text]:focus{
    width: 500px;
	color: #000;
}
article #searchform input#s{
	width:75%;
	padding-right:30px;
    background-image: url(image/search.png);
	background-repeat:no-repeat;
	background-position: 98% center;
	background-position: calc(100% - 5px) center;
	background-color:#E8EEF3;
	height:2rem;
	line-height:2rem;
	border:none;
	border-radius:3px;
	color: #999;
}
article #searchform input#s:focus{
	color:#000;
}
article input[type=submit] {
	margin:0;
	padding: 0.4rem 1rem;
	border:none;
	border-radius:5px;
	background-color:#00538E;
	color:#fff;
}
#masthead h1{
	font-size:1.6rem;
}
#topContact a{
	color:#fff;
	text-decoration:none;
	font-size:1.3rem;
}
/*	=================
	== menu layout ==
	===============*/
#topNav,
#showMenu{
    background-color: #089FA5;
    float: left;
    width: 100%;
	font-weight:300;
}
#showMenu{
	display:none;
	line-height:2.5em;
	color:#fff;
	background-image:url(image/openMenu.png);
	background-repeat:no-repeat;
	background-position:center left;
	padding-left:10%;
	cursor:pointer;
    width: 90%;
}
#topNav ul{
	list-style:none;
	z-index:100;
}
#topNav ul li>ul{
	display:none;
	list-style:none;
	position:absolute;
	top:2em;
	z-index:100;
	left:0;
}
#topNav ul li:hover>ul{
	display:block;
}
#topNav li{
	float:left;
	display:block;
	line-height:2.5em;
	position:relative;
	white-space: nowrap;
}
#topNav li a{
	display:block;
	padding: 0 1em;
	color:#fff;
	text-decoration:none;
	float:left;
}
#topNav li:hover a,
#topNav li.current_page_item a,
#topNav li.current-menu-item a,
#topNav li.isLeaflet.current_page_parent a,
.tax-genre #topNav li.isLeaflet a,
.post-type-archive-pda_leaflets #topNav li.isLeaflet a,
.single-pda_leaflets #topNav li.isLeaflet a,
.single-post #topNav li.isNews a,
.single-technical_notes #topNav li.isNotes a{
	background-color:#9CD8DB;
	color:#00538E;
}
#topNav li:after{
	display: block;
    content: "";
    width: 11px;
    height: 2.5em;
    background: transparent url('image/menu-sep.png') no-repeat;
    background-position:center;
    float: left;
}
#topNav li:last-child:after{
	background:none;
	width:0px;
	display:none;
}
#topNav ul ul li:after{
	display:none;
}
#topNav ul ul li,
#topNav ul ul li a{
	width:100%;
}
#mainSpace article {
    padding: 0 5% 1em 5%;
}
#breadcrumbs {
    margin: 0 0 0.5rem 0;
	font-size:0.8em;
}
/*	======================
	=== pda calc promo ===
	====================*/

.leftCol.greenBg a img {
    margin: 0 auto;
    display: block;
	max-width:100%;
	height:auto;
}
.leftCol.greenBg h2 a{
	text-decoration: none;
	color: #fff;
	font-weight: normal;
	font-size: 1.3rem;
	padding: 0.5rem 1rem;
	display: block;
}
.single-pda_leaflets .leftCol.greenBg a img {
    margin: 20px auto 0;
	height:300px;
}
/* Standard typography */
article p{
	margin:1rem 0;
	line-height:2rem;
}
article h2,
article h3{
	margin-top:1rem;
}
article h4{
    color: #00538e;
}
article ul {
    padding-left: 3rem;
}
article ul li{
	list-style-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAJCAYAAAD6reaeAAAAJ0lEQVQIW2NkwAIYcQpyLFj6Hyb5IyGakRFZACZBgiBIC4aZRDsJAK3EDu74DaYXAAAAAElFTkSuQmCC");
}
article li{
	line-height:1.5rem;
	padding-left: 0.5em;
}
article h2{
	color:rgb(0,83,142);	
}
article h1 a,
article h2 a{
	text-decoration:none;
	color:rgb(0,83,142);
}
article h3{
	color:rgb(0,83,142);
}
article a{
	text-decoration: underline;
	color: #089FA5;
}
article a:hover{
	color: #00538E
}
.newsExcerpt p{
	margin:0;
}
p.datePublished{
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #044D35;
}
div.post.type-post{
	margin-bottom:2em;	
	margin-bottom:2rem;
}
ul.newsCategories{
	list-style:none;
	padding:0;
	display:inline-block;
	float:left;
	margin:4px 0.75em 0 0;
}
ul.newsCategories li{
	list-style:none;
	display:inline-block;
	font-size:0.75em;
	padding:0;
	/*padding:2px 10px 0px;*/
}
ul.newsCategories li a{
	color:#ffffff;
	text-decoration:none;
	padding:1px 10px 1px;
	background-color:#089FA5;
	border-radius:5px;
}
.newsIntro{
    margin-bottom: 1rem;
    padding: 1rem;
	background-color:#C4E8E9;
/*    border-bottom: 1px solid #089FA5;*/
}
/* latest news box */
.latestNews h2{
    color: #fff;
    padding: 0.5rem 1rem;
    font-weight: normal;
    font-size: 1.3rem;
}
.latestNews ul{
	padding-left:2rem;
	padding-right:1rem;	
	list-style:none;
}
.latestNews ul li{
	padding: 0.4rem 0.5rem;
}
.latestNews ul li:hover,
.latestNews ul li.current{
	background-color:#9CD8DB;
	color:#00538E;
}
.latestNews a{
	color:#fff;
	text-decoration:none;
}
.latestNews ul li:hover a,
.latestNews ul li.current a{
	color:#00538E;
}
.latestNews ul li.current:hover{
}
.latestNews ul li.current:hover a{
	color:#fff;
}
.pdaNewArticle{
	background-color:#00538e;
	border-radius:5px;
	box-shadow:1px 1px 1px rgba(0,0,0,1);
	margin:3em 0;
	padding:1em 0;
}
.pdaNewArticle a{
	color:#fff;
}
.pdaNewArticle a:hover{
	color:#6698bb;
}
/* images and captions */
.alignright {
    float: right;
    margin-left: 2em;
	margin-right:0;
}
.alignleft {
    float: left;
    margin-right: 2em;
	margin-left:0;
}
.aligncenter {
    float: none;
    margin-left: auto;
    margin-right: auto;
	/*display:block;*/
}
img.size-full,
img.alignright,
img.alignleft,
img.aligncenter{
	box-sizing: border-box;
	ms-box-sizing: border-box;
	webkit-box-sizing: border-box;
	moz-box-sizing: border-box;
	max-width:100%;
	height:auto;
	padding:0.75rem 1rem;
	box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.7);
}
figure,
figure img{
	max-width:100% !important;
	display:table;
	height:auto;
   /* width:unset !important;*/
}
figure.alignright,
figure.alignleft{
	/*background-color:#EEF5F7;*/
	box-sizing: border-box;
	ms-box-sizing: border-box;
	webkit-box-sizing: border-box;
	moz-box-sizing: border-box;
	max-width:100%;
	/*padding:0.75rem 1rem;*/
	box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
}
figure.alignright img,
figure.alignleft img,
figure.aligncenter img{
	max-width:100%;
	height:auto;
}
.wp-caption img {
    border: 0;
    box-shadow: none;
    padding: 0;
}
figcaption{
	font-size: 0.8rem;
	text-align: center;
	margin: 0.75rem 0 0.25rem 0;
	padding: 0;
	display:table-caption;
	caption-side: bottom;
}
/* remove padding and shadow for media/text blocks */
.wp-block-media-text__media img {
    padding: 0;
    box-shadow: none;
	border: solid 1px #ccdde8;
}


/* news tables */
.tableWrap{
	/* overflow:auto; */
}

.tableOverflow{
	overflow-x:auto;
	max-width:100%;
}


.tableDisp, .tableDispBorders{
	border:none;
	margin:0px;
	padding:0px;
    border-spacing: 0;
    border-collapse: collapse;
	max-width:100%;
}


.tableDispBorders td{
border:1px solid #000;	
}
.tableDisp p,
.tableDisp li{
	margin:0px;
	padding:0px;
	line-height:1.1em;
}
.tableDisp h4{
	color:#fff;
	font-size:1.1em;
}
.tableDisp ul {
    padding-left: 1.5em;
}
/* black line above */
.tableDisp .bla{
	border-top:1px solid #000000;
}
/* black line below */
.tableDisp .blb{
	border-bottom:1px solid #000000;
}
/* black line below */
.tableDisp .dblb{
	border-bottom-width: 1px;
	border-bottom-style: double;
	border-bottom-color: #000000;
}
/* grey line below */
.tableDisp .glb{
	border-bottom:1px solid #CCCCCC;
}
/* blue line below */
.tableDisp .bllb{
	border-bottom:1px solid #006890;
}
/* white line below */
.tableDisp .wlb{
	border-bottom:1px solid #FFFFFF;
}
/* grey line above */
.tableDisp .gla{
	border-top:1px solid #CCCCCC;
}
/* black line to right */
.tableDisp .blr{
	border-right:1px solid #000000;
}
/* white line to right */
.tableDisp .wlr{
	border-right:1px solid #FFFFFF;
}
/* grey line to right */
.tableDisp .glr{
	border-right:1px solid #CCCCCC;
}
/* black line to left */
.tableDisp .bll{
	border-left:1px solid #000000;
}
.tableDisp .dla {
    border-top-width: 1px;
    border-top-style: dotted;
    border-top-color: #000000;
}
/* red line below */
.tableDisp .redLb{
border-bottom:1px solid #CC0000;
}
.tableDisp .tdC{
text-align: center;
}
.mdgry{
background-color:#939598;
}
.ltgry{
background-color: #BBBDC0;
}
.ltgrn{
background-color:#B7DDBF;
}
.grgrn{
background-color:#C4CEC4;
}
.dkgrn{
background-color:#A0CA96;
}
.grn{
background-color:#748B39;
}
.ltbl{
background-color:#B3E0F8;	
}
.mdbl{
background-color:#60BDF0;
}
.rlbl{
background-color:#014A7D;
color:#ffffff;
}
.dkbl{
background-color:#7491B9;
}
.ltyl{
background-color:#FFFCD9;
}
.mdyl{
background-color:#FFEECA;
}
.dkyl{
background-color:#FFE1A4;
}
.mstrd{
background-color:#D2A045;
}
.sand{
background-color:#D9D0AC;
}
.sand50{
background-color:#ECE7D5;
}
.sand20{
background-color:#F4F1E6;
}
.blueThd{
	background-color:#427DA1;
	color:#fff;
	padding:0.2em 0.3em;
}
.blueTbd1{
	background-color:#DDE4ED;
	padding:0.2em 0.3em;
}
.blueTbd2{
	background-color:#C8D3E1;
	padding:0.2em 0.3em;
}


.lRedBox{
background-color:#EABCB0;
}
.dkRedBox{
background-color:#AF8279;
}
.rlb, .rdb {
    clear: left;
    padding: 0.5em 1em 0.5em 0;
}
.rlb {
    background-color: #DEF3FF;
}
.rdb {
    background-color: #C6E7FF;
}
.blueList .theNum {
    font-weight: bold;
    display: inline;
    width: 2em;
    float: left;
    padding-left: 0.5em;
}
.blueList .theRule {
    font-size: 0.9em;
    padding-left: 3em;
}
.pblue{
    color: #00538e;
}
.blackTxt{
    color:#000;
}
.noBreak{
	white-space:nowrap;
}
/*leaflet layout */
ul.leafletTypes,
ul.newsCats{
	width:100%;
	list-style:none;
	margin:0 0 1rem 0;
	padding:0;
    border-bottom: 1px solid #089FA5;
}
ul.newsCats{
	margin:0;
}
ul.leafletTypes li,
ul.newsCats li {
    list-style: none;
    float: left;
    padding: 0.25em 1em;
    background: #089FA5;
    border-right: 1px solid #fff;
	border-top-left-radius:10px;
	border-top-right-radius:10px;	
}
ul.leafletTypes::after,
ul.newsCats::after{
	visibility: hidden;
     display: block;
     font-size: 0;
     content: " ";
     clear: both;
     height: 0;
}
ul.leafletTypes li a,
ul.newsCats li a{
	color:#fff;
	text-decoration:none;
}
ul.leafletTypes li:hover,
ul.leafletTypes li.current-cat,
ul.newsCats li:hover,
ul.newsCats li.current-cat{
    background-color: #9CD8DB;
    color: #00538e;
}
ul.leafletTypes li:hover a,
ul.leafletTypes li.current-cat a,
ul.newsCats li:hover a,
ul.newsCats li.current-cat a{
	color: #00538e;
}
ul.leafletTypes li.current-cat:hover,
ul.newsCats li.current-cat:hover{
	background: #089FA5;
}
ul.leafletTypes li.current-cat:hover a,
ul.newsCats li.current-cat:hover a{
	color: #fff;
}
.pdaLeafletList{
    float:left;
	width:31%;
	position:relative;
	overflow:hidden;
	margin:1%;
}
div.pdaLeafletList:nth-child(3n+1){
    clear:left;
}
.pdaLeafletList .metaBox{
	position:absolute;
	width:90%;
	bottom:0;
	left:-100%;
	background:rgba(3,62,64,0.9);
	transition:0.3s;
	padding:5px 5%;
}
.pdaLeafletList:hover .metaBox{
	left:0;
}
.pdaLeafletList img{
	border:1px solid #E7F5F5;
	max-width:100%;
	height:auto;
	margin:0 auto;
	display:block;
}
.pdaLeafletList .metaBox h2,
.pdaLeafletList .metaBox h2 a,
.pdaLeafletList .metaBox p{
	font-size:0.8rem;
	line-height:1.1rem;
	color:#fff;
}
.pn-navigation{
	clear:left;
	text-align:center;
}
.redTxt{
	color: #C00;
}
.rdBase{
	background-color: #C00;
	color:#fff;
}
.whiteTxt,
.whiteTxt a{
	color:#fff;
}
.blueText{
	color: #297CA5;
}
/*	pdf box */
.pdfDownloadIcon{
    width: 64px;
    float: right;
    font-size: 0.7rem;
    line-height: 0.7em;
    margin: 0 0 0 1em;
    text-align: center;
	color:#999;
}
a.pdIcon{
	width:64px;
	height:64px;
	background-image:url(image/pdf-icon-128-c.png);
	background-size:32px 43px;
	background-repeat:no-repeat;
	background-color:#00538E;
	background-position:center center;
	display:block;
    line-height: 0; 
    font-size: 0;
    color: transparent;
	border-radius:100%;
}
a.pdIcon:hover{
	background-color:#6698BB;
}
.pdfDownload {
    float: right;
    width: 25%;
    background-color: #089FA5;
    padding: 0.5em;
    line-height: 1.1rem;
    font-size: 0.8rem;
}
.pdfDownload a{
	color:#fff;
}
.pdfDownload a:hover{
	color:#CDEBEC;
}
/* contact form layout */
.wpcf7-form p{
	font-weight:bold;
	line-height:1.2em;
	font-size: 0.9rem;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea{
	width: 100%;
    padding: 0.7em 1em;
    border-radius: 3px;
    border: 1px solid #ccc;
}
.wpcf7-form input[type="submit"],
.pda-button{
	background-color:#089FA5;
	padding: 0.7em 1em;
	border: none;
	border-radius: 5px;
	width: 25%;
	color:#fff;
}
.wpcf7-form input[type="submit"]:hover,
.pda-button:hover{
	background-color: #B8E0E2;
	color:#00538E;
}
.wpcf7-form .wpcf7-not-valid{
	/*background-color:#B8E0E2;*/
}
.wpcf7-form  select{
	padding: 0.7em 1em;
    border-radius: 3px;
    border: 1px solid #ccc;
}
.wpcf7-list-item.first.last{
	margin:0;
}

/*	================================
	=== pagination on news pages ===
	==============================*/
.pagination ul{
	margin-top:1.5rem;
	padding-left:0;
}

.pagination li{
	list-style:none;
	float: left;
	background: #089FA5;
	margin: 2px;
	padding: 0.2em 0.7em;
	border-radius: 6px;
	font-size: 0.9em;
}
.pagination li.active,
.pagination li:hover{
	background:#9CD8DB;
}
.pagination li.active:hover{
	background: #089FA5;
}
.pagination li a{
	text-decoration:none;
	color:#fff;
}


/*	============== 
	Gallery layout
	============*/
div.gallery {
    width: 100%;
    display: block;
    float: none;
}

.gallery-columns-2 figure.gallery-item {
    width: 50%;
    float: left;
    display: block;
    margin: 0;
    text-align: center;
}



.pda-no-background .blocks-gallery-grid .blocks-gallery-image figcaption, .pda-no-background .blocks-gallery-grid .blocks-gallery-item figcaption, .wp-block-gallery.pda-no-background .blocks-gallery-image figcaption, .wp-block-gallery.pda-no-background  .blocks-gallery-item figcaption{
	background:none;
	color:#000;
}

/* responsive elements */

@media all and (max-width:1280px){
	#headerLeft {
		width: 58%;
		margin-left: 2%;
	}
	#headerRight {
		width:38%;
		margin-right:2%;
	}
	
	#topNav li a{
		padding: 0 0.4em;
	}
	.tableDisp, .tableDispBorders {
    max-width:100%;
    overflow-x: auto;
    display: table;
}
	
}

@media all and (max-width:980px){
	#topNav li{
		font-size:0.85rem;
	}
	#topNav li a{
		border-right:1px solid #4BB1B7;
	}
	#topNav li:after{
		display:none;
	}
	#mainSpace article {
	    padding: 0 6% 1em 5%;
	}
	.tableDisp, .tableDispBorders {
    max-width:980px;
    overflow-x: auto;
    display: table;
	}
	#pdaFooter {
    margin-bottom: 56px;
	}
}


@media all and (max-width:740px){
	#headerLeft,
	#headerRight {
		width: 98%;
		margin-left: 1%;
		margin-right:1%;
		float:none;
		text-align:center;
	}
	#showMenu{
		display:block;
	}
	#topNav{
		display:none;
		position:relative;
	}
	#container.showTheMenu #topNav{
		display:block;
	}
	#topNav ul{
		position:absolute;
		min-width:30%;
	}
	#topNav li{
	    width: 100%;
	    clear: left;
    	position: relative;
	    background-color: #089FA5;
	}
	#topNav li a{
		display:inline-block;
		border-right:none;
		border-bottom:1px solid #4BB1B7;
		width:90%;
	}
	#topNav ul ul{
		margin-left:97%;
	}
	#topNav ul li>ul{
		top:0;
	}
	.leftCol.greenBg{
		/*display:table-cell;*/
	}
	.leftCol{
		display:none;
	}
	.mainCol{
		width:100%;
        padding-bottom:3em;
	}
	#mainSpace article {
	    padding: 0 8% 1em 5%;
	}
	.tableDisp, .tableDispBorders {
    max-width:740px;
    overflow-x: auto;
    display: table;
}
}

@media all and (max-width:500px){
#topSearch input[type=text]:focus{
	width: 100%;
}
	.tableDisp, .tableDispBorders {
    max-width:500px;
    overflow-x: auto;
    display: table;
}
}

@media (min-width: 600px){
.wp-block-column {
    flex-basis: 46%;
    flex-grow: 0;
}
.wp-block-column:not(:last-child) {
    margin-right: 2%;
}
.wp-block-column:nth-child(odd) {
    margin-right: 2%;
}
.wp-block-column:not(:first-child) {
    margin-left: 2%;
}
.wp-block-column:nth-child(even) {
    margin-left: 2%;
}

}



@media all and (max-width:440px){
div.pdaLeafletList:nth-child(3n+1){
	clear:none;
}
div.pdaLeafletList:nth-child(2n+1){
	clear:left;
}
.pdaLeafletList{
	width:48%;
}
#mainSpace article {
	padding: 0 5% 1em 5%;
}
	
.tableDisp, .tableDispBorders {
    max-width:440px;
    overflow-x: auto;
    display: table;
}
}

@media screen and (max-height: 600px) and (max-width: 1380px){
#topSearch,#topContact{
	padding-right:50px;
}
}