/*
Theme Name: Son of Forthspark
Theme URI: 
Description: Child theme for the BlankSlate theme. Allows you to fully style and customize the features of your theme without them being overwritten upon upgrading the main BlankSlate theme. 
Author: Alexander Bailey
Author URI: 
Template: blankslate
Text Domain: blankslate
Author URI: 
Version: 0.1
*/
/*@import url("../blankslate/style.css");*/
/* Text meant only for screen readers. -------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  width: 1px;
  word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}
.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}
/*-----------------------------Forthspark styles--------------------------------- */ 
/* hide for my view  */
/* a.post-edit-link {display:none;} */


:root {
--headHeight: 16rem;
--navShift: 25;
/* banner colors  */
	   --blue_dark: #001d26;
	   --blue_med: #1f9cc2;
	   --green: #69be28;
	--step: min(7.5em, 15vw); 	/* used by diagonals  */
	   --trap_scale: min(16em, 50vw);
	   --contentMax: calc(760px - 2em); 	/* used by diagonals  */
	   --bigmargin: max(0px, 50vw - .5 * var(--contentMax));
	   /* --offset: calc(0vw + var(--step) / 2); */
	   --offset: 2.5em;
	   --trapezoid: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 344 180"><defs><linearGradient id="a" x1="-30.94" x2="92.6" y1="1437.92" y2="1536.19" gradientTransform="matrix(1 0 0 -1 141.17 1577.05)" gradientUnits="userSpaceOnUse"><stop offset=".34" stop-color="%231f9cc2" stop-opacity="0"/><stop offset=".75" stop-color="%231f9cc2"/></linearGradient></defs><g style="isolation:isolate"><path d="M142.74 180 0 0h201.26L344 180H142.74z" style="fill:url(%23a);opacity:.15"/></g></svg>');}
body {
  font-family: 'Verdana', Arial, sans-serif;
}

a {
  /* color: #000; */
  color: #555;
}
#wrapper {
  color: #555;
}
#wrapper #container, #wrapper #footer, p {
	line-height: 1.3;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
	color: #000;
}
h1 {font-size: 2em;}
h2 {font-size: 1.5em;}
h3 {font-size: 1.25em;}

h2, h3, p {margin-bottom: 1em;}
img {max-width:100%; height:auto;}

strong, bold {font-weight:bold;}
em, italic {font-style: italic;}
a img.wp-post-image {
margin-bottom: 1em; /* add break after newsletter thumbnail  */
}

header #branding #site-title a {
  background-image: url(gfx/NextMetropolis_white.svg);
	/* raw dimensions 500 x 99.71 */
  background-repeat: no-repeat;
  width: 100%;
  display: block;
  height: calc(var(--headHeight) / 5);
  background-size: contain;
  /* margin-left: -1rem; */
}
/*hide search form via CSS till Jeff confirms he really doesn't want a search box */
/* header #search {display: none;} */
/*-----------------------------from AKS theme--------------------------------- */
/*-----------------------------WP styles--------------------------------- */

.wp-block-list {list-style-type:disc; margin-bottom: 1em;}

