@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);

:root {
    --color-page: #ffffff;
    --color-ink: #000000;
    --color-mid: #8c8d8e;
    --color-pale: #e2e3e3;
    --color-link: #1f87c6;
    --color-hover: #2c91c9;
    --color-warning: #f26077;
    --color-pdf: #b8001d;
    --color-pdf-hover: #ff1b40;

    --color-nav-bg: #ffffffdd;
    --color-footer-bg: #f2efed;

    --space-column: 2rem;
    --padding-standard: 2rem;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--color-page);
    color: var(--color-ink);
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    line-height: 1.65;
}

a, a:visited {
    color: var(--color-link);
    text-decoration: none;
}

a:hover, a:visited:hover {
    color: var(--color-hover);
}

h1, h2 {
    line-height: 1.1;
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 0;
}

h2 + p {
    margin-top: 0.2em;
}

img {
    border: 0;
    margin: 0;
    padding: 0;
}

ul {
    list-style: square;
    padding-left: 20px;
}

ul.checkpoints {
    list-style: none;
    margin-left: -20px;
}

time {
    display: inline-block;
    color: var(--color-mid);
}

blockquote {
    color: var(--color-mid);
    margin: 20px;
}

table {
    font-size: 85%;
    line-height: 1.4;
}

th {
    text-align: left;
}

th, td {
    padding: 6px 12px;
}

tr.l th, tr.l td, tr.womens th, tr.womens td {
    background-color: #ecd1d5;
}

tr.m th, tr.m td, tr.mixed th, tr.mixed td {
    background-color: #ced8bb;
}

tr.v th, tr.v td, tr.vets th, tr.vets td {
    background-color: #e2e3e3;
}

span.credit {
    color: var(--color-pale);
}

p.working {
    text-indent: 20px;
    background-image: url("/images/spinner.gif");
    background-position: 0 5px;
    background-repeat: no-repeat;
}

strong.red {
    font-weight: normal;
    color: var(--color-warning);
}

div {
    box-sizing: border-box;
}

#container {
    position: relative;
    width: 100%;
}

#container #masthead {
    position: relative;
    width: 100%;
    height: 70vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    background-color: #d6d6d4;
    background-image: url("/images/downhill.jpg?1467019283");
}

#container #masthead.family {
    background-image: url("/images/hodgson_family.jpg?1467019283");
    background-position: center center;
}

#container #masthead .darken {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
}

#container #masthead #title {
    position: relative;
    width: 96%;
    height: 100%;
    max-width: 70rem;
    margin: 0 auto;
}

#container #masthead.minimal {
    height: auto;
    background: none;
}

#container #masthead.minimal #title h1.page {
    position: relative;
    left: 14rem;
    bottom: auto;
    margin: 1em 0;
    color: black;
    letter-spacing: -0.01em;
    font-size: 2.4em;
    line-height: 1;
}

#title h1.page {
    position: absolute;
    left: 14rem;
    bottom: var(--padding-standard);
    margin: 0;
    color: white;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-size: 2.4em;
    line-height: 1;
}

#page {
    position: relative;
    width: 96%;
    max-width: 70rem;
    margin: 0 auto 100px;
    display: flex;
    flex-flow: row nowrap;
    gap: var(--space-column);
}

#page #nav {
    position: sticky;
    align-self: flex-start;
    top: var(--padding-standard);
    margin-top: var(--padding-standard);
    width: 13rem;
    z-index: 20;
}

#page article {
    position: relative;
    z-index: 5;
    margin: 0;
    font-weight: 300;
}

#content {
    margin-top: var(--padding-standard);
}

#caption {
    background-color: var(--color-page);
    width: 200px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25);
    font-size: 85%;
    line-height: 1.4;
    color: var(--color-mid);
}

#caption p {
    margin: 10px;
}

#nav h2 {
    display: none;
}

#nav ul {
    position: relative;
    margin: 0;
    padding: 0 20px;
    list-style: none;
    font-size: 1rem;
    line-height: 1.2;
}

#nav ul li {
    margin-bottom: 1px;
}

#nav ul li a {
    display: inline-block;
    padding: 6px 12px 5px 9px;
    color: #8c8d8e;
    font-weight: bold;
    background-position: top left;
    background-repeat: repeat-y;
}

#nav ul li a:visited {
    color: #8c8d8e;
}

#nav ul li a.here {
    font-weight: bold;
}

#nav ul li a:hover {
    color: var(--color-hover);
}

#nav ul li a.here {
    padding-left: 3px;
    color: var(--color-ink);
    font-weight: bold;
    z-index: 500;
    background-color: white;
    background-image: none;
}

#nav ul li ul li a {
    font-weight: normal;
}

ul.downloads {
    position: relative;
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
    font-size: 125%;
    line-height: 1.5;
}

ul.downloads li {
    margin-bottom: 3px;
}

ul.downloads li a {
    display: inline-block;
    text-indent: 28px;
    min-height: 24px;
    line-height: 24px;
    background-position: top left;
    background-repeat: no-repeat;
}

