/*
main.css
*/

:root {
    --page-w: 76%;
    --max-w: 90rem;
    --blue: #0077cc;
    --blue-dark: #005fa3;
    --main-text-color: #333333;
    --main-text-size: 1rem;
    --font-size-big: 186%;
    --font-size-sm: 85%;
    --radius: .24rem;        /* 8px */
    --radius-sm: .375rem;    /* 6px */
    --shadow: 0 10px 22px rgba(0,0,0,.12);
}

html { font-size: 100%; }
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: var(--main-text-size);
    color: var(--main-text-color);
    background: #ffffff !important;;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header, main {
    margin: 0 auto;
    width: var(--page-w);
    max-width: var(--max-w);
    min-width: 16rem;
}

h2, h3, h4, h5, h6 {
    margin: 2rem 0 .9rem 0;
    font-size: clamp(1.1rem, 2.6vw, 1.35rem);
}

a { color: var(--blue); }
p { margin: 0; }

code {
    font-family: Consolas, monospace;
    background: #f3f3f3;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.br { display: block; }

.ml-5 { max-width: 31.25rem; }  /* 500px */
.ml-6 { max-width: 37.5rem; }   /* 600px */
.ml-7 { max-width: 43.75rem; }  /* 700px */
.ml-8 { max-width: 50rem; }     /* 800px */
.ml-9 { max-width: 56.25rem; }  /* 900px */

.sp-1 { margin-block-start: 1rem; }
.sp-2 { margin-block-start: 2rem; }
.sp-3 { margin-block-start: 3rem; }
.sp-4 { margin-block-start: 4rem; }

.spe-1 { margin-bottom: 1rem; }
.spe-2 { margin-bottom: 2rem; }
.spe-3 { margin-bottom: 3rem; }
.spe-4 { margin-bottom: 4rem; }
.spe-5 { margin-bottom: 5rem; }
.spe-6 { margin-bottom: 6rem; }
.spe-7 { margin-bottom: 7rem; }
.spe-8 { margin-bottom: 8rem; }

.btn {
    --btn-h: 2.8rem;
    --btn-pad-x: 4.2rem;
    padding: 0 var(--btn-pad-x);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-h);
    border-radius: var(--radius);
    background: var(--blue);
    color: #fff;
    border: 1px solid var(--blue);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.full-bleed-divider {
    height: 1px;
    border-block-start: 1px solid #999;
    width: calc(100vw - (100vw - 100%));
    margin: 2rem 0;
    position: relative;
    left: 50%;
}

nav a {
    margin: 0 1rem;
    padding: .8rem .6rem;
    display: inline-block;
    color: var(--main-text-color);
}

header nav {
    text-align: right;
}

.bottom-nav {
    margin: 0 auto 4rem auto;
    padding-top: 0;
    width: var(--page-w);
    max-width: var(--max-w);
    text-align: center;
    position: relative;
    border: 0;
}

.bottom-nav a {
    margin: 0 1rem 4rem 1rem;
    padding: .25rem .5rem;
    display: inline-block;
}

.current {
    text-decoration: none;
    border: 0;
    cursor: default;
    display: inline-block;
    font-weight: 600;
}
header nav .current {
    margin: 0 1rem;
    padding: .78rem .6rem 0 .6rem;
    position: relative;
    top: .06rem;
}
.bottom-nav .current {
    padding: .32rem .6rem .88rem .96rem;
    margin-right: .5rem;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483647;
    background: #111;
    color: #fff;
    padding: 16px;
    display: none;
    box-shadow: 0 -2px 12px rgba(0,0,0,.25);
    font: 14px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.cookie-banner__text {
    flex: 1 1 auto;
}
.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cb-btn {
    border: 0;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 8px;
}
.cb-btn--primary {
    background: #3b82f6;
    color: #fff;
}
.cb-btn--ghost {
    background: #333;
    color: #fff;
}

.cb-link {
    color: #9cc2ff;
    text-decoration: underline;
}

footer {
    margin: 0 0 1.6rem 0;
    width: 100%;
    text-align: center;
    font-size: var(--font-size-sm);
    border-top: 0 !important;
}
footer p {
    margin: 0 0 .5rem 0;
}

footer h5 {
    margin: 0 0 .6rem 0;
    font-size: .85rem;
    font-weight: 400;
}

/*  =============================
    MEDIA
    ============================= */

@media (max-width: 600px) {

    header, main {
        width: 92%;
        max-width: none;
    }

    header nav a {
        margin: 0 0.8rem;
        padding: 0.8rem 0.2rem;
        text-align: center;
    }

    header nav {
        margin: 0;
        text-align: center;
    }
/*
    header nav .current {
        margin: 0 1rem;
        padding: .78rem .6rem 0 .6rem;
        position: relative;
        top: .06rem;
    }
*/

    header nav .current {
        margin: 0 1rem;
        padding: .78rem 0 0 0;
        position: relative;
        top: .06rem;
    }

    .bottom-nav .current {
        padding: .32rem 0 0 0;
    }

    .bottom-nav {
        margin: 2rem auto 4rem;
        display: grid;
        grid-template-columns: max-content max-content;
        justify-content: center;
        justify-items: start;
        column-gap: 2.4rem;
        row-gap: .5rem;
        width: 100%;
        max-width: none;
        text-align: left;
    }

    .bottom-nav a {
        margin: 0;
        padding: .25rem 0;
    }

    .cookie-banner__inner { flex-direction: column; }
}
