/*
 Theme Name:   Quantum Software Alliance
 Description:  Custom theme
 Author:       Carnoustie Creative
 Author URI:   https://www.carnoustiecreative.co.uk
 Template:     baseline
 Version:      1.0.2
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  baseline-child


font-family: "Inter", sans-serif;
font-family: "Newsreader", serif;

*/

:root {
    --qsa-bahama-blue: #166B95;
    --qsa-silver-tree: #53B897;
    --qsa-chinook: #8FD9BB;
    --qsa-mineshaft: #2D2D2D;
    --qsa-line: #3B3B3B;
    --qsa-radius: 0.5rem;
}

.baseline {
    --baseline-aos-distance: 100px;
    --baseline-aos-distance-negative: -100px;
}

body.baseline {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 1.6vw, 1.8rem); 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media ( max-width: 600px ) {

    body.baseline {
        -webkit-font-smoothing: unset; 
    }

}

.baseline h1,
.baseline h2,
.baseline h3,
.baseline h4 {
    font-family: "Newsreader", serif;
    font-weight: 400;
}

.baseline h1 {
    font-size: clamp(4rem, 4vw, 6rem);
    margin-bottom: 2rem;
}

.baseline h1 em {
    font-style: normal;
    font-size: clamp(2.8rem, 2.8vw, 4rem);
}

.baseline h2 {
    font-size: clamp(2.8rem, 2.8vw, 4rem);    
}

.baseline h3 {
    font-size: clamp(2rem, 1.8vw, 3rem);    
}

.typing {
    position: relative;
}

.typing::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 1em;
    margin-left: 0.12em;
    background: currentColor;
    animation: caret-blink 1s steps(1) infinite;
    vertical-align: -0.1em;
}

.typing.typing-done::after {
    opacity: 0.3;
    animation: none;
}

@keyframes caret-blink {
    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .typing::after {
        animation: none;
        opacity: 0;
    }
}

.header-wrap .container,
#footer-bottom-container.container {
    max-width: 96%;
    width: 96%;
}

.baseline header .custom-logo {
    width: 15vw !important;
    margin-left: 1vw;
}

.baseline header .logotitle.row {
    padding: 4rem 0 3.5rem 0;
}

.header-wrap .container {
    border-bottom: 0.4rem solid var(--qsa-mineshaft);
}

.limit-width .inner,
.limit-width .before,
#intro .inner {
    max-width: 83rem;
    margin: 0 auto;
}

#intro .inner p,
#founding .inner p {
    max-width: 65%;
    margin: 0 auto;
}

#founding .inner h2 {
    margin-bottom: 3rem; 
}

#intro .before h1 {
    margin-bottom: 6rem;
}

#intro .grid-list {
    margin-top: 6rem;
}

header .second {
    top: 2rem;
    width: calc(100% - 2vw);
}

header .second .widget-area {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;    
}

.baseline header .second .menu {
    justify-content: space-between;
}

.second .menu,
#intro .cde-grid-item-inner a,
footer .menu li a,
a.deep-link,
.baseline .mobile-nav #menu-choices li a,
#agenda-stack li .item-label {
    font-size: clamp(1.05rem, 1.2vw, 1.3rem);
    letter-spacing: 0.15vw;
    text-transform: uppercase;
}

.inner a.deep-link {
    border-bottom: none;
}

.inner a:hover {
    color: inherit;
}

footer .menu {
    max-width: 100rem;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.second .menu .current-menu-item a {
    font-weight: 700;
    font-family: "Inter", sans-serif;
}

#intro .cde-grid-item-inner a {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    border-radius: var(--qsa-radius);
    border: 0.1rem solid var(--qsa-silver-tree);
    transition-duration: 0.4s;
}

#intro .cde-grid-item-inner a:hover {
    border-color: #fff;
}

#intro .cde-grid-item-inner a .item-label {
    color: #fff;
    padding: 2rem;
}

#intro .grid-list.cols-0 {
    justify-content: space-around;
}

#intro .item-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--qsa-silver-tree);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 2.5rem;
    color: var(--qsa-chinook);
    border-right: 0.1rem solid var(--qsa-line);
}

.flex-elm.bottom-line {
    position: relative;    
}

.flex-elm.bottom-line:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0.1rem;
    background-color: var(--qsa-line);    
    bottom: calc( var(--cde-edge-padding) * -1 );
}

.flex-elm.has-bgimage {
    padding-top: var(--cde-edge-padding);
    padding-bottom: var(--cde-edge-padding);
}

.cde-horz-line {
    height: 0.1rem;
    background-color: var(--qsa-line);
    max-width: 96%;
    width: 96%;
    margin-left: auto;
    margin-right: auto;
}

footer {
    border-top: 0.1rem solid var(--qsa-silver-tree);
    max-width: 96%;
    width: 96%;
    margin: 3rem auto 0 auto;
    padding-top: 5rem;
}

