/* RESET */
html {
    box-sizing: border-box;
    font-size: 16px;
    font-family: var(--f-default-family);
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    scroll-behavior: smooth;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}
html,
body {
    background-color: var(--c-body-background);
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    font-family: var(--f-headline-family);
}

ol,
ul {
    list-style: none;
}

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

input[type='search'] {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
input[type='search'] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* END OF RESET */

/* START OF VERY SIMPLE GRID LAYOUT */

.container {
    padding: 0 1rem;
    margin: 0 auto;
}
@media screen and (min-width: 992px) {
    .container {
        max-width: 1200px;
    }
    .grid-wrapper {
        display: grid;
        grid-gap: 0 2rem;
        grid-template-columns: repeat(12, 1fr);
        margin: 0 auto;
        width: 100%;
    }
    .col-1 {
        grid-column: span 1;
    }
    .col-2 {
        grid-column: span 2;
    }
    .col-3 {
        grid-column: span 3;
    }
    .col-4 {
        grid-column: span 4;
    }
    .col-5 {
        grid-column: span 5;
    }
    .col-6 {
        grid-column: span 6;
    }
    .col-7 {
        grid-column: span 7;
    }
    .col-8 {
        grid-column: span 8;
    }
    .col-9 {
        grid-column: span 9;
    }
    .col-10 {
        grid-column: span 10;
    }
    .col-11 {
        grid-column: span 11;
    }
    .col-12 {
        grid-column: span 12;
    }
}

/* END OF SIMPLE GRID LAYOUT  */

.topnav {
    width: 100%;
    background-color: var(--c-nav-bg);
    color: var(--c-nav-font);
    position: relative;
    z-index: 2;
}
.topnav a {
    display: inline-block;
    color: var(--c-nav-font);
    padding: 10px 0 10px 0;
    text-decoration: none;
    font-weight: bold;
}
.search {
    max-width: 100%;
    display: block;
    position: absolute;
    padding: 10px 0 20px 0;
    background: var(--c-search-bg-fallback);
    background: var(--g-moz-search-gradient);
    background: var(--g-webkit-search-gradient);
    background: var(--g-search-gradient);
    overflow-x: hidden;
    box-shadow: var(--c-search-boxshadow);
    z-index: 1;
    width: 100%;
    transition: all 0.5s ease;
    will-change: transform;
}
.search.sticky {
    position: fixed;
    top: 0;
    z-index: 1;
    padding: 10px 0 10px 0;
}
@media screen and (min-width: 992px) {
    .search.sticky {
        padding: 5px 0 10px 0;
    }
}
.search.sticky h1 {
    transform: translateY(-100%);
    font-size: 0;
    opacity: 0;
}

.search h1 {
    font-size: 2rem;
    color: var(--c-search-headline);
    opacity: 0.9;
    padding: 0;
    transform: translateY(0%);
    transition: all 0.3s ease;
    will-change: transform;
}
@media screen and (min-width: 992px) {
    .search h1 {
        font-size: 3.4rem;
        padding: 1rem 0 0.4rem 0;
    }
}
.search-bar:focus {
    outline: none;
}
.search-bar {
    padding: 0;
    font-size: 2rem;
    width: auto;
    padding: 0;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--c-search-text);
    background-image: var(--icon-search);
    background-size: 9rem;
    background-position: 0px 6px;
    background-repeat: no-repeat;
    padding-left: 2.4rem;
    transition: all 0.3s ease;

    will-change: transform;
}
.search.sticky .search-bar {
    font-size: 1.5rem;
    padding-left: 1.6rem;
    background-size: 6rem;
    background-position: 0px 6px;
}

@media screen and (min-width: 992px) {
    .search-bar {
        font-size: 4rem;
        padding-left: 5rem;
        margin-bottom: 1rem;
        background-image: var(--icon-search);
        background-size: 20rem;
        background-position: 0px 10px;
        background-repeat: no-repeat;
    }
    .search.sticky .search-bar {
        background-position: 0px 5px;
    }
}
.search-bar::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--c-search-placeholder);
    background: var(--c-search-placeholder-clip);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.7; /* Firefox */
}

.search-bar:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: var(--c-search-placeholder);
    background: var(--c-search-placeholder-clip);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.7;
}

.search-bar::-ms-input-placeholder {
    /* Microsoft Edge */
    color: var(--c-search-placeholder);
    background: var(--c-search-placeholder-clip);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.7;
}
.results a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    max-width: 100%;
    font-weight: bold;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    border-radius: 1rem;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
}
.results a:hover {
    background: rgba(255, 255, 255, 0.2);
    -webkit-transform: scale(1.03);
    transform: scale(1.03);
}
.results h5 {
    display: block;
    padding: 10px 0;
    color: white;
    text-decoration: none;
    margin: 5px 1rem;
    margin-top: -10px;
    font-size: 2rem;
}
@media screen and (min-width: 992px) {
    .results a {
        padding: 20px;
        margin: 10px 0;
    }
}