.entry-title a, .entry-summary a, #site-title a, #menu a, #footer a {
  text-decoration: none;
  cursor: pointer;
  /*	force cursor pointer when href is empty */
}
.entry-title a:hover, .entry-summary a:hover, #site-title a:hover, #menu a:hover, #footer a:hover, .entry-title a:focus, .entry-summary a:focus, #site-title a:focus, #menu a:focus, #footer a:focus, a {
  text-decoration: underline;
  /*  text-decoration-style: dotted;*/
  text-decoration-thickness: 1px;
}
a:hover, a:focus {
  /* color: #00a651; */
  text-decoration: underline;
  text-decoration-style: solid;
}
#header {
padding: 1em 0 0.5em;
/*background: linear-gradient(90deg, #001d26 calc(3vw),  #1f9cc2 42.2vw, #1f9cc2  66.3vw, #69be28 calc(100vw));*/
background: 
linear-gradient(90deg, #001d26 calc(3vw),  #1f9cc2 37.2vw, #1f9cc2  66.3vw, #69be28 calc(100vw)) ,
no-repeat calc(0 * var(--step) + var(--bigmargin) - var(--offset)) top / var(--trap_scale)  var(--trapezoid) ,
no-repeat calc(1 * var(--step) + var(--bigmargin) - var(--offset)) top / var(--trap_scale)  var(--trapezoid) ,
no-repeat calc(100vw - 180 / 344 * var(--trap_scale) - 1 * var(--step) - var(--bigmargin) - var(--offset)) top / var(--trap_scale)  var(--trapezoid) ,
no-repeat calc(100vw - 180 / 344 * var(--trap_scale) - 0 * var(--step) - var(--bigmargin) - var(--offset)) top / var(--trap_scale)  var(--trapezoid) 
;	 
background-blend-mode: multiply;
}
body {
	/* diagnostic background  */
/* background: linear-gradient(90deg,
		#b4cd321f var(--bigmargin), white var(--bigmargin),
		white calc(100vw - var(--bigmargin)), #b4cd321f calc(100vw - var(--bigmargin))
	) 	; */
}
#headerwrap {margin: 0 2em;}

#wrapper {
  margin: .5em 2em;
	/* diagnostic rules  */
  /* border-top: solid 1px grey;
  padding-top: 2em;
  margin-top: -60px; */
}
/*@media (min-width: 1000px) {*/
@media (min-width: 760px) {
/*	See  --contentMax above */
  #headerwrap, #wrapper  {margin: 0 auto;max-width: calc(760px - 2em);}
	#wrapper {
    margin-bottom: .5em;
  }
}
#site-title {
  /*   text-align: center; */
  text-align: left;
}
#site-title h1, #site-title {
  /* font-size: min(2rem, 7.5vw); */
  /* text-transform: uppercase; */
  margin: 0;
  /* margin-bottom: calc(1em - 25px) */
}
#footer {
  /* text-align: center; */
  margin: 2em auto 1em;
  font-size: .9em;
	text-align: center;
}
#footer-widgets { font-size: initial; /* except footer widget content from small font rule set above  */
				}
#footer ul.menu { display:flex;
				 gap: 2em;
				   gap: min(2rem, 6vw);
				     justify-content: center;
/* 	shrink font for narrowest screens  */
	  /* font-size: min(1em,3.5vw); */
				}
#footer ul.menu li a {padding: 1em 0; display: block;}
#footer #copyright {
	/* 	shrink font for narrowest screens  */
	  font-size: min(.85em,3.5vw);
}

article header {
  margin: 0 0 1em;
}
article ul, article p {
	line-height: 1.3;
}
article ul {
	/* padding-left: 1em; */
		margin-bottom: 1em;

}
article ul li {
	/* margin-bottom: 1em; */
	margin-left: 1em;
}
footer.entry-footer {
  text-align: center; /* margin: 0 0 .5em; */
}
footer.entry-footer .cat-links, footer.entry-footer .tag-links {
  margin: 0 0 1em;
  display: block;
}

.entry-content {
  line-height: 1.2;
}

/* Side-by-side logo and menu */
header#header {margin: 0 0 2em;}
header#header #headerwrap{
  display: flex;
  justify-content: space-between;
  padding-bottom: .5em;
}
#branding {
  width: 16rem;
}
nav#menu { 
	min-height: 1em; /* solution for padding below logo when menu is empty */
	/* width: calc(100vw - 16em - 2em - 2em); */ 
/*	background-color: aliceblue;*/
}
nav#menu .menu
/* Alternately, nav#menu ul will cover the WP fallback menu, but this leads to the logo being pushed off the page if the fallback generates a long list  */
 {
  display: flex;
  justify-content: flex-end;
/*   gap: 2rem; */
  gap: min(2rem, 5.5vw);
  flex-wrap: nowrap;
  background: none;
/* 	shrink font for narrowest screens  */
	  font-size: min(1em,3.5vw);
}