.footer-cc {
    margin-top: 8rem;
    text-align: center;
}

.footer-cc p {
    margin-bottom: 0.5rem;
}

#why .before {
    max-width: 70rem;
    margin: 0 auto 10rem auto;
}

#why .cde-grid-item-inner {
    border-radius: var(--qsa-radius);
    border: 0.1rem solid var(--qsa-bahama-blue);
    padding: 3rem;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(0.5rem);
}

#why .cde-grid-item-inner .item-content p {
    color: #fff !important;
    text-align: center;
    margin-bottom: 0;
}

.before {
    margin-bottom: 7rem;
}

a.deep-link {
    display: inline-block;
}

a.deep-link:after {
    position: relative;
    top: .1rem;
    content: "\f343";
    font-family: "Font Awesome 7 Pro";
    margin-left: 1rem;
    font-size: 2rem;
    color: var(--qsa-chinook);
}

#agenda-stack .cde-grid-item-inner a {
    display: grid;
    grid-template-columns: 25rem 1fr;
    grid-column-gap: 0;    
    color: #fff;
    border-bottom: none;
}

#agenda-stack li {
    margin-bottom: 0;
}

#agenda-stack li .cde-grid-item-inner { 
    border-radius: var(--qsa-radius);
    color: #fff;
}

#agenda-stack li .item-label,
#agenda-stack li .item-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#agenda-stack li .item-label {
    text-align: center;
}

#agenda-stack li .item-label:after {
    content: "";
    width: 0.1rem;
    background-color: #000;
    height: 90%;
    top: 5%;
    right: 0;
    position: absolute;
}

#agenda-stack li .item-content p {
    margin-bottom: 0;
    color: #fff;
}

#agenda-stack .grid-list.cols-1 {
    grid-gap: .3rem;
}

#agenda-stack li:nth-child(1) .cde-grid-item-inner {
    background-color: rgba(22, 107, 149, 1); 
}

#agenda-stack li:nth-child(2) .cde-grid-item-inner {
    background-color: rgba(22, 107, 149, 0.85); 
}

#agenda-stack li:nth-child(3) .cde-grid-item-inner {
    background-color: rgba(22, 107, 149, 0.6); 
}

#agenda-stack li:nth-child(4) .cde-grid-item-inner {
    background-color: rgba(22, 107, 149, 0.45); 
}

#agenda-stack li:nth-child(5) .cde-grid-item-inner {
    background-color: rgba(22, 107, 149, 0.3); 
}

#agenda-stack .grid-list {
    margin-left: 10%;
    margin-right: 10%;
}

.mobile-nav.above .container {
    border-bottom: 0.3rem solid var(--qsa-line);
}

.baseline #hamburger {
    background: transparent;
}

.baseline #hamburger #div-1,
.baseline #hamburger #div-2,
.baseline #hamburger #div-3 {
    background-color: var(--qsa-chinook);
}

.baseline .mobile-nav #menu-choices li, 
.baseline .mobile-nav #menu-choices-side li {
    background: var(--qsa-mineshaft);
    border-bottom-color: #000;
}

.baseline .mobile-nav #menu-choices li a {
    color: #fff;    
}

.baseline .mobile-nav #menu-choices li.current-menu-item > a, 
.baseline .mobile-nav #menu-choices-side li.current-menu-item > a {
    background: var(--qsa-mineshaft);
    color: var(--qsa-chinook);
}

.baseline nav .full li > ul li, 
.baseline header .widget .menu li > ul li {
    background: var(--qsa-mineshaft);
    border-bottom-color: #000;
}

.baseline header .widget .menu li > ul li a {
    color: #fff;
    font-size: clamp(.95rem, 1vw, 1.2rem);
    letter-spacing: 0.1vw;
    text-transform: uppercase;
}

header .right .widget .menu .sub-menu {
    padding-top: 1.5rem;
}

.baseline nav .full.top ul.menu > li.menu-item-has-children > a:after, 
.baseline header .widget ul.menu > li.menu-item-has-children > a:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='8' height='13' viewBox='0 0 8 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.063 11.375l5.25-5.063-5.25-4.875' stroke='%23166B95' stroke-width='2' fill='none'/%3E%3C/svg%3E")
}

body.page-template-page-document #canvas {
    overflow: visible;
}

.page-template-page-document .flex-elm p {
    color: #ccc;
}

.page-template-page-document .flex-elm em {
    color: #fff;
}

.page-template-page-document .cde-flex-content {
    counter-reset: section;
}

.page-template-page-document .flex-elm {
    counter-reset: subsection;
}

.page-template-page-document .flex-elm h3 {
    margin-top: 3rem;
}

.page-template-page-document .flex-elm h4 {
    margin-top: 4rem;
    counter-reset: subsubsection;
}

.page-template-page-document .flex-elm h2:not(.no-number):before {
    counter-increment: section;
    content: counter(section) ". ";
    margin-right: 0.4em;
}

