/* defaults */
body, h1, h2, h3, h4, h5, h6, ul, a, p, span, img {
    list-style: square outside;
    border: none;
    outline: none;
    color: #454B4D;
    line-height: 1.5;
    margin-top: 0;
}

a {
    color: #3b6bed;
}

a:hover {
    color: #305fb0;
}

h1, h2, h3, h4, h5, h6, p, span, img {
}

p {
}

ul, ol {
    margin-top: 0;
}

hr {
    border: none;
    border-bottom: 1px solid #aeaeae;
}

/* body */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    background: #f4f4f4;
    line-height: 1.5;
}

/* header */
header {
    width: 100%;
    height: 100px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

header * {
    margin: 0;
    text-decoration: none;
    color: inherit;
}

header *:hover {
    color: inherit;
}

/* nav */

nav {
    position: relative;
    padding: 0;
    margin: 0;
    bottom: 33px;
}

nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
}

nav ul li {
    border: 1px solid #aeaeae;
    border-bottom: none;
    border-right: none;
    padding: 0.25em 0.5em 0.25em 0.5em;
    /*z-index: -1;*/
}

nav ul li.current {
    background-color: #fff;
    /*box-shadow: none;*/
}

nav ul li::marker {
    content: "";
}

nav ul li:after {
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: 0 4px 4px #cecece;
    z-index: -1;
}

nav ul li:last-child {
    border-right: 1px solid #aeaeae;
}

/*
nav ul li:last-child::after {
    content: "";
}*/

/* main */
main { 
    border: 1px solid #aeaeae;
    box-shadow: 0 4px 4px #cecece;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    vertical-align: bottom;
    margin-bottom: 40px;
}

fieldset.card legend {
    position: relative;
    bottom: 0.75em;
    z-index: -1;
    padding: 0.25em 0.5em 0.25em 0.5em;
    background-color: inherit;
    border: inherit;
    border-bottom: none;
    box-shadow: inherit;
}

/* article styles */

article {
}

article h1, article h2, article h3, article p article h4, article h5, article h6 {
    margin-bottom: 0;
}

article .image, article .image + .caption {
    display: block;
    text-align: center;
}

article .image img {
    max-height: 400px;
    max-width: 70%;
    border: 1px solid #aeaeae;
}

/* footnote margin-bottom fix */ 
ol p {
    margin-bottom: 0;
}

/* footer */
footer {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}
