/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */


/* Ploughshares additional CSS from Kadence child theme */

/* Make links in headings get site link behavior */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
ul li a {
/* 
    color: var(--global-palette-highlight);
    text-decoration: underline;
    transition: all .1s linear;
 */
	color: var(--global-palette-highlight);
	text-decoration: none;
	background-image: linear-gradient(var(--global-palette-highlight), var(--global-palette-highlight));
	background-position: 0% 100%;
	background-repeat: no-repeat;
	background-size: 100% 1px;

	&:hover {
		color: var(--global-palette-highlight-alt2);
		text-decoration: none;
		background-size: 100% 100%;		
	}
}

.woocommerce-account .account-navigation-wrap li a:hover {
		color: var(--global-palette-highlight-alt2);
}


/* exclude footer links */
.site-footer ul.menu > li.menu-item > a {
	background-image: none;
}


/** Main Navigation changes
 * add borders **/
.main-navigation {
	border: solid 1px #939393;
}
.main-navigation .primary-menu-container > ul > li.menu-item:not(:last-child) {
	border-right: solid 1px #939393;
}

/* active menu item */
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-parent > a {
	color: var(--global-palette2);
	background: var(--global-palette7);
}


/* Type formatting */
/* Paragraphs get smaller spacing */
body.single-content p,
body.single-authors p {
	margin-bottom: 1.5em;
}


/* Lists */
/* remove bullets */
.nb {
	list-style-type: none;
}


/* sidebar spacing override */
body.has-sidebar .content-container {
	grid-gap: 6em;
}


/* control page width */
body.page-template-default:not(.home):not(.woocommerce-account):not(.woocommerce-cart) #main,
body.product-template-default #main,
body.post-template-default #main article {
	max-width: 46em;
}

body.product-template-default.single-product #main {
	max-width: 75em;
}




/* GUEST EDITORS INDEX, make columns */
.guest-editor-index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 1rem;

	padding: 0;
	
	.single-content ul& {
		padding-left: 0;
	}
	
	> li {
		margin: 1em 0;
	}	
}

/* GUEST EDITORS INDEX list, index link formatting */
.guest-editor-index-list > li > a {
	display: block;
	padding: 0.8em;
	text-underline-offset: 6px;
	
	&:hover {
		text-decoration-line: none;
	}
}



/* Authors index page, anchor list*/
ul.alphabet-range {
	align-content: flex-start;
	display: flex;
	flex-wrap: wrap;
	font-weight: bold;
	justify-content: flex-start;
	padding-left: 0;
	max-width: 61em;
	
	> li {
		flex: 0 1 auto;
		margin: 0 1em 2em;
		> a {
			padding: 1em
		}
	}
}


/* Authors index page, name list*/
.author-index > * + * {
	margin-top: 5em;
}

.letter-section > ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	grid-gap: 1rem;
	padding: 0;
	
	.single-content ul& {
		padding-left: 0;
	}
	
	> li {
		margin: 1em 0;
	
		> a {
		   display: block;
		   padding: 0.8em;
		   text-underline-offset: 6px;
		   
		   &:hover {
			   text-decoration-line: none;
		   }
		}
	}
}

/* Remove margins for article lists, works cited lists */
ul.issue-contents,
ul.author-stack {
	margin-left: 0;
}


/* ARTICLE, SINGLE PAGE */
.issue_article h1 {
	border-bottom: solid 2px #41596a;
	/* var(--global-palette3); */
}

.single-issue_article .article-issue-vol-date {
	align-items: center;
	display: flex;
	gap: 2rem;
	justify-content: flex-start;
	margin-top: 1.3rem;
}

.single-issue_article .article-author {
	font-size: 1.2em;
	margin-top: 1.3rem;
}

/* artcle layout settings for now */
.single-issue_article .site-main {
		--gutter: 40px;
		--s1: 30%;
		display: flex;
		flex-wrap: wrap;
		flex-direction: row-reverse;	
		gap: var(--gutter, var(--s1));
		--threshold: 25rem;	
}

/* Article content */
.single-issue_article .content-wrap {
		flex-grow: 3;
		flex-basis: calc((var(--threshold) - 100%) * 999);
		
		> article.issue_article.type-issue_article  {	
		    max-width: calc(44rem);		
		}	
}

