/* Headers via https://patorjk.com/software/taag/#p=display&f=Doh */
/* Single page styles*/

/*hr*/

hr{
    color: var(--jfi-blue);
    margin:0;

}

/* type*/



h1.post-title, h1.page-title{
    line-height: 101% !important;
}

h2.post-title, h2.page-title{
    line-height: 110% !important;
}

.entry-content p, .entry-content em, .entry-content p a, .entry-content p span, .entry-content li, .entry-content li a {
    font-family: var(--font-family-serif);
	font-weight: 500;
	text-align: left;
	margin: 0 0 1rem;
    
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 2rem 0 1rem 0;
}

.entry-content p a {
    border-bottom: 1px solid var(--black);
    color: var(--black);
    text-decoration: none !important;
    line-height: inherit;
}

.entry-content p a:hover {
    border-bottom: none;
}

.entry-content strong,
.entry-content strong * {
    font-family: var(--font-family-serif-medium);
    font-weight: normal;
}


.post-author, .post-author a{
    font-family: var(--font-family-sans-serif);
    font-size: 2.75rem;
    color: var(--jfi-blue);
    font-weight: normal;
    line-height:normal;
    text-decoration:none !important; 
}

.post-author a:hover{
    text-decoration:none !important; 

}



/* converted all legacy h1,h2,h3 in posts and excerpts to p with class article-header*/
p.article-header{

    font-family: var(--font-family-serif);
    font-weight: normal;
    line-height:normal;
    text-transform: uppercase;
    margin: calc(2*var(--spacer)) 0 var(--spacer) 0;

}

/* legacy classes*/

p span.sans {
    font-family: var(--font-family-serif);
    font-weight: normal;
    line-height:normal;
    text-transform: uppercase;
}


/* unordered list */
.entry-content ul,
.sources-single-content ul {
    list-style-image: url("../assets/icons/plus.svg");
    margin-left: calc(0.75*var(--spacer));
    margin-bottom: calc(2*var(--spacer));
    margin-top: calc(2*var(--spacer));
   
    }

    .entry-content ul li,
    .sources-single-content ul li{
    padding: 0 0 var(--spacer) 1rem;
    list-style:unset;
    margin-bottom:var(--spacer); 
    }


/*tables and figures spacing*/



.entry-content table {
    margin: var(--standard-vert-spacer) 0 !important;
    max-width: 100% !important;
}

.entry-content table * {
    font-size: 1rem;
}

.entry-content figure {
    width: 100%;
    height: auto;
    margin: var(--standard-vert-spacer) 0 !important;
}

.entry-content figure img{
    max-width:100%;
    height:auto;
}

.entry-content figure.is-style-table-header table {
    margin-top: 0 !important;
}

.entry-content figure.is-style-table-header table tr:hover {
    background-color: inherit;
}

.entry-content figure.is-style-table-header,
.entry-content figure.is-style-table-header table {
    margin-bottom: 0 !important;
}

.entry-content figure.is-style-table-header {
    border-top: 1px solid;
    border-bottom: 1px solid;
    line-height: inherit;
}

.entry-content figure.wp-block-table + figure.wp-block-table,
.entry-content figure.wp-block-table + figure.wp-block-table table {
    margin-top: 0 !important;
}

.entry-content figure.wp-block-table td strong {
    display: block;
    line-height: 1.2;
}

/*customized wp-block-table */

.wp-block-table thead {
    border-bottom: 1px solid;
    border-top: 1px solid;
    line-height: inherit;
}

.wp-block-table td, .wp-block-table th {
    padding: .5em;
    border: 0px;
    word-break: normal;
}

.wp-block-table tbody tr:hover {
    background-color: var(--light-red);
}



/*post tags*/


.post-tags{
    border-bottom: 1px solid;
    border-top: 1px solid;
    line-height: inherit;

}

.post-tags li {
    margin:0;
}


.post-tags li a{
    text-decoration:none !important;
  border-bottom: 1px transparent;
}

.post-tags li a:hover{
    text-decoration:none !important;
    border-bottom: 1px solid;
    line-height: inherit;
}


/*footnotes*/

div.footnotes ol{
    counter-reset: item;
    list-style-type: none;
}

div.footnotes ol:before {
    font-size: 0.875rem;
}