ul.downloads li.pdf a {
    color: var(--color-pdf);
}

ul.downloads li.pdf a:hover {
    color: var(--color-pdf-hover);
}

ul.downloads li.pdf a {
    background-image: url("/images/pdf.png");
}

.inset {
    float: right;
    margin: 0 -100px 32px 60px;
    width: 240px;
}

.inset h3, .inset p {
    font-size: 1rem;
    color: var(--color-mid);
    margin: 0;
}

.inset + p {
    margin-top: 0;
}

svg {
    margin: 0;
    border: 0;
    overflow: hidden;
    fill: currentColor;
}

svg.icon, svg.bullet {
    display: inline-block;
    vertical-align: middle;
}

svg.icon + span, svg.bullet + span {
    display: inline-block;
    vertical-align: middle;
}

svg.bullet {
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.4em;
    margin-left: -1.4em;
    transition: transform 0.5s ease-out;
}

svg.icon {
    width: 1.2em;
    height: 1.2em;
}

#news {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: 500;
}

#news a.close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
    color: white;
    padding: 8px;
    cursor: pointer;
}

#news a.close svg {
    width: 32px;
    height: 32px;
}

#news a.open {
    position: relative;
    display: block;
    z-index: 90;
    color: white;
    padding: 8px 32px 8px 16px;
    cursor: pointer;
}

#news a.open svg {
    display: inline-block;
    width: 32px;
    height: 32px;
}

#news a.open span {
    display: inline-block;
    height: 32px;
    line-height: 36px;
}

#news #hidenews {
    position: absolute;
    z-index: 210;
    bottom: 0;
    right: 0;
    width: 180px;
    height: 56px;
    background-color: rgba(242, 96, 119, 0.9);
    opacity: 0;
    transition: opacity 0.4s linear;
}

#news #shownews {
    position: relative;
    bottom: 0;
    right: 0;
    z-index: 200;
    width: 100%;
    background-color: rgba(242, 96, 119, 0.9);
    max-height: 100%;
    overflow: auto;
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
    float: right;
}

#news #shownews #messages {
    position: relative;
    pointer-events: auto;
    width: 96vw;
    z-index: 50;
    max-width: 1280px;
    margin: 10px auto;
    padding: 0 220px;
}

#news #shownews #messages h2 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: white;
}

#news #shownews #messages .item h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    width: calc(100% - 50px);
}

#news #shownews #messages .item h3 a {
    color: white;
    opacity: 0.8;
    cursor: pointer;
}

#news #shownews #messages .item h3 a span.right {
    font-weight: normal;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.75);
}

#news #shownews #messages .item h3 a:hover {
    color: white;
    text-shadow: 0 0 3px white;
    opacity: 1;
}

#news #shownews #messages .item h3 svg.bullet {
    transform: rotate(-90deg);
}

#news #shownews #messages .item p {
    color: white;
    margin: 0;
    max-height: 1px;
    overflow: hidden;
    font-size: 1.1rem;
    transition: max-height 0.5s ease-out;
}

#news #shownews #messages .item.open h3 a {
    opacity: 1;
}

#news #shownews #messages .item.open h3 svg.bullet {
    transform: rotate(90deg);
}

#news #shownews #messages .item.open p {
    opacity: 1;
    max-height: 300px;
}

#news.hidden #hidenews {
    opacity: 1;
}

#news.hidden #shownews {
    position: absolute;
    opacity: 0;
}

#news.hidden #shownews a.close {
    display: none;
}

#mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
}

#mobile-nav a.nav {
    position: relative;
    display: block;
    top: 20px;
    right: 10px;
    width: 64px;
    height: 64px;
    cursor: pointer;
    padding: 20px;
    box-sizing: border-box;
}
#mobile-nav a.nav span, #mobile-nav a.nav span:before, #mobile-nav a.nav span:after {
    cursor: pointer;
    border-radius: 2px;
    height: 4px;
    width: 32px;
    background: white;
    box-shadow: 0 0 6px #4d4e56;
    position: absolute;
    display: block;
    content: "";
    transition: all 500ms ease-out;
}

#mobile-nav a.nav span:before {
    top: -10px;
}

#mobile-nav a.nav span:after {
    bottom: -10px;
}

#mobile-nav a.nav.showing span {
    background-color: transparent;
    box-shadow: none;
}
#mobile-nav a.nav.showing span:before {
    transform: rotate(45deg);
    top: 0;
    box-shadow: none;
    background-color: #4d4e56;
}

#mobile-nav a.nav.showing span:after {
    transform: rotate(-45deg);
    top: 0;
    box-shadow: none;
    background-color: #4d4e56;
}

