/**

* Site header
*/

.site-header {

border-top: 5px solid $grey-color-dark;
min-height: 56px;

// Positioning context for the mobile navigation icon
position: relative;
@include BoxShadow(8);

}

.site-title {

font-size: 26px;
line-height: 56px;
letter-spacing: -1px;
margin-bottom: 0;
float: left;

}

.site-nav {

float: right;
line-height: 56px;

.menu-icon {
    display: none;
}

.page-link {
    line-height: $base-line-height;

    // Gaps between nav items, but not on the first one
    &:not(:first-child) {
        margin-left: 20px;
    }
}

@include media-query($on-palm) {
    position: absolute;
    top: 9px;
    right: 30px;
    background-color: $background-color;
    border: 1px solid $grey-color-light;
    border-radius: 5px;
    text-align: right;

    .menu-icon {
        display: block;
        float: right;
        width: 36px;
        height: 26px;
        line-height: 0;
        padding-top: 10px;
        text-align: center;

        > svg {
            width: 18px;
            height: 15px;

            path {
                fill: $grey-color-dark;
            }
        }
    }

    .trigger {
        clear: both;
        display: none;
    }

    &:hover .trigger {
        display: block;
        padding-bottom: 5px;
    }

    .page-link {
        display: block;
        padding: 5px 10px;
    }
}

}

/**

* Site footer
*/

.site-footer {

padding: $spacing-unit 0;
@include BoxShadow(8);

}

.footer-heading {

font-size: 18px;
margin-bottom: $spacing-unit / 2;

}

.contact-list, .social-media-list {

list-style: none;
margin-left: 0;

}

.footer-col-wrapper {

font-size: 15px;
color: $grey-color;
margin-left: -$spacing-unit / 2;
@extend %clearfix;

}

.footer-col {

float: left;
margin-bottom: $spacing-unit / 2;
padding-left: $spacing-unit / 2;

}

.footer-col-1 {

width: -webkit-calc(30% - (#{$spacing-unit} / 2));
width:         calc(30% - (#{$spacing-unit} / 2));

}

.footer-col-2 {

width: -webkit-calc(25% - (#{$spacing-unit} / 2));
width:         calc(25% - (#{$spacing-unit} / 2));

}

.footer-col-3 {

width: -webkit-calc(45% - (#{$spacing-unit} / 2));
width:         calc(45% - (#{$spacing-unit} / 2));

}

@include media-query($on-laptop) {

.footer-col-1,
.footer-col-2 {
    width: -webkit-calc(50% - (#{$spacing-unit} / 2));
    width:         calc(50% - (#{$spacing-unit} / 2));
}

.footer-col-3 {
    width: -webkit-calc(100% - (#{$spacing-unit} / 2));
    width:         calc(100% - (#{$spacing-unit} / 2));
}

}

@include media-query($on-palm) {

.footer-col {
    float: none;
    width: -webkit-calc(100% - (#{$spacing-unit} / 2));
    width:         calc(100% - (#{$spacing-unit} / 2));
}

}

/**

* Page content
*/

.page-content {

padding: $spacing-unit 0;
background-color: #f6f6f6;

}

.page-heading {

font-size: 20px;

}

.post-list {

margin-left: 0;
list-style: none;

> li {
    background-color: white;
    padding: $spacing-unit;
    margin: $spacing-unit 0;
    border-radius: 4px;
    @include BoxShadow(1);

    article >:last-child {
        clear: both;
    }

    a.read-more {
        text-transform: uppercase;
        font-weight: 500;
    }
}

}

.post-meta {

font-size: $small-font-size;
color: $grey-color;

}

.post-link {

display: block;
font-size: 24px;

}

/**

* Posts
*/

.post-header {

margin-bottom: $spacing-unit;

}

.post-title {

font-size: 42px;
letter-spacing: -1px;
line-height: 1;

@include media-query($on-laptop) {
    font-size: 36px;
}

}

.post-content {

h2 {
    font-size: 32px;

    @include media-query($on-laptop) {
        font-size: 28px;
    }
}

h3 {
    font-size: 26px;

    @include media-query($on-laptop) {
        font-size: 22px;
    }
}

h4 {
    font-size: 20px;

    @include media-query($on-laptop) {
        font-size: 18px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: $spacing-unit;
}

th, td {
    text-align: left;
    padding: $spacing-unit / 2;
    border-bottom: thin solid $brand-color;
}

tbody tr:nth-child(odd) {background-color: #f2f2f2;}

}

.pagination, .post-nav, .section-nav {

text-align: center;
      background-color: white;
      padding: $spacing-unit;
      margin: $spacing-unit 0;
      border-radius: 4px;
      @include BoxShadow(1);

}

.post-nav + h3 {

clear: both;

}

.post-nav>div, .section-nav>div {

width: 33.3%;
display: inline-block;

}

a.button, span.button, .post-nav>div>span, .post-nav>div>a, .section-nav>div>span, .section-nav>div>a {

border-radius: 5pt;
border: thin solid $grey-color-light;
padding: 5pt 15pt;

}

div.post-nav .button, div.pagination span.button, div.pagination a.button {

margin: 0 5%;

}

a.button:hover, .post-nav a:hover, .section-nav a:hover {

background: lightgray;
text-decoration: none;

}

.align-right { text-align: right; } .align-left { text-align: left; }

.left { float: left; } .right { float: right; }

div.post.candid-strategies-md article ul {

margin: 0;

}

div.post.candid-strategies-md article ul li {

display: block;
border: thin solid $grey-color-light;
border-radius: 1em;
padding: 6em;
width: 15em;
margin: 2em auto;
text-align: center;

}

article iframe, ul.post-list iframe {

max-width: 100%;

}

article div.comment {

border: thin dotted grey;
padding: 1em;
margin: 1em 0;

}

article div.series-header, article div.series-footer {

border: thin dotted lightgrey;
padding: 1em;
margin: 1em 0;
clear: both;

:last-child {
  margin-bottom: 0;
}

}

.yearly-archive dl h2 {

margin-top: 0.75em;

}

.archives ul {

display: grid;
margin: 0;
list-style: none;
grid-template-columns: repeat(4, 1fr);
grid-column-gap: 2em;

li
{
    margin-bottom: 1em;
    border-bottom: thin solid $grey-color-light;

    a
    {
        display: flex;
        justify-content: space-between;
    }
}

}

.yearly-archive dl, .monthly-archive dl {

display: grid;
margin: 0;
list-style: none;
grid-template-columns: 12em 1fr;
margin-bottom: 1em;

}