div.footnotes ol li {
    list-style:decimal;
    display: block; 
    margin-bottom: calc(0.5 * var(--spacer));
    line-height: 1.5;
}

div.footnotes ol li * {
    line-height: 1.5;
}

div.footnotes ol li p{
    display: inline;
}

div.footnotes ol *,
.post-tag-container * {
    font-size: 0.875rem !important;
}

div.footnotes ol li:before { 
    content: counter(item) "  "; 
    counter-increment: item;
    font-family: var(--font-family-sans-serif);
    padding-right: calc(0.25*var(--spacer));
    line-height:1rem;
    display:inline;
}

div.footnotes ol:before{
    content: "Footnotes";
	font-weight: 500;
	line-height: 3.6rem;
	text-align: left;

}

div.footnotes hr{
    color: var(--black);
    margin: calc(4*var(--spacer)) 0 0 0;
}

div.footnotes ol li:first-child{ 
    margin-top: var(--spacer);
}

/*footnote links*/

sup a.footnote-ref{
    display: inline-block;
    font-size: 60% !important;
    line-height: 1 !important;
    transform: translateY(-10px);
    background: rgba(0,0,255,.08);
    font-family: var(--font-family-sans-serif) !important;
    border: 0 !important;
    margin: 0 3px;
    padding: 0.2rem 0.3rem 0rem;
    margin-bottom: -.1rem;
    font-weight: bold;
    border-radius: 2px;
}


/*hover footnotes*/

.inline-footnote{
    border-top: 1px var(--black) solid;
    background-color: var(--white);
    padding: 0.5rem 0;
    z-index:99;
}

@media screen and (max-width: 991px) {
    .inline-footnote {
        display: none;
    }
}

.inline-footnote *,
.inline-footnote p,
.inline-footnote em,
.inline-footnote a{
    font-size:1rem;
    line-height: 1.4rem;
}

 a.footnote-backref{
     border-bottom: 1px transparent !important;

    }

a.footnote-backref:hover{
    opacity:0.75; 
    }


.admin-bar .footnote-margin-adjust {
	position: absolute;
	margin-top: -40px;
}
.footnote-to-top {
	display: inline-block;
	margin-left: 10px;
}
.footnote-to-top::after {
	content: "\f474";
	font-family: 'dashicons';
	line-height: 1;
}

span.footnote a {
    color: var(--jfi-blue);
    text-decoration: none;
    border-bottom: none;
    /* font-family: var(--font-family-sans-serif); */
}   

span.footnote sup {
    vertical-align: super;
    font-size: 1rem;
    line-height: 1;
    
    color: var(--jfi-blue);
    
}


/*sources template*/

body.page-template-page-sources .post-metadata {
    flex-direction: column !important;
}

.sources-template{
    margin-left:auto;
    margin-right:auto;
}

.sources-inline {
    width:40px;
}

.single-featured-image img{
    max-height: 50vh;
    width: auto;
}



/*longform toggle on */



.longform-featured-image-caption p{
    margin:0;
}

.longform-featured-image-container {
place-items: center;
    overflow: hidden;

}

.longform-featured-image-container img {
    margin-bottom: 1rem;
    max-height: 90vh;
    width: auto;
    
    }



/*single page side column*/

#further-reading-popup-id {
    display: none;
    position: sticky;
    top: 10vh;
 }

.further-reading-popup-title {
    font-family: var(sans-serif) !important;
    color: var(--jfi-red);
    box-shadow: 0px -1px 0px 0px var(--jfi-blue);
    padding-top: 0.5rem;
}

h5.further-reading-popup-title *{
    font-size: 80%;
    line-height: 80%;
}

.further-reading-container img.icon.arrow,
.further-reading-container img.icon.diamond {
    height: 1rem;
    margin-right: 0.5rem;
}

@media screen and (max-width: 991px) {
    .further-reading-container img.icon.arrow,
    .further-reading-container img.icon.diamond {
        height: 0.75rem;
    }
};

div.further-reading-popup {
  max-width: calc((100%/12)*2.5);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 10vh;
 z-index: 1;
 transition: all .25s ease-out;
  
}

div.further-reading-popup.show {
opacity: 1;
pointer-events: all;
transition: all .5s ease-out;

}

@media screen and (max-width: 991px) {
    .further-reading-popup {
        display: none;
    }
}

/* #footnote_box {
    width: auto !important;
} */