/*single page features and styling */

* {
    scroll-margin-top: 8rem;
   }
   
.post-container{
    grid-row-gap:0;
}

@media (max-width: 992px) {
.single h1 {
    font-size:2.5rem;
}
}

.post-content h3, .post-content h3 * {
    font-size: 1.25rem !important;
    line-height: 135% !important;
}

.post-content h2,  .post-content h2 * {
 font-size: 1.75rem !important;
}

.post-content h3 a, .post-content h2 a {
    text-decoration:none;
    border-bottom: 1px solid !important;
}

.post-content h3 a:hover, .post-content h2 a:hover {
    text-decoration:none;
    border-bottom: 2px solid !important;
}

.post-content p
 {
font-size: 1.1rem;
line-height: 155%;
letter-spacing: -0.5px;
}

.entry-content .post-content .wp-block-table  td,
.entry-content .post-content .wp-block-table  td a 
 {
font-size: 1.1rem;
line-height: 130%;
letter-spacing: -0.5px;
vertical-align: top;
padding: 1rem;
}

/*featured post on single page */

body.single .featured-post h2 *,
body.single .featured-post h2  {
   font-size:2rem !important;
   line-height: 110% !important;
}

/*single post sidebar*/

@media screen and (max-width: 992px) {
   .post-sidebar{
    display:none;
   }
}

button.download-pdf{
    cursor:pointer;
}

.sidebar-group h4:last-child{
    margin-bottom: 0 !important;
}

.research-area.sidebar-group img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

span.addtl-authors p a:hover {
    text-decoration:none !important;
    border-bottom:none !important;
}

/* star footer */

.star-divider-footer svg{
    height: 16px;
    width: auto;
}

body.single .star-divider-footer {
    height: 8rem !important;
}

/*------------------footnotes------------------*/

#footnote-popup {
    position: absolute;
    opacity: 1;
    pointer-events: none;
    left: 65%;
    max-width: 325px !important;
   
}

p.footnote{
    line-height:130%;
    font-size: 0.95rem;
}

div#footnote-popup{
    background-color: var(--wp--preset--color--off-white) !important;
    z-index:99 !important;
}

.dark-background div#footnote-popup {
    background-color: #222222 !important;
    z-index:99 !important;
}


div.download-link::before,
div.download-pdf::before {
    content: "";
    background-image: url("../icons/download.svg");
    background-position: center;
    background-repeat: no-repeat;
    width: 15px;
    height: 22px;
}

/*footnote styling*/
.footnote-list a:not(.text-decoration-none) {
    border-bottom: 1px solid !important;
}

.footnote-list a:not(.text-decoration-none):hover {
    border-bottom: 2px solid !important;
  }

ol.wp-block-footnotes li::marker {
    font-family: var(--wp--preset--font-family--medium), sans-serif !important;
    font-variant-numeric: normal;
}

.entry-content .post-content .wp-block-table td a.footnote,
a.footnote,
sup.fn a {
    font-family: var(--wp--preset--font-family--regular), sans-serif;
    font-size: 0.65rem;
    border: 1px solid;
    border-radius: 4px;
    padding: 0 0.25rem 0.125rem;
    margin: 0 0.25rem;
    margin-bottom: 0.25rem;
    position: relative;
    top: -0.125rem;
    vertical-align: middle;
  }

  a.footnote:hover,
  sup.fn a:hover {
    text-decoration:none !important;
    border: 1px solid !important;
  }

.footnote-list {
    font-size: 1.1rem;
    line-height: 150%;
    letter-spacing: -0.5px;
}

/*footnote positioning on single pages */

body{
    scroll-margin-top: 10rem;
}

a.footnote{
    scroll-margin-top: 10rem;
}

[id^='footnote-list-'] {
    scroll-margin-top: 10rem;
  }


/* report chapters anchor link menu*/

div.anchor-links {
    display:none;
 }