nav#menu .menu a {
  line-height: 1em;
  padding: calc(var(--headHeight) / 10 - .5em) 0;
  /* margin: 0.2em 0 -0.2em; */
  margin-top: calc(var(--headHeight) / var(--navShift));
  margin-bottom: calc(-1 * var(--headHeight) / var(--navShift));
  display: block;
  color: #fff;
}
@media (max-width:750px) {
  /* Side-by-side logo and menu */
	header#header {padding-bottom:0;}
  header#header #headerwrap{
    flex-direction: column;
    justify-content: center;
    align-items: center;
	  padding-bottom: 0;
  }
	nav#menu .menu a {
		margin: 0;
	}
  #footer {
    /* text-align: center; */
  }
  #footer ul.menu { 
    /* justify-content: center; */
    /* align-items: center; */
  }
#wrapper {
  margin-left: 1em; margin-right: 1em;
}	
}

@media (max-width: 30em) {
	#footer ul.menu {
		flex-direction: column;
		gap: 0;
		margin: 0 0 2em;
	}
	#footer ul.menu li a {padding: .5em;display: inline-block;}
	
}

main#content header.header, 
.entry-content h1.wp-block-heading
{margin-bottom:1.5rem;}

/* Newsletter archive  */

.post-type-archive-newsletter h2 {
margin-bottom:0; 
/* font-style: italic; */
/* italic is email standard practice, however, code gets brought in w/ <EM> tag */
}

/*Make Money aka category archive page */
main#content.category-archive h1 {margin-bottom:1rem;}
main#content.category-archive h2 {font-size: 1.25em;}
main#content.category-archive h3 {margin-bottom:0;
font-weight: normal; text-decoration: underline;}
main#content.category-archive .cat h4 {font-weight: normal;}
main#content.category-archive .cat h4:last-child {margin-bottom:1.5em; }


/* Social links  */
#socials {display:flex;gap: .75em;margin: 1em 0;justify-content: center;}
#socials .networks {display:flex;gap: 0;
					/* margin: 1em 0; */
					justify-content: center;}

#socials .pls_follow {
    /* line-height: calc(1.3 *  1.5em); */
    white-space: nowrap;
    height: 1.5em;
    display: block;
    padding: .5em 0;
    margin-bottom: 0.5em;
}

#socials a {
  background-repeat: no-repeat;
  display: block;
  height: 1.5em;
  width: 1.5em;
  background-size: contain;

  height: calc(1.5em + 1em);
  width: calc(1.5em + 1em);
  background-size: calc(60%);
	background-position: center;

}
#socials a.facebook { background-image: url(gfx/social/facebook.svg);}
#socials a.linkedin { background-image: url(gfx/social/linked-in.svg);}
#socials a.instagram { background-image: url(gfx/social/instagram.svg);}
#socials a.tiktok { background-image: url(gfx/social/tiktok.svg);}
#socials a.twitter { background-image: url(gfx/social/twitter.svg);}
#socials a.youtube { background-image: url(gfx/social/youtube100x69.svg); width: calc(1.5em / .7);}
#socials a.youtube {

					width: calc(1.5em / .69);
					width: calc(2.5em / .69);

					}
#footer {margin-top: 0;
		/* remove top margin while sidebar is only being shown as a footer with social webkit-columns */
		}
@media (max-width: 410px) {
	#socials {flex-direction: column;align-items: center;gap: 0;}
}

/* Protect addresses from HTML-entity obfuscation  */
/* .cmplz-contact-email::before { content: "conta";} */
/* unfortunately, this doesn't work because the css-inserted content is not selectable */

/* new for NextMet  */

.termsbox {font-size: .85em;}

/*FluentForms overrides */
/*#To-Do: turn off their stylesheet, if possible */

select, input, textarea {font-size:100%; font:inherit;} /*why aren't these included in blankslate's reset? */

.hidden {display:none; 
/*don't display email field on CYP form page*/
}

.fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label:after {
    color: #000;
	content: "*";
    margin-left: 0px;
}