/*!
Theme Name: walter-scott
Author: AmazeRealise
Version: 1.0.0
Text Domain: walter-scott
--*/

/* ----- Typography ----- */
/* Missing Styles for subscript */
sub {
    vertical-align: sub ;
    font-size: smaller ;
}

.main p a,
p a {
    word-break: break-all;
}

/* ----- END Typography ----- */


/* Careers -> img
 	Keep image aspect ratio. Fix for large sizing.
*/
.wp-block-image img {
	height:auto;
}

/* Artworks images streach - fix */
.wp-block-media-text__media img {
    height: auto;
}

/* Hompage hero image pixelated on mobile - fix */

@media (max-width: 600px) {
    .homepage-intro-block {
		background-size: initial;
	}
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Key Highlights - block */

.key-highlights {
    border: solid 1px #153453;
    padding: 4rem;
    background: #FFFFFF;
	display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.wp-block-column .key-highlights { height: 100%; }

.key-highlights__title {
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.5em;
    text-decoration: none!important;
}
.key-highlights__intro {
    text-align: center;
}
.key-highlights__video {
    
}

/* Page subtitle  */
.entry-title_subtitle {
    display: block;
    font-size: 2rem;
    text-transform: capitalize;
    color:#153453;
}

/* Fancy Intro */
.fancy-intro {
   position: relative;
   margin: 5rem auto;
   max-width: 960px;
   color: #153453;
}
.fancy-intro__blob-image-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
}
.fancy-intro__blob-image-wrapper svg, .fancy-intro__blob-image-wrapper img {
    max-height: 100%;
}

.fancy-intro__blob-svg-wrapper {
    position: absolute;
    width: 100%;
    max-width: 500px;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
}

.fancy-intro__content {
    position: relative;
    padding: 10rem 0;
}

.fancy-intro__title { }
.fancy-intro__subtitle { 
    display: block;
    font-size: 2rem;
    text-transform: capitalize;
    margin-top: 2.5rem;
}
.fancy-intro__link {
    position: relative;
    text-decoration: none;
    font-style: normal;
    /* color: inherit; */
    transition: color .5s ease-in-out;
}
.fancy-intro__link:before {
    content: "";
    position: absolute;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #153453;
    transition: width 0.35s ease-in-out;
}
.fancy-intro__link:hover:before {
    width: 100%;
}

/* Source list  */
.sources {
    width: 100%;
    margin: 2.5rem 0;
}

.sources__heading {

}

.sources-list {
    margin: 0;
}

.sources-list__item {
    list-style: decimal;
    padding-left: 3.5rem;
}

.ac {
    border: none !important;
}
.ac .ac-header {
    border-bottom: 1px solid #707070 !important;
    margin: 15px 0 !important;
}
.ac .ac-trigger {
    padding: 15px 30px 15px 15px !important;
}

/* Author card - alternative, landscape version */
.author-card {
    border-top: solid 1px #707070;
    padding: 5rem 0;
}

/* Important information */
.info {
    margin: 2.5rem 0;
}
.info b, .info p b {
    font-size: 1.25em;
}

.author-card__image {
    width: 300px;
    margin: 2.5rem auto;
    /* width: clamp(200px, 15vw, 350px); */
}

.author-card__image img {
    width: inherit;
}

.author-card__details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.author-card__name {
    font-size: 3.2rem;
}

@media only screen and (min-width: 768px) {
    
    .author-card {
        display: flex;
        flex-direction: row;
    }

    .author-card__image {
        margin-right: 2.5rem;
        width: 200px;
    }
}

/* Carbon articles */
.carbon-articles {
    padding: 10rem 0px;
}

.carbon-articles__heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 5rem;
    padding: 0;
    /* override h1 padding  */
}
.carbon-articles__heading:after { 
    /* override h1 after and show nothing */
    display: none; 

}

.carbon-articles__heading-primary {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.carbon-articles__heading-secondary {
    font-size: 4rem;
}

.article-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-columns: repeat( auto-fit, minmax(310px, 1fr) );
    gap: 2rem;
	grid-auto-rows: minmax(500px, auto);
/*     padding: 0 2rem; */
}

.article-list.article-list--featured .article-list__single:first-child {
    grid-column: span 2;
}

.article-list__single {
    display: grid;
/* 	margin-bottom: 60px; */
}

.article-list__single--featured {
    grid-column: span 2;
}