@media (max-width: 500px) {
    #news #shownews #messages .item h3 svg.bullet {
        margin-left: 5px;
        margin-right: 0;
    }

    #news #shownews #messages h2 {
        margin-left: 25px;
    }

    #title h1.page {
        left: 20px;
        font-size: 2em;
    }

    #container #masthead {
        height: 60vh;
    }

    #page #nav {
        margin: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background-color: var(--color-nav-bg);
        padding: 40px;
        transition: opacity 0.25s ease-out, box-shadow 0.25s ease-out;
    }

    #page #nav h2 {
        display: block;
        padding: 0 20px;
        font-size: 1.2rem;
        font-weight: normal;
        margin: 1em 0;
    }

    #page #nav h2 a {
        color: var(--color-ink);
        text-decoration: none;
    }

    #page #nav h2 a:hover {
        color: var(--color-hover);
    }

    #page #nav.showing {
        opacity: 1;
        pointer-events: auto;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }

    #container #content {
        margin: 20px;
    }

    .inset {
        float: none;
        width: auto;
        margin: 0 40px 20px 0px;
    }

    #news #shownews #messages {
        margin: 20px 10px 20px 40px;
        padding: 0;
        width: auto;
        overflow-y: scroll;
    }

    #news #shownews #messages .item.open p {
        overflow-y: scroll;
        margin-left: 25px;
    }

    #container #masthead.minimal #title h1.page {
        left: 20px;
    }

    #mobile-nav {
        display: block;
    }
}



@media (min-width: 500px) and (max-width: 1024px) {
    #title h1.page {
        left: 160px;
        font-size: 2em;
    }

    #container #content {
        margin: 40px 80px 160px 160px;
    }

    .inset {
        margin: 0 -40px 20px 40px;
    }

    #nav {
        left: 0;
    }

    #nav ul {
        padding: 0;
    }
}


@media (max-height: 500px) and (orientation: landscape) {
    #container #masthead {
        height: 80vh;
    }
}

@media (min-width: 500px) {
    body {
        font-size: 125%;
    }
}

#footer {
    position: relative;
    margin-top: 0;
    padding-bottom: 0px;
    width: 100%;
    overflow: visible;
    background-color: var(--color-footer-bg);
    background-image: url("img/profile.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
}

#footer footer {
    position: relative;
    width: 96%;
    max-width: 70rem;
    margin: 0 auto;
    font-size: 0.95rem;
    overflow: visible;
    height: 20rem;
}

#footer footer .foot-logo {
    position: absolute;
    top: 146px;
    right: 4rem;
    width: 240px;
    height: 100px;
    background-image: url("img/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

#footer footer .footercontent {
    overflow: hidden;
    padding-left: 14rem;
}

#footer footer h2 {
    font-size: 1.75em;
    font-weight: normal;
    margin-bottom: 0;
    margin-top: 80px;
    line-height: 1.2;
}

#footer footer h2 a {
    color: var(--color-ink);
    text-decoration: none;
}

#footer footer h2 a:hover {
    color: var(--color-hover);
}

#footer ul#menu-footer {
    display: flex;
    font-weight: 300;
    font-style: normal;
    margin: 30px 10px 0 0;
    padding: 0;
    width: 60%;
}

#footer footer nav > ul li {
    display: block;
    color: var(--color-ink);
    list-style: none;
    width: 60%;
    max-width: 800px;
}

#footer footer nav > ul li:first-child {
    font-weight: bold;
}

#footer footer nav > ul li:nth-child(5) {
    clear: left;
}

#footer footer nav > ul li a {
    display: block;
    padding: 3px 3px 3px 3px;
    font-weight: normal;
    color: var(--color-mid);
    text-decoration: none;
}

#footer footer nav > ul li a:hover {
    color: var(--color-hover);
}

#footer footer nav > ul li ul {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    #footer {
        width: 100%;
    }

    #footer footer {
        margin: 50px 24px 0 80px;
        padding-left: 0;
        width: 100%;
    }

    #footer footer nav > ul {
        margin: 0 24px 0 0;
        padding: 0;
    }

    #footer footer nav > ul li {
        padding-right: 5px;
    }

    #footer footer #search {
        top: -116px;
        right: 200px;
    }

    #footer footer .foot-logo {
        display: none;
    }

    .mobile {
        display: inline-block;
    }

    .nomobile {
        display: block;
    }

    #footer footer .footercontent {
        padding: 30px 20px;
        margin: 0;
    }
}

@media (max-width: 520px) {
    #footer footer {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    #footer footer h2 {
        font-size: 1.2rem;
        margin-top: 2em;
        margin-bottom: 0.6em;
    }

    #footer footer nav {
        display: inline-block;
    }

    #footer footer nav > ul li {
        padding-right: 5px;
    }

    #footer footer #search {
        width: calc(100% - 124px);
        padding-left: 0;
        top: -30px;
        left: 10px;
        right: auto;
    }

    #footer footer #search form.search input[type="text"] {
        width: calc(100% - 40px);
    }

    #footer footer #colophon ul li {
        float: left;
        display: inline-block;
        margin: 0.4em 0;
        font-size: 0.8rem;
        font-weight: lighter;
    }
}