/* issue information */
.single-issue_article .article-info {
		flex-grow: 1;
		flex-basis: calc((var(--threshold) - 100%) * 999);
				
		display: flex;
		/* justify-content: center; */
		/* flex-direction: row; */
		flex-wrap: wrap;
		align-content: flex-start;		
}


/* Add to cart sidebar button fix */
body.single-issue_article .article-info > .product > .product-details > .wp-block-buttons.is-layout-flex {
	flex-direction: column;
}



/* Author - solo page formatting */

/* rename - spacing between bio and articles, guest editorialship */
body.single-authors .woocommerce {
	margin-top: 3rem;
}

/* flex your head */
.single-authors .single-entry.authors {
    max-width: calc(75rem);

	/* our code */
	> div.entry-content-wrap {
		--gutter: 40px;
		--s1: 30%;
		display: flex;
		flex-wrap: wrap;
		column-gap: var(--gutter, var(--s1));
		--threshold: 25rem;	
				
		> header.entry-header {
			width: 100%;
		}			
	}
		
	div.entry-content-wrap > .article-post-thumbnail {
		flex-grow: 1;
		flex-basis: calc((var(--threshold) - 100%) * 999);
	}
	
	div.entry-content-wrap > .entry-content	 {
		flex-grow: 3;
		flex-basis: calc((var(--threshold) - 100%) * 999);
	}	
		  
	div.entry-content-wrap > :nth-last-child(n+5),
	div.entry-content-wrap > :nth-last-child(n+5) ~ * {
		flex-basis: 100%
	}		

	.entry-content-wrap {
		margin-top: 1.5em;
	}
  }


/* stack their article */
.author-stack {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.author-stack > * {
	margin-block: 0;
}

.author-stack > * + * {
	margin-block-start: 2.5rem;
}


/* stack their article */
.gen-stack {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.gen-stack > * {
	margin-block: 0;
}

.gen-stack > * + * {
	margin-block-start: 3rem;
}



/* grid alternate */
/* 
.author-stack.grid .article-author {
	display: grid;
	grid-template-columns: 50% 25% 25%;
	grid-template-rows: auto;
	gap: 1.2em;
}
 */
 
 
 
/* Issues Solo Product Page - article list */
.issue-heading-section {
	margin-top: 1.5em;
} 
 


/* Author - display of items in cards */
.single-content h3.article-heading-author {
	font-size: 1.4rem;
	font-style: italic;
	margin-bottom: 0.06em;
	padding: 0;
	
	> a {
		text-underline-offset: 6px;
	}
}

.single-content  .article-author ul {
	margin: 0;
	padding: 0;
}

.list-inline {
	display: inline;
}

.article-author p {
	margin: 0;
}


/* Product single page - GRID */

/* make pricing 100% of column */
body.woocommerce div.product.product_cat-issues div.summary, 
body.woocommerce #content div.product.product_cat-issues div.summary, 
body.woocommerce-page div.product.product_cat-issues div.summary, 
body.woocommerce-page #content div.product.product_cat-issues div.summary,
body.woocommerce div.product.product_cat-anthologies div.summary, 
body.woocommerce #content div.product.product_cat-anthologies div.summary, 
body.woocommerce-page div.product.product_cat-anthologies div.summary, 
body.woocommerce-page #content div.product.product_cat-anthologies div.summary {
	width: 100%
}

/* make iamge 100% of column */
body.woocommerce div.product.product_cat-issues div.images, 
body.woocommerce #content div.product.product_cat-issues div.images, 
body.woocommerce-page div.product.product_cat-issues div.images, 
body.woocommerce-page #content div.product.product_cat-issues div.images,
body.woocommerce div.product.product_cat-anthologies div.images, 
body.woocommerce #content div.product.product_cat-anthologies div.images, 
body.woocommerce-page div.product.product_cat-anthologies div.images, 
body.woocommerce-page #content div.product.product_cat-anthologies div.images {
	width: 100%;
}