.content {
    margin-top: 110px;
}
@media screen and (min-width: 992px) {
    .content {
        margin-top: 220px;
    }
}
.content h3 {
    font-size: 1.4rem;
    padding-top: 20px;
    padding-bottom: 10px;
    opacity: 0.7;
    color: var(--c-content-headline);
}
@media screen and (min-width: 992px) {
    .content h3 {
        font-size: 1.6rem;
        padding-top: 35px;
        padding-bottom: 15px;
    }
}

.content-box a {
    display: block;
    text-align: left;
    position: relative;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    letter-spacing: -0.1px;
    text-decoration: none;
    color: var(--c-box-text);
    letter-spacing: -0.5px;
    font-size: 1.1rem;
    line-height: 1.4em;
    background: var(--c-box-bg);
    padding: 15px;
    max-width: 100%;
    -webkit-border-radius: 1.2rem;
    -moz-border-radius: 1.2rem;
    border-radius: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    -webkit-transition: all 100ms ease;
    transition: all 100ms ease;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
}
@media screen and (min-width: 992px) {
    .content-box a {
        letter-spacing: -0.5px;
        font-size: 1.3rem;
        line-height: 1.35em;
        padding: 25px;
        margin-bottom: 20px;
    }
}
.content-box .labels {
    position: relative;
    display: block;
    margin-top: -5px;
    margin-bottom: 5px;
}
@media screen and (min-width: 992px) {
    .content-box .labels {
        margin-top: -15px;
        margin-bottom: 5px;
    }
}
.content-box .label-tag {
    text-transform: uppercase;
    font-size: 0.6rem;
    padding: 5px 8px;
    color: white;
    font-weight: 900;
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    border-radius: 0.5rem;
    margin-right: 5px;
    opacity: 0.8;
}
.content-box a:hover {
    background: var(--c-box-bg-hover);
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
}

.show-more {
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    color: var(--c-show-more-text);
    padding: 10px;
    font-size: 0.9rem;
    margin: 0 0 10px 10px;
    text-transform: uppercase;
}
.show-more:hover {
    color: var(--c-show-more-text-hover);
}

.modal {
    display: block;
    max-width: 95%;
    height: auto;
    width: 520px;
    max-height: 80%;
    position: fixed;
    text-align: left;
    z-index: 100;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    left: 50%;
    top: -120%;
    transform: translate(-50%, -50%);
    background: var(--c-modal-bg);
    color: var(--c-modal-text);
    opacity: 0;
    box-shadow: 0 0 60px 0px rgba(0, 0, 0, 0.4);
    will-change: auto;
    transition: opacity 0.4s ease-in-out, top 0.6s;
    padding: 30px;
}
.modal.open {
    opacity: 1;
    top: 30%;
}
.modal h3 {
    font-size: 1.4rem;
}
.modal-title {
    padding-bottom: 10px;
}
.modal-content * {
    position: relative;
    max-width: 100%;
    font-size: 0.9rem;
}

.modal-content a {
    color: var(--c-modal-a-text);
}
.modal-content a:hover {
    color: var(--c-modal-a-text-hover);
}
.modal-content code {
    display: block;
    max-width: 100%;
    white-space: pre-line;
    word-break: break-all;
}
.modal-footer {
    border-top: 1px solid #ccc;
    margin-top: 15px;
    padding-top: 15px;
    font-size: 0.85rem;
    font-style: normal;
}
.modal-close {
    position: absolute;
    top: 7px;
    right: 10px;
    padding: 7px 15px;
    font-weight: bold;
    font-size: 0.8rem;
    -webkit-border-radius: 2rem;
    -moz-border-radius: 2rem;
    border-radius: 2rem;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    opacity: 0.7;
}
.modal-close:hover {
    background-color: var(--c-bg-modal-close);
    opacity: 1;
}
.modal-content code {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-family: courier, monospace;
    padding: 0 3px;
}
.overlay {
    content: ' ';
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.7);
    overflow: hidden;
    text-align: center;
    opacity: 0;
    transition: opacity 0.35s;
    will-change: width, opacity;
}
.overlay.open {
    width: 100%;
    opacity: 1;
}
.footer {
    background: var(--c-footer-bg);
    color: var(--c-footer-text);
    padding-top: 30px;
    padding-bottom: 30px;
}