div.anchor-links.scrolled {
    top: 15vh !important;
    position: sticky;
}


@media screen and (min-width: 992px) {
div.anchor-links {
    display: block;
}
}


div.anchor-link-menu-link *:hover{
    text-decoration:none;
    border-bottom:none;
}

.anchor-links svg,
.anchor-links svg path {
    stroke: currentColor!important;
    fill: none !important;
}

.anchor-link-menu-link:hover svg,
.anchor-link-menu-link:hover svg path {
    stroke: currentColor!important;
    fill: currentColor !important;
}

.dark-background .anchor-links *:not(svg) {
    color: var(--wp--preset--color--light-blue) !important;
}
.dark-background .anchor-links svg,
.dark-background .anchor-links svg path {
    stroke: var(--wp--preset--color--light-blue) !important;
    fill: none !important;
}

.dark-background .anchor-link-menu-link:hover svg,
.dark-background .anchor-link-menu-link:hover svg path {
    stroke: var(--wp--preset--color--light-blue) !important;
    fill: var(--wp--preset--color--light-blue) !important;
}


/*banner header styling*/

.banner-post-header * {
  color: var(--wp--preset--color--off-white);
}

.banner-post-header{
    padding: 4rem;
}

.banner-post-header .taxonomy-label h4,
.banner-post-header .taxonomy-label h4 a {
    font-size: 1.25rem;
}

.banner-post-header .taxonomy-label h4:last-child {
    margin-right: 0 !important;
}

.banner-post-header span.addtl-authors{
    display: inline-flex;
    flex-direction: row;
}

.minimized-header{
    opacity: 0;
    height:0;

}

@media screen and (min-width: 576px) {
.minimized-header.scrolled{
    display: flex;
    height:auto;
    position: fixed;
    top: 80px;
    opacity:1;
    transition:opacity 0.3s ease-in-out;
    transition-delay: 0.1s;
    z-index: 99;
    height:auto;
  
 }
}

/*previous/next arrows on 2023 Landscape posts*/

.next-prev-arrows{
    position: fixed;
    top: 55vh;
    left: 0;
    right: 0;
    height: 20px;
    background-color:inherit;
    width: var(--responsive--alignwide-width);
    margin-left: auto;
    margin-right: auto;
    opacity:0;
    pointer-events: none;

}

.next-prev-arrows.scrolled{
    opacity:1;
    pointer-events: all;
    transition:opacity 0.3s ease-in-out;
    transition-delay: 0.1s;

}

.next-prev-arrows .prev-arrow svg{
    transform: rotate(180deg);
}

.next-prev-arrows svg,
.next-prev-arrows svg path
{
    height:20px;
    width:35px;
    fill:none !important;
    stroke:currentColor !important;
}

.next-arrow-icon:hover svg path,
.prev-arrow-icon:hover svg path {
    fill:currentColor !important;
}


.hidden{
    display:none;
    background-color: inherit;
}

h4.prev-page-link,
h4.next-page-link {
    background-color: var(--wp--preset--color--off-white);
}

.dark-background h4.prev-page-link,
.dark-background h4.next-page-link {
    background-color: var(--wp--preset--color--off-black);
}

.next-arrow{
    justify-content: end !important;
    flex-flow: row-reverse !important;
}

.prev-arrow-icon:hover + .hidden,
.next-arrow-icon:hover + .hidden {
    display: inline-flex;
   
}

/*list styling*/

ol.is-style-numbered-list li,
ul.is-style-numbered-list li {
    list-style: decimal;
}

ol.is-style-lettered-list li,
ul.is-style-lettered-list li {
    list-style: lower-alpha;
}

ol.is-style-roman-numeral li,
ul.is-style-roman-numeral li {
    list-style: upper-roman;
}

/* WP tables override default styling*/

.wp-block-table {
    border-radius: 12px;
    border: 2px solid;
    margin-top: var(--three-spacer);
    margin-bottom: var(--three-spacer);

}

