* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;

    background: #ffffff;
    /*color: #111111;*/
}


a {
    text-decoration: underline;
    text-decoration-thickness: max(1px, .08rem);
    text-underline-offset: .25em;
}

a:hover {
    text-decoration-thickness: max(2px, .15rem);
}

a:active,
a:focus {
    background-color: #f7dc6f;
    text-decoration-thickness: max(2px, .15rem);
}

img {
    max-width: 100%;
}

/*
    Layout
*/

.layout {
    width: 100%;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*
    * Header
    */

.site-header {
    /*border-bottom: 1px solid #000000;*/
    border-bottom: 3px solid grey;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 0 12px;
}


/*Logo*/
.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    background-color: lightgreen;
    padding: 4px;
}

.site-logo a {
    text-decoration: none;
    color: inherit;
    background: none;
}

.site-logo a:hover,
.site-logo a:focus,
.site-logo a:active {
    text-decoration: none;
    background: none;
}

.site-logo .beta {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.7;
    vertical-align: sub;
    margin-left: 2px;
}


.site-nav {
    display: flex;
    gap: 18px;
}

.site-nav a {
    color: #000000;
}

/*
    Main
*/
.site-main {
    width: 100%;
    min-height: 75vh;
    flex: 1;
    padding: 12px;
}


.page-title {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 34px;
    font-weight: normal;
}

.content-block {
    margin-bottom: 32px;
}

/*
    Footer
*/

.site-footer {
    border-top: 2px solid grey;
    background-color: #eae9e9;
}

.site-footer-inner {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 48px;

    padding: 4px 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;

    flex: 1;
    align-items: flex-start;
    /*min-width: 160px;*/
}

.footer-column h4 {
    margin: 0 0 6px 0;

    font-size: 15px;
    font-weight: 600;
}

.footer-column p {
    margin: 0;

    line-height: 1.5;
}

.footer-column a {
    color: #000000;
    display: inline-block;
}


/*
TODO: REMOVE?

.footer-column a {
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}*/




/*flash messages*/
.flash-message {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;

    border: 1px dashed #999;
    border-radius: 4px;

    background: #fafafa;

    font-size: 0.95rem;
    line-height: 1.4;
}

.flash-message-success {
    border-color: #2f7d32;
    background: #f3fff3;
}

.flash-message-warning {
    border-color: #b7791f;
    background: #fffaf0;
}

.flash-message-error {
    border-color: #c53030;
    background: #fff5f5;
}

.flash-message-info {
    border-color: #2b6cb0;
    background: #f5f9ff;
}



.page-text-content {
    max-width: 75ch;
    width: 100%;
    /*box-sizing: border-box;*/
}

/*
    Mobile
*/

@media (max-width: 720px) {
    .site-header-inner,
    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;

        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-nav,
    .footer-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-title {
        font-size: 28px;
    }
}