/* Post Card */
.post-card {
    position: relative;
    padding: 2.5rem;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: solid 1px #153453;
}
.post-card__icon {
    margin-bottom: 1rem;
}
.post-card__icon-media {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
}
.post-card__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: left;
}
.post-card__content {
    margin-bottom: 2rem;
}
.post-card__link {
    background: #153453;
    color: white;
    font-style: normal;
    text-decoration: none;
    padding: 1.5rem 5rem;
    display: inline-block;
}
.post-card__link:hover {
    color: #FFFFFF;
    background: #4c4d4f;
}

/* Animated icon */
.post-icon {
    position: relative;
    width: 120px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-icon__img {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 10px;
}

.post-icon__img img {
    max-width: 100%;
    height: auto;
}

/* Blob icon - block */
.blob-icon {
    position: relative;
    width: 150px;
    height: auto;
	margin: 5px auto 30px auto;
	display:block;
}
.blob-icon__img {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 10px;
}
.blob-icon__img img {
    max-width: 100%;
    height: auto;
}

/* New Awesome icons for post Video, article  */
.icon.-video-awesome {
    background-image: url(./images/icons/Video-awesome.svg);
}
.icon.-podcast-awesome {
    /* Might be added in future */
    /* background-image: url(./images/icons/your-file.svg); */
}
.icon.-article-awesome {
    /* Might be added in future */
    /* background-image: url(./images/icons/your-file.svg); */
}

/* Svg block */
.custom-block {
    text-align: center;
    margin: 2rem 0;
}
.custom-block__title {
	font-size:2.5rem;
	text-align: center;
}
.custom-block__html {}

.custom-block__html svg {
    max-width: 100%;
    height: auto;
}
.custom-block__html p , .custom-block__html figure {
	margin-top:2rem
}

/* Featured column - block */
.featured-column {
    position: relative;
    display: flex;
    flex-direction: column;
/*     padding-top: 30px; */
}

.featured-column__content ul {
	margin-left: 2em !important;
}
.featured-column li { 
	padding-bottom: 1em !important;
}
.featured-column--full-width-bg:before {
    content: "";
    position: absolute;
    background: inherit;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    transform: translateX(-100%);
	display:none;

}
.featured-column--full-width-bg:after {
    content: "";
    position: absolute;
    background: inherit;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    overflow: hidden;
    z-index: 0;
    transform: translateX(100%);
}
.featured-column__title {
	text-align: center;
    margin-bottom: 30px;
    padding-top: 30px;
}
.featured-column__content {
	padding: 0 30px;
    margin-bottom: 0;
}

/* Hero item */
.hero {
    width: 100%;
    margin-bottom: 10rem;
}
.hero__container {
    max-height: calc(100vh - 210px);
}

.hero__container img {
    max-height: inherit;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Helper classes */
.-medium { font-size: 1.5em; }

.margin-top {
    margin-top: 6rem;
}

/* FIX */
@media (min-width: 992px) {
    .fancy-column {
        height: auto;
    }
}

/* Accordion  */
.ac .ac-trigger {
    font-family: Miller,serif;
    font-size: 2rem !important;
	color: #153453;
}


ul:not(.main-navigation__list):not(.footer-links):not(.main-navigation__sub-list):not(.tabs-nav__tabs-list) {
    margin-left: 22px;
}

/* Embed video extra class */
.wp-block-embed { margin: 0 auto 1em auto; }
.vid-large { max-width: 960px; }
.vid-medium { max-width: 760px; }
.vid-small { max-width: 460px; }

/* ADMIN footer fix */
.interface-interface-skeleton__editor {
    margin-bottom: 30px !important;
}

@media (min-width: 1300px) {
	.post-template-single-carbon .container {
		width: 1140px;
		max-width: 100%;
	}
}

/* WP columns on carbon post */
@media (min-width: 600px) and (max-width: 781px) {
    .page-template-page-carbon .wp-block-column:not(:only-child) {
        flex-basis: 100% !important;
    }
}

@media (max-width: 781px) {
	.page-template-page-carbon .wp-block-column:not(:first-child) {
		margin-left: 0;
	}
}

.insights-cta__image {
    background-position: center;
}

.post-template-single-carbon .wp-block-image{
	max-width: 960px;
}

.post-template-single-intro .fancy-intro {
    max-width: 900px;
    font-size: 20px;
}

.post-template-single-intro .fancy-intro__content {
    padding: 0;
}

/* IE not supported */

/* Show on IE */
.not-supported-browser .support-modal {
    display: block; 
}

/* Hide on other browsers */
.support-modal {
    display: none;
}

.support-modal {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
}

.support-modal__overlay {
   
    width: inherit;
    height: inherit;
    background: rgba(0,0,0,.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.support-modal__container  {
    background-color: #fff;
    padding: 6rem 3rem 3rem;
    margin: 30px 15px;
    max-width: 100%;
    max-height: 90%;
    overflow-y: auto;
    box-sizing: border-box;
    text-align: center;
}

@media (min-width: 992px) {
    .support-modal__container {
        width: 100%;
        max-width: 1140px;
    }
}

.support-modal__intro {
    max-width: 700px;
    display: block;
    margin: 0 auto 3rem auto;
}

.support-modal__button  {
    display: block;
    margin: 3rem auto;
}

.support-modal__browser-list {
    max-width: 600px;
    margin: 0 auto;
}

.support-modal__browser {
    margin-bottom: 2rem;
}

.support-modal__browser-icon {
    padding-bottom: .5rem;
}
.support-modal__browser-icon svg {
    width: 80px;
    height: 80px;
}


/* --------------- Sustainability --------------- */

/* Breadcrumbs */
.breadcrumbs {
    list-style:none;
    padding:10px 0;
    overflow:hidden;
    margin-bottom: 0 !important;
}
  
.breadcrumbs li {
    display:inline-block;
    vertical-align:middle;
    margin-right:15px;
    font-style: normal;
    text-transform: capitalize;
}

.breadcrumbs li a {
    font-style: normal;
}
  
.breadcrumbs .separator {
    font-size:18px;
    font-weight:100;
    color:#ccc;
}

/* If theres a content spliter as hero before breadcrumbs add negative margin to remve gap */
.content-splitter+.breadcrumb-wrapper {
    margin-top: -60px;
}

.bg-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

.bg-white {
    background-color: white;
}

.breadcrumb-wrapper {
 
}
.breadcrumb-wrapper__inner {
    margin: 0 auto;
}


/* Pdf Library */
.pdf-library {

}

.pdf-library__heading {
    font-size: 32px;
    text-align: center;
}

.pdf-library__intro {
    /* text-align: center; */
    margin-bottom: 6rem;

}

.pdf-library__list {
    /* mobile code */
}

@media (min-width: 782px) {
    .pdf-library__list {
        columns: 2;
        gap: 3rem;
    }
}

@media (min-width: 992px) {
    .pdf-library__list {
        columns: 3;
        gap: 3rem;
    }
}


.pdf-group {
    display: inline-block;
    width: 100%;
    margin-bottom: 3rem;
    text-align: left;
}

.pdf-group__heading {
    font-size: 20px;
    text-transform: capitalize;
    text-align: left;
}


.pdf-link {
    display: block;
    position: relative;
    margin-bottom: 1rem;
    padding: 0 35px;
}

.pdf-link a {
    font-style: normal;
}

.position-top-left {
    position: absolute;
    top: 0;
    left: 0;
}

.position-top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.icon-pdf {
    display: inline-block;
    background-image: url(./images/icons/PDF-2.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 28px;
    height: 28px;
}

.icon-download {
    display: inline-block;
    background-image: url(./images/icons/Download-2.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 16px;
    height: 16px;
}

.heading-underline {
    background: #707070;
    height: 3px;
    margin: 0 0 2rem 0;
}







.bg-color-full {
    width: 100vw;
    left: -50vw;
    margin-left: 50%;
}


/* Signposts Grid */
.signposts {
    text-align: center;
}
.signposts__heading  {
    font-size: 3.5rem;
}

.signposts__grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
    margin-right: -1rem;
}

.signposts__grid-item {
    flex-basis: 100%;
    /* max-width: 50%; */
    /* flex-grow: 1; */
    padding: 1rem;
}

@media (min-width: 992px) {
    .signposts__grid-item {
        flex-basis: 50%;
        /* max-width: 100%; */
        /* flex-grow: 1; */
    }
}

@media (min-width: 1200px) {
    .signposts__grid-item {
        flex-basis: 33.33%;
        /* max-width: 50%; */
        flex-grow: 1;
    }
}

.signposts__grid-item .signpost {
    height: 100%;
}

/* Single Signpost  */
.signpost {
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.signpost__image {
    /* same size as insights */
    width: 100%;
    height: 125px;
    object-fit: cover;
    object-position: center;
}

.signpost__content {
    padding: 20px 20px 50px;
}

/* Button arrow */
.is-style-button-arrow .wp-block-button__link {
    position: relative;
    padding-right: 35px;
    text-align: left;
    /* min-width: 250px; */
}

.is-style-button-arrow .wp-block-button__link:after {
    content: "";
    display: block;
    position: absolute;
    background: url(./images/icons/Chevron-Right-White.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
    right: 5px;
    height: 15px;
    width: 15px;
    top: 50%;
    margin-top: 0;
    transition: right 0.25s ease-in-out;
    transform: translateY(-50%);
}

.is-style-button-arrow:hover .wp-block-button__link:after {
    right: 0px;
} 

/* Block Background */
.block-background {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    padding: 7.5rem 5rem;
}

.block-background--image {
    background: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 7.5rem 0;
}

.block-background > .container {
    padding: 0;
}

.block-background .wp-block-column {
    /* padding: 5rem; */
}

/* Text Box */
.text-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
}

.text-box {
    padding: 5rem;
}

.text-box--wide {
    grid-column: 1 / -1;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50vw);
}

/* Block Grid */
.block-grid {
    margin: 7.5rem 0;

}

.block-grid__list {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(300px, 1fr) );
    gap: 3.5rem;
}

.block-grid__item {
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
}

.block-grid__item--large {
    /* Empty on mobile */
}

@media (min-width: 992px) {
    
    .block-grid__intro {
        max-width: 75%;
        margin: 0 auto;
    }
}

.figure {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* .figure__image-link:hover .figure__image {
    transform: scale(1.05);
} */

.figure__ratio {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
}

.figure__image {
    /* position: absolute;
    top: 0;
    left: 0; */
    /* width: 100%;
    height: 100%; */
    object-fit: contain;
    /* transition: all 0.5s ease-in-out; */

    max-width: 100%;
    max-height: 240px;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
    
}

.figure__caption {
    margin: 0.5rem;
    text-align: center;
}


/* Nav Jump to */
.nav-jump {
    background-color: #fff;
    position: sticky;
    width: 100%;
    top: 75px;
    left: 0;
    z-index: 2;
}

.nav-jump__item--title {
    display: none;
}

@media (min-width: 768px) {
    .nav-jump__item--title {
        display: list-item;
    }
}

@media (min-width: 1482px){
    .nav-jump {
        top: 110px;
    }
}

.-stuck .nav-jump {
    top: 75px;
}

.stopScroll .nav-jump {
    top: 0;
}

.nav-jump__list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 !important;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .nav-jump__list {
        justify-content: flex-end;
    }
}

.nav-jump__item {
    list-style: none;
    padding-left: 2rem;
}

.nav-jump__item:first-child {
    padding-left: 0;    
}

.nav-jump__link {
    font-style: normal;
}


/* Jump to - link/anchor offset while scrolling */
*[id] {
    scroll-margin-top: 150px;
}

/* --- pdf Card --- */
.pdf-card {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 7rem 4rem;
    margin-top: 2.5rem;
}

@media (min-width: 992px) {
    .pdf-card {
        flex-direction: row;
    }

    .pdf-card__media {
        flex-basis: 33.33%;
        order: 2;
    }

    .pdf-card__content {
        flex-basis: 66.66%;
        order: 1;
    }
}

.pdf-card__media {
    /* flex-basis: 33.33%; */
    text-align: center;
}

.pdf-card__image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.pdf-card__content {
    display: flex;
    flex-direction: column;
    /* flex-basis: 66.66%; */
}

.pdf-card__heading {
    text-align: left;
}

.pdf-card__link {
    margin-top: auto;
}


/* Helpers */
.y-padding {
    padding: 7.5rem 0;
}
.pt {
    padding-top: 7.5rem;
}
.d-inline {
    display: inline;
}

.line {
    height: 2.6px;
    max-width: 300px;
    background: black;
    margin: 6.5rem auto;
}



/* --------------- Theme --------------- */ 

/* Full width container */
.theme-full-width {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    padding: 7.5rem 0;
}

.theme-full-width .page-header {
    max-width: 90ch;
}

/* --- Colours --- */
:root {
    /* Brand Colurs */
    --ws-blue: #153453;
    --ws-blue-light: #1b3f63;
    --ws-pink: #FDE6DE;
    --ws-pink-light: #fdede7;
    --ws-grey: #E3E4DF;
    --ws-grey-light: #ebece8;
    --ws-dark-grey: #4c4d4f;

    /* Other */
    --white: #fff; 

    /* Default colours */
    --t-bg: var(--white);
    --t-content: var(--ws-blue);
    --t-standout-bg: var(--white);
    --t-standout-content: var(--ws-blue);

    --t-btn-border: var(--ws-blue);
    --t-btn-bg: var(--ws-blue);
    --t-btn-content: var(--white);

    --t-linkbutton: var(--ws-blue);
        --t-linkbutton--action: var(--ws-dark-grey);
}


.theme-blue {
    --t-bg: var(--ws-blue);
    --t-content: var(--white);
    --t-standout-bg: var(--white);
    --t-standout-content: var(--ws-blue);

    --t-btn-border: var(--white);
    --t-btn-bg: var(--white);
    --t-btn-content: var(--ws-blue);

    --t-linkbutton: var(--white);
    --t-linkbutton-icon-content: var(--white);
        --t-linkbutton--action: var(--ws-dark-grey);
        --t-linkbutton-icon-content--action: var(--ws-dark-grey);


    background-color: var(--t-bg);
}

.theme-pink {
    --t-bg: var(--ws-pink);
    --t-content: var(--ws-blue);
    --t-standout-bg: var(--ws-pink-light);
    --t-standout-content: var(--ws-blue);

    --t-btn-border: var(--ws-blue);
    --t-btn-bg: var(--ws-blue);
    --t-btn-content: var(--white);

    --t-linkbutton: var(--ws-blue);
        --t-linkbutton--action: var(--ws-dark-grey);

    background-color: var(--t-bg);
}

.theme-grey {
    --t-bg: var(--ws-grey);
    --t-content: var(--ws-blue);
    --t-standout-bg: var(--ws-grey-light);
    --t-standout-content: var(--ws-blue);

    --t-btn-border: var(--ws-blue);
    --t-btn-bg: var(--ws-blue);
    --t-btn-content: var(--white);

    --t-linkbutton: var(--ws-blue);
        --t-linkbutton--action: var(--ws-dark-grey);

    background-color: var(--t-bg);
}

.theme-white {
    --t-bg: var(--white);
    --t-content: var(--ws-blue);
    --t-standout-bg: var(--ws-grey-light);
    --t-standout-content: var(--ws-blue);

    --t-btn-border: var(--ws-blue);
    --t-btn-bg: var(--ws-blue);
    --t-btn-content: var(--white);

    --t-linkbutton: var(--ws-blue);
        --t-linkbutton--action: var(--ws-dark-grey);

    background-color: var(--t-bg);
}



/* Add theme colours to components */

/* 
    Client had components that only adjust based on body background and now they want it per (new)block.
    
    Add Theme colours only to new components and use old styles if there is not theme class higher up in tree.

    Ideally this selector would be removed "[class*='theme']" and theme would be added to all components and old themeing that depends on background classes removed.
    eg. -grey-backroud 
*/
[class*='theme'] h1, 
[class*='theme'] h3,
[class*='theme'] h4,
[class*='theme'] h5,
[class*='theme'] h6,
[class*='theme'] p {
    color: var(--t-content);
}

[class*='theme'] h1:after {
    background: var(--t-content);
}

[class*='theme'] h2 {
    color: var(--t-content, --ws-blue);
}

/* Theme for Components */

.svg-fill {
    fill: var(--t-content);
}

.entry-title_subtitle {
    color: var(--t-content);
}

/* Buttons */
.wp-block-button__link {
    border-color: var(--t-btn-border);
    background: var(--t-btn-bg);
    color: var(--t-btn-content);
}

.wp-block-button__link:active, 
.wp-block-button__link:focus, 
.wp-block-button__link:hover {
    color: var(--white);
}

/* Primary */
.is-style-primary .wp-block-button__link {
    border-color: var(--t-btn-border);
    background: var(--t-bg);
    color: var(--t-btn-bg);
}
.is-style-primary .wp-block-button__link:active, 
.is-style-primary .wp-block-button__link:focus, 
.is-style-primary .wp-block-button__link:hover, 
.is-style-primary .wp-block-button__link:visited {
    border-color: var(--t-btn-border);
    background: var(--t-btn-bg);
    color: var(--t-btn-content);
}

/* Secondary */
.is-style-secondary .wp-block-button__link {
    border-color: var(--t-btn-border);
    background: var(--t-bg);
    color: var(--t-btn-bg);
}
.is-style-secondary .wp-block-button__link:active, 
.is-style-secondary .wp-block-button__link:focus, 
.is-style-secondary .wp-block-button__link:hover, 
.is-style-secondary .wp-block-button__link:visited {
    border-color: var(--t-btn-border);
    background: var(--t-btn-bg);
    color: var(--t-btn-content);
}


/* Arrow */
.is-style-button-arrow .wp-block-button__link {

}

.is-style-button-arrow .wp-block-button__link:active, 
.is-style-button-arrow .wp-block-button__link:focus, 
.is-style-button-arrow .wp-block-button__link:hover, 
.is-style-button-arrow .wp-block-button__link:visited {
    border-color: var(--t-btn-border);
    background: var(--t-btn-bg);
    color: var(--t-btn-content);
}

/* Pdf */
.is-style-pdf a.wp-block-button__link {
    color: var(--t-linkbutton) !important;
}


.is-style-pdf a.wp-block-button__link:focus, 
.is-style-pdf a.wp-block-button__link:hover {
    /* owerwrite, Find that !important in min version and remove their important...  */
    color: var(--t-linkbutton--action) !important;
}

/* Download */
.is-style-download a.wp-block-button__link {
    color: var(--t-linkbutton) !important;
}

.is-style-download a.wp-block-button__link:active, 
.is-style-download a.wp-block-button__link:focus, 
.is-style-download a.wp-block-button__link:hover, 
.is-style-download a.wp-block-button__link:visited {
    /* owerwrite, Find that !important in min version and remove their important...  */
    color: var(--t-linkbutton--action) !important;
}

/*
    Client has multiple svg versions of the same icon to fit them on different background...
    Ideally this could be improved using one SVG with class and svg tag instead of css background.
*/
.theme-blue .is-style-button-arrow .wp-block-button__link:after {
    background: url(./images/icons/Chevron-Right-Blue.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.theme-pink .is-style-button-arrow .wp-block-button__link:after {
    background: url(./images/icons/Chevron-Right-White.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.theme-grey .is-style-button-arrow .wp-block-button__link:after {
    background: url(./images/icons/Chevron-Right-White.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.theme-white .is-style-button-arrow .wp-block-button__link:after {
    background: url(./images/icons/Chevron-Right-White.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.theme-blue .is-style-pdf .wp-block-button__link:after {
    background: url(./images/icons/Download-2-White.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.theme-blue .is-style-pdf .wp-block-button__link:before {
    background: url(./images/icons/PDF-2-White.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.theme-blue .is-style-download .wp-block-button__link:after {
    background: url(./images/icons/Download-white.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

/* Background for all components inside block background image */
.theme-bg-image .fancy-column {
    background: var(--white) !important;
}

/*  
   Add theme only to components if theres a theme class higher up in tree 
   and keep original styles if theres none.
*/
[class*='theme'] .fancy-column {
    background: var(--t-standout-bg);
}
[class*='theme'] .fancy-column .fancy-column__title, [class*='theme'] .fancy-column p {
    color: var(--t-standout-content);
    background: var(--t-standout-bg);
}



/* Fixes */
.page-id-134 .main {
    padding-bottom: 0;
}

.homepage-numbers__splitter {
    margin-top: 60px !important;
    margin-bottom: 60px !important; 
}

.page-template-template-sustainability .page-header {
    margin: 0 auto;
}

.page-header {
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .page-header {
		padding: 2rem;
    }
}

.page-template-template-sustainability .main {
    padding-bottom: 0;
}

@media (min-width: 992px) {
    .page-template-template-sustainability .wp-block-image {
        margin: 30px auto;
    }
}

.page-header *:last-child {
    margin-bottom: 0;
}

.block-background .wp-block-columns {
    margin: 0;
}

.single-post .content-splitter.normal {
    width: 100%;
    left: 0;
    margin-left: 0;
}


.is-style-pdf a {
    background: none !important;
}

.block-background .cta-panel {
    height: auto;
}

.cta-panel {
    font-style: normal;
}

.aligncenter {
    text-align: center;
}

/* This is a must as svg is added via css background...  */
.pdf-card.theme-pink .is-style-pdf .wp-block-button__link:after {
    background: url(./images/icons/Download-2.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.pdf-card.theme-pink .is-style-pdf .wp-block-button__link:before {
    background: url(./images/icons/PDF-2.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}
.pdf-card.theme-grey .is-style-pdf .wp-block-button__link:after {
    background: url(./images/icons/Download-2.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.pdf-card.theme-grey .is-style-pdf .wp-block-button__link:before {
    background: url(./images/icons/PDF-2.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}
.pdf-card.theme-white .is-style-pdf .wp-block-button__link:after {
    background: url(./images/icons/Download-2.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.pdf-card.theme-white .is-style-pdf .wp-block-button__link:before {
    background: url(./images/icons/PDF-2.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}


/* Upgrades of old components */
.page-template-template-sustainability {

}

.cta-panel {

}

.cta-panel__link {
    color: var(--t-linkbutton);
}

.cta-panel__link:hover {
    color: var(--t-linkbutton--action);
}

/* WP columns - margin fix */
.wp-block-columns {
	gap:30px;
	justify-content: space-evenly;
}

.wp-block-column {
    margin-left: auto !important;
    margin-right: auto !important;
}


h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.125rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.25rem;
    }
	
	h2 {
    	font-size: 2.8rem;
    }
}

/* Share buttons */
.share {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 20px;
}

.share__item {
    position: relative;
}

.share__link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-style: normal;
    font-size: 16px;
    margin-left: 10px;
}

.share__link--downlaod:before {
    content: "";
    position: relative;
    left: -5px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('./images/icons/Download.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.share__link--email:before {
    content: "";
    position: relative;
    left: -5px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('./images/icons/share-email.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.share__link--copy {
    /* cursor: pointer; */
}

.share__link--copy:before {
    content: "";
    position: relative;
    left: -5px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('./images/icons/share-link.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.share__link--copy:after {
    content: "Site URL copied";
    position: absolute;
    top: -100%;
    left: -5ch;
    display: block;
    width: 20ch;
    font-size: 14px;
    background: white;
    padding: 2px 10px;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    text-align: center;
    opacity: 0;
}

.is-copy:after {
    opacity: 1;
}


/* Mailing form block with background */
.block-form-bg {
    position: relative;
    padding: 45px 0;
}

@media (min-width: 768px) {
    .block-form-bg {
        padding: 45px;
    }
}

@media (min-width: 992px) {
    .block-form-bg {
        padding: 70px 0 145px;
    }
}

.block-form-bg__image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-form-bg__content {
    padding: 20px;
    background: var(--ws-pink);
}

@media (min-width: 768px) {
    .block-form-bg__content {
        padding: 60px;
    }
}

@media (min-width: 992px) {

}


/* Custom form mailing gutenberg block */
.newsletter {
    
}

.newsletter--spacing {
    padding: 7.5rem 0;
}

/* This is only for landing page - class added in cms */
.newsletter__heading {
    text-align: start;
    margin-bottom: 2rem;
}

.newsletter__intro {
    font-size: 16px;
    margin-bottom: 1rem;
}

.newsletter-signup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-signup > .newsletter-signup__item:last-child {
    margin-top: 1rem;
}

.newsletter-signup__filed-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 60ch;
    margin-bottom: 5px;
}

.newsletter-signup__item {
    flex-basis: 100%;

    &:nth-child(1),
    &:nth-child(2) {
        min-width: 20ch;
        flex: 1;
    }
}

.newsletter-signup__label {
    line-height: 1;
}

.newsletter-signup__email,
.newsletter-signup__input {
    padding: 1.6rem 1rem;
    background-color: transparent;
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: lighter;
    border: solid 1px black;
    cursor: pointer;
}

.newsletter-signup__input,
.newsletter-signup__email {
    &:focus {
        background-color: #e8f0fd !important;
    }
    &:active {
        background-color: #e8f0fd !important;
    }
}

.newsletter-signup__email::placeholder {
    font-size: 16px;
    font-weight: lighter;
}

.newsletter-signup__checkbox {
    display: -ms-inline-grid;
    display: -moz-inline-grid;
    display: inline-grid;
    place-content: center;
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 0;
    transform: translateY(-0.075em);
    cursor: pointer;
}
  
.newsletter-signup__checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
    background-color: var(--ws-blue);
  }
  
.newsletter-signup__checkbox:checked::before {
    transform: scale(1);
}

.newsletter-signup__text {
    margin: 20px 0;
}

.newsletter-signup__submit {
    webkit-appearance: none;
    font-size: 16px;
    font-size: 1.6rem;
    line-height: 1.75;
    padding: 6px 15px;
    text-align: center;
    text-decoration: none;
    font-style: normal;
    display: inline-block;
    min-width: 165px;
    background: var(--ws-blue);
    color: #fff;
    border-radius: 0;
    border: 2px solid var(--ws-blue);
    transition: all 0.2s ease-in-out;
    border: 2px solid #153453;
    cursor: pointer;
}

.newsletter-signup__submit:hover,
.newsletter-signup__submit:focus {
    background: var(--ws-dark-grey);
    color: var(--white);
    border: 2px solid var(--ws-dark-grey);
}

.newsletter-signup__feedback {
    font-size: 2rem;
    margin-top: 2rem;
    font-style: italic;
}

.newsletter-signup__small-print {
    font-size: 15px;
    margin: 3rem 0 0 0;
}

/* Mailing list block - block with link to form */
.cta-mailing-space-bottom {
    padding-bottom: 120px;
}
.mailing-list {
    min-height: 300px;
}

.mailing-list__content {
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 5%, 4rem);
    background-color: var(--ws-blue);
}

.mailing-list__heading {
    margin-bottom: 50px;
    text-align: left;
    color: white;
}

.mailing-list__link {
    display: inline-block;
    margin-top: auto;
    margin-bottom: 0;
    color: white;
}

.mailing-list__link:after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-right: solid 1px white;
    border-bottom: solid 1px white;
    transform: rotate(-45deg);
    margin-left: 10px;
    transition: all 0.2s ease-in-out;
}

.mailing-list__link:hover,
.mailing-list__link:focus {
    color: var(--ws-grey);
}

.mailing-list__link:hover.mailing-list__link:after,
.mailing-list__link:focus.mailing-list__link:after {
    margin-left: 20px;
}

.mailing-list__media {
    overflow: hidden;
    padding: 0;
}

.mailing-list__image {
    display: inline-block;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    object-fit: cover;
}

.mailing-list__image--min-size {
    display: block;
    min-height: 150px;
}

/* Sticky column on post page */
@media (min-width: 992px) {
    .aside-sticky {
        position: sticky;
        top: 100px;
    }
}

.podcast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}
.podcast-list-text {
    display: block;
    width: 100%;
    margin-bottom: 0;
    font-weight: bold;
}
.podcast-spotify {
    display: block;
}
.podcast-spotify svg {
    display: block;
    width: 150px;
    height: auto;
}
.apple-podcast {
    display: block;
}
.apple-podcast svg {
    display: block;
    width: 220px;
    height: auto;
}
.apple-podcast img {
    display: block;
    max-width: 210px;
    height: auto;
}

.podcast-test {
    background: white;
    padding: 1rem 2rem;
}

/*Spacing*/
.block-padding-top {
    padding-top: 30px;
}
.block-padding-bottom {
    padding-bottom: 30px;
}
.block-padding-y {
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (min-width: 992px) {
    .block-padding-top {
        padding-top: 60px;
    }
    .block-padding-bottom {
        padding-bottom: 60px;
    }
    .block-padding-y {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

.social-icons {

}

.social-icons__link {
    display: inline-block;
    text-decoration: none;
}

.social-icons__icon {
    display: block;
    width: 35px;
    height: auto;
    margin-top: 20px;
}

/* Page: about */
.page-id-86 .mailing-list {
    margin-top: 20px;
}

@media screen and (min-width: 992px) {
    .page-id-86 .mailing-list {
        margin-top: 100px;
    }
}


/* Flipbook */

.flipbook__embed {
    display: block;
    width: 100%;
    margin-bottom: 3rem;
}

.flipbook__media {
    display: block;
    width: 100%;
    margin-bottom: 3rem;
}

.flipbook__image {
    display: block;
    width: 100%;
    height: auto;
}

.flipbook__button-wrapper {
    display: flex;
    justify-content: center;
}

.flipbook__button {
    position: relative;
    display: inline-block;
    min-width: 170px;
    padding: 6px 35px 6px 10px;
    font-size: 1.6rem;
    font-style: normal;
    line-height: 1.75;
    text-align: left;
    text-decoration: none;
    border-color: var(--t-btn-border);
    background: var(--t-btn-bg);
    color: var(--t-btn-content);

}

.flipbook__button:hover,
.flipbook__button:focus {
    border-color: var(--t-btn-border);
    background: var(--t-btn-bg);
    color: var(--t-btn-content);
}

.flipbook__button:after {
    content: "";
    display: block;
    position: absolute;
    background: url(./images/icons/Chevron-Right-White.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
    right: 5px;
    height: 15px;
    width: 15px;
    top: 50%;
    margin-top: 0;
    transition: right 0.25s ease-in-out;
    transform: translateY(-50%);
}

.flipbook__button:hover:after,
.flipbook__button:focus:after {
    right: 0px;
}

/*Selected Posts Classic*/
.single-post .main {
    padding-bottom: 0;
}

.selected-posts-section {
    background-color: var(--ws-pink);
}
.selected-posts-classic {

}

.selected-posts-classic h3 {
    /*font-size: 2rem;*/
}