.wp-block-table td, .wp-block-table th {
    border: 2px solid;
    padding-top: var(--two-spacer);
	padding-bottom: var(--two-spacer);
	padding-right: var(--one-spacer);
	padding-left: var(--one-spacer);
}

.wp-block-table th{
    font-family: var(--wp--preset--font-family--bold), sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: normal;
    line-height: 1;
    border-top: none !important;
    
}


.wp-block-table  td, .wp-block-table  td a {
    font-family: var(--wp--preset--font-family--regular), sans-serif;
    font-size: 1.25rem;
    font-weight: normal;
    letter-spacing: -0.35px;
    line-height: 130%;
    vertical-align: middle;
}

.wp-block-table tfoot tr td {
	font-size: .9rem !important;
}

.wp-block-table  td a {
    border-bottom: 1px solid;
}

.wp-block-table  td a:hover {
    border-bottom: 2px solid;
}

h4.is-style-arrow-link::after,
h4.arrow-link a::after {
    content: "";
    background-image: url("../icons/general/arrow-solid.svg");
    background-position: center;
    background-repeat: no-repeat;
    width: 32px;
    height: 14px;
    display:inline-flex;
    margin-left: var(--two-spacer);
}

.wp-block-table thead{
    border-bottom: 2px solid black !important;
    height: 60px;
}

.wp-block-table tr:not(:last-child)  {
    border-bottom: 2px solid black !important;
}

/*removing default WP table borders to allow round corners*/

td:last-child{
    border-right:none !important;
}

td:first-child{
    border-left:none !important;
}

tr:last-child td {
    border-bottom:none !important;
}

tr th:first-child{
    border-left:none !important;
}

tr th:last-child{
    border-right:none !important;
}

/*temporary backend styling for WP table header */

figure.wp-block-table.thead-blue thead tr{
background-color:#cefbfe!important;

}

.wp-block-table.is-style-wide-table{
    position: relative;
    left: 0;
    right: 0;
    padding: 0;
    width: 100%;

}

@media screen and (min-width: 992px) {
    .wp-block-table.is-style-wide-table {
        width: var(--responsive--widetable-width);
        margin-left: calc(calc(calc(var(--responsive--alignwide-width) - 0rem) /12) * -0.5);
    }
}


/*submenu styling*/

@media screen and (min-width: 992px) {
.submenu {
        display: flex !important;
}
}

.submenu {
    display:none;
    position:relative;
    top:auto;
    transition: transform 250ms ease;
}

.submenu h3 *, .submenu h3 {
    font-size: 1.25rem;
}

.submenu.scrolled{
    position: sticky;
    z-index:99;

}

/* Timeline reusable custom styling */

h2.is-style-timeline-clock {
    align-items: center;
}

h2.is-style-timeline-clock::before {
    content: "";
    background-image: url("../icons/clock.svg");
    background-position: center;
    background-repeat: no-repeat;
    width: 90px;
    height: 90px;
    display:inline-flex;
    margin-right: var(--two-spacer);
}

.is-style-timeline h4,
h4.is-style-timeline-date {
    display: inline-flex;
    align-items: center;
    margin-top: var(--two-spacer)!important;
    margin-bottom: var(--two-spacer)!important
}

.is-style-timeline h4.timeline-date::before,
h4.is-style-timeline-date::before {
    content: "";
    background-image: url("../icons/general/star-solid.svg");
    background-position: center;
    background-repeat: no-repeat;
    width: 26px;
    height: 28px;
    display:inline-flex;
    margin-right: var(--three-spacer);
    margin-left: -11px;
}

.is-style-timeline h4.timeline-date + .wp-block-group,
h4.is-style-timeline-date + .wp-block-group {
    padding-left: calc(10px + (var(--three-spacer)));
    border-left: 2px solid;
    padding-bottom: var(--four-spacer);
    overflow: auto;
}