/* mobile start */
.content-style-unboxed .product_cat-issues.entry-content-wrap.product:not(.loop-entry),
.content-style-unboxed .product_cat-anthologies.entry-content-wrap.product:not(.loop-entry) {
	column-gap: 1em;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr auto;
}
@media (min-width: 426px) {
	.content-style-unboxed .product_cat-issues.entry-content-wrap.product:not(.loop-entry),
	.content-style-unboxed .product_cat-anthologies.entry-content-wrap.product:not(.loop-entry) {
		column-gap: 5em;
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: auto 1fr 1fr auto;
	}
}

/* buy button, guest editors */
.woocommerce div.product div.summary {
	grid-row: 2;
	grid-column: 1;
}


.woocommerce-tabs.wc-tabs-wrapper {
	grid-column-start: 1;
	grid-row: 3;	
}
@media (min-width: 426px) {
	.woocommerce-tabs.wc-tabs-wrapper {
		grid-column-start: 2;
		grid-column-end: 4;
		grid-row: 1;	
	}
}


.guest-editor-block {
	grid-column: 1;
	grid-row-start: 2;
}
@media (min-width: 426px) {
	.guest-editor-block {
		grid-column: 1;
		grid-row-start: 2;
	}
}


/* issue table of contents list */
section.issue-contents {
	grid-column-start: 1;
	grid-row-start: 4;
	grid-row-end: 5;

}
@media (min-width: 426px) {
	section.issue-contents {	
		grid-row-start: 2;
		grid-row-end: 4;
		grid-column-start: 2;
		grid-column-end: 4;
	}
}

.related.products {
	grid-row: 5;
}
@media (min-width: 426px) {
	.related.products {	
		grid-row: 4;
		grid-column-start: 1;
		grid-column-end: 4;
	}
}


/* WooCommerce style override */
body.woocommerce li.product a:hover,
body.woocommerce li.product a:hover h2,
body.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--global-palette9);
}


/* Woocommerce hide empty error, Donations hide radio buttons */
body.woocommerce-cart .woocommerce-error:empty,
body.woocommerce-cart fieldset.kad_radio_variations,
body.page-template-default fieldset.kad_radio_variations {
	display: none;
}


/* footer heading color override */
.site-footer .widget_nav_menu > .widgettitle {
	color: var(--global-palette9);
}

/* TEMP - submission form no image override */
body.postid-142001.woocommerce div.product div.images.woocommerce-product-gallery,
body.postid-142001.woocommerce-page div.product div.images,
body.postid-11.woocommerce div.product div.images.woocommerce-product-gallery,
body.postid-11.woocommerce-page div.product div.images {
		display: none;
}
	
body.postid-142001.woocommerce div.post-142001.product div.summary,
body.postid-11.woocommerce div.post-11.product div.summary {
		float: none;
}


/* Donation form heading/form alignment */
form[data-product_id="11"] table.variations th[class="label"] {
	padding-top: 0.37em;
	vertical-align: top;
}

/*Issue article product display */
body.single-issue_article .woocommerce-notices-wrapper:not(:empty) {
    width: 100%;
}
body.single-issue_article .guest-editor-block,
body.single-issue_article .guest-editor-block .guest-editor {
	margin-top: 1em;
}
body.single-issue_article form.product-cart fieldset#product-type {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.25em;
    margin-left: 0;
    padding: 0;
    border: none;
}
body.single-issue_article form.product-cart fieldset#product-type .variation-amount,
body.single-issue_article form.product-cart fieldset#product-type .variation-input {
    display: none;
}
body.single-issue_article form.product-cart fieldset#product-type .variation-label {
    padding: 4px 10px;
    line-height: 1.5;
    margin-right: 10px;
    border: 3px solid var(--global-palette7, #eeeeee);
    transition: all .3s ease;
}
body.single-issue_article form.product-cart fieldset#product-type .variation-label:hover {
    border-color: var(--global-palette6, #777777);
}
body.single-issue_article form.product-cart fieldset#product-type input.variation-input:checked + .variation-label {
    border-color: var(--global-palette4, #444444);
    background: var(--global-palette4, #444444);
    color: var(--global-palette9, #ffffff);
}
body.single-issue_article form.product-cart fieldset#product-type input.variation-input:checked + .variation-label + .variation-amount {
    display: block;
    width: 100%;
    order: 2;
    margin-top: 1em;
}