.page-template-page-document .flex-elm h3:before {
    counter-increment: subsection;
    content: counter(section) "." counter(subsection) ". ";
    margin-right: 0.4em;
}

.page-template-page-document .flex-elm h4:before {
    counter-increment: subsubsection;
    content: counter(section) "." counter(subsection) "." counter(subsubsection) ". ";
    margin-right: 0.4em;
}

.page-template-page-document .document-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(30rem, 35rem);
    gap: 7rem;
    align-items: start;
}

.page-template-page-document .document-content {
    min-width: 0;
}

.page-template-page-document .document-toc {
    background: var(--qsa-mineshaft);    
    border-radius: var(--qsa-radius);
    padding: 1.8rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.06);
    position: sticky;
    top: var(--cde-edge-padding);
    margin-top: var(--cde-edge-padding);
    align-self: start;
    max-height: calc(100vh - 10rem);
    overflow: auto;
}

.page-template-page-document .document-toc__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.page-template-page-document .document-toc__title {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.page-template-page-document .document-toc__toggle {
    display: none;
    border: 0.1rem solid #d0d0d0;
    background: #f8f8f8;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
    cursor: pointer;
}

.page-template-page-document .document-toc__body {
    margin: 0;
    padding: 0;
    margin-top: 2rem;
}

.page-template-page-document .document-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.page-template-page-document .document-toc__item {
    line-height: 1.3;
    margin-bottom: 0rem;
}

.page-template-page-document .document-toc__item--h3 {
    padding-left: 1.6rem;
    font-size: 1.4rem;
}

.page-template-page-document .document-toc__link {
    color: inherit;
    text-decoration: none;
    border-bottom: 0.1rem solid transparent;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.page-template-page-document .document-toc__number {
    font-weight: 600;
    opacity: 0.85;
    white-space: nowrap;
}

.page-template-page-document .document-toc__label {
    display: inline-block;
}

.page-template-page-document .document-toc__link:hover {
    color: var(--qsa-chinook);
    border-color: var(--qsa-chinook);
}

.page-template-page-document .document-toc__item--active > .document-toc__link {
    color: #fff;
    border-color: var(--qsa-chinook);
    font-weight: 700;
}

.page-template-page-document .document-toc--closed .document-toc__body {
    display: none;
}

@media (max-width: 960px) {
    
    .page-template-page-document .document-layout {
        display: block;
    }

    .page-template-page-document .document-toc {
        position: fixed;
        right: -0.5rem;
        background-color: rgba(0,0,0,0.1);
        backdrop-filter: blur(0.8rem);
        width: min(80vw, 320px);
        margin-top: 0;
        border: 0.1rem solid var(--qsa-line);
        top: 7.5rem;
        max-height: calc(100vh - 11rem);
        overflow: auto;
        transform: translateX(calc(100% - 4.5rem));
        transition: transform 0.3s ease;
        z-index: 1200;
        padding: 1rem;
    }

    .page-template-page-document .document-toc__title {
        display: none;
    }

    .page-template-page-document .document-toc__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--qsa-bahama-blue);
        color: #fff;
        border-color: var(--qsa-bahama-blue);
        box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.12);
        margin-bottom: 0;
    }

    .page-template-page-document .document-toc__toggle:before {
        content: "\f323";        
        margin-right: 1rem;
        font-family: "Font Awesome 7 Pro";
    }

    .page-template-page-document .document-toc--open .document-toc__toggle:before {
        content: "\f324";        
    }
    

    .page-template-page-document .document-toc__body {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .page-template-page-document .document-toc--open {
        transform: translateX(0);
    }

    .page-template-page-document .document-toc--closed .document-toc__body {
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
    }
}

.cde-box-menu.style-1 .post-type-qsa-member h2 {
    white-space: initial;
    text-overflow: unset;
    overflow: visible;
    color: var(--qsa-silver-tree);
    font-size: clamp(1.1rem, 1.2vw, 1.3rem);
    text-align: center;
    font-family: "Inter", sans-serif;
}

.cde-box-menu.items-per-row-4.style-1 {
    grid-gap: 6rem;
}

.cde-box-menu .box-menu-item.post-type-qsa-member .img::before {
    background-size: contain;
    opacity: 0.7;
}

.cde-box-menu .flickity-viewport .box-menu-item.post-type-qsa-member .img::before {
    filter: grayscale(100%);
}

#arbitrary-instance- .flickity-viewport li.box-menu-item {
    width: 20rem;
    padding: 0 0 0 10rem;
}

.cde-box-menu .flickity-viewport .box-menu-item .img {
    width: 90%;
    height: 150px;
}

.cde-box-menu.cde-box-menu-flickity {
    display: block;
}

#founding.cde-shared-content-elm.has-bgcolor:not(.col-none) {
    padding-left: 0;
    padding-right: 0;
}

.baseline .flickity-button {
    background: var(--qsa-bahama-blue);
}