﻿*, *:before, *:after {
    box-sizing: border-box;
}

*::selection {
    background: var(--selection);
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--sansserif);
    background-color: white;
    color: var(--color);
}

body.no-scroll {
    overflow-y: hidden;
}

main {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background-color: #E7E7E7;
    padding-bottom: 3rem;
    height: 100%;
    overflow-x: hidden; /*Necessary to prevent horizontal scrolling due to h2 backgrounds*/
    overflow-x: clip; /*Allows sticky positioning, but is not yet supported in Safari*/
    box-shadow: 0 30px 30px #BBBBBB;
}

main section {
    padding: 3rem 0;
}

main section:last-of-type {
    padding-bottom: 0;
}

main section.nospace {
    padding-block: 0;
}

section .container {
    max-width: 1300px;
    margin: 0 auto;
}

section .container.screen-gutter {
    padding-inline: 1rem;
}

.notransition {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

.hidden {
    display: none !important;
}

hr {
}

img {
    width: 100%;
}

iframe.youtube {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.center {
    text-align: center;
}

button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}





















h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 400;
}

h1:not(.no-clear),
h2:not(.no-clear),
h3:not(.no-clear),
h4:not(.no-clear),
h5:not(.no-clear),
h6:not(.no-clear) {
    clear: both;
}


main section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
}

main section h2 {
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
    margin-bottom: 2rem;
    /*background-color: var(--background);*/
    background-color: transparent;
    z-index: 799;
}

main section h2:not(.no-bar) {
    padding-block: 1.5rem;
    color: white;
}

main section h2:not(.no-bar) span {
    position: relative;
    display: inline-block;
}

main section h2:not(.no-bar) span:before {
    width: calc(100vw + 5rem);
    content: '';
    height: 3.5rem;
    display: block;
    position: absolute;
    right: -5rem;
    top: 50%;
    transform: translate(0, -50%);
    z-index: -2;
    border-width: 1.75rem 1.75rem 1.75rem 3rem;
    border-color: rgb(63, 70, 140) transparent rgb(63, 70, 140) rgb(63, 70, 140);
    border-style: solid;
}

main section h2:not(.no-bar) span:after {
    width: calc(100vw + 5rem);
    content: '';
    height: 3.5rem;
    display: block;
    position: absolute;
    right: -5rem;
    top: 50%;
    transform: translate(0, calc(-50% + 3px));
    z-index: -1;
    border-bottom: 3px solid #CCCCCC;
}

main section h2:before {
    background: var(--background);
}

main section h3.no-padding {
    padding: 0;
}

main section h3 {
    font-size: 1.3rem;
    border-bottom: 2px solid rgb(63, 70, 140);
    margin-bottom: 1rem;
}

main section h3.no-decoration {
    border-bottom: none;
}

main section h3.no-decoration:before,
main section h3.no-decoration:after {
    content: none;
}

main section h4 {
    font-size: 1.2rem;
}

main section h5 {
    font-size: 1.1rem;
}

main section h6 {
    font-size: 1.0rem;
}

main section h3 {
    position: relative;
    padding: 1rem 0;
    z-index: 1;
}

main section h3:before {
    content: "";
    height: 20%;
    position: absolute;
    top: 40%;
    z-index: -1;
}

main section h3:before {
    width: 30px;
    left: -30px;
    top: 48px; /*https://stackoverflow.com/a/54389914*/
}


/*main section h2:before,
main section h2:after {
    background-color: var(--header-background);
}*/

main section h3:before {
    border-bottom: 2px solid rgb(63, 70, 140);
}

@media screen and (max-width: 1300px) {
    main section h2 span {
        padding-left: 2rem;
    }
}

@media screen and (min-width: 800px) {
    main section h2.drop {
        margin-top: 1rem;
    }
}









.panel {
    background-color: var(--wa-color-surface-default);
    border-color: var(--wa-color-surface-border);
    --spacing: var(--wa-space-l);
    --inner-border-radius: calc(var(--wa-panel-border-radius) - var(--wa-panel-border-width));
    background-color: var(--wa-color-surface-default);
    border-color: var(--wa-color-surface-border);
    border-radius: var(--wa-panel-border-radius);
    border-style: var(--wa-panel-border-style);
    box-shadow: var(--wa-shadow-s);
    border-width: var(--wa-panel-border-width);
    color: var(--wa-color-text-normal);

    display: flex;
    flex-direction: column;
}

.panel .body {
    padding: var(--spacing);
    flex-grow: 2;
}







@media (max-width: 799px) {
    nav.pagination.desktop {
        display: none;
    }
}

@media (min-width: 800px) {
    nav.pagination.mobile {
        display: none;
    }
}



@layer wa-native {
    a:not(:hover, :focus) {
        text-decoration: unset !important;
    }
}