﻿
/* 1. Enable smooth scrolling */
html {
    scroll-behavior: smooth;
}

.section-nav img.logo{
    margin:20px 5px;
}

/* 2. Make nav sticky */
main > nav {
    position: sticky;
    top: 0;
    align-self: start;
    grid-column-start: 1;

    overflow-y: scroll;
    max-height: 100vh;
    min-width: 300px;
}

@media (max-width: 480px) {
    main > nav {

    }
}

/* 3. ScrollSpy active styles (see JS tab for activation) */
.section-nav li.active > a {
    color: #333;
    font-weight: 500;
}

/* Sidebar Navigation */
.section-nav {
    padding: 10px;
    padding-bottom: 30px;
}

.section-nav > h2 {
    margin-top: inherit;
}

.section-nav a {
    text-decoration: none;
    display: block;
    padding: .125rem 0;
    color: #ccc;
    transition: all 50ms ease-in-out; /* 💡 This small transition makes setting of the active state smooth */
}

.section-nav a:hover,
.section-nav a:focus {
    color: #666;
}




/** page layout **/
main {
    display: grid;
    margin: 0 auto;
}

div#content {
    grid-column-start: 2;
    padding-left: 1rem;
}



/** Poor man's reset **/
* {
    box-sizing: border-box;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.section-nav > ul, .section-nav > ul > li > ul {

    list-style-type: unset;

}

li {
    margin-left: 1rem;
}

h1 {
    font-weight: 300;
}

/* begin ctl custom */
a {
    color: #f60
}

html, body {
    background: #fff;
}

body {
    font-family: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif;
    font-size: 12pt;
    padding: 0.2in;
    margin: 0;
    color: #4E4E4E;
}

h1 {
    font-size: 133%;
}

h2 {
    font-size: 125%;
}

h3 {
    font-size: 107%;
}

h2, h3 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}

pre {
    font-family: Consolas, monaco, monospace;
    background: #eee;
    color: #404040;
    padding: 1em;
    max-width: 55em;
    max-height: 15em;
    overflow: auto;
}

table {
    border-spacing: 0;
    border-collapse: separate;
}

th {
    text-align: left;
}

th, td {
    padding: 0.375em 1.5em 0.375em 0;
    vertical-align: top;
}

td {
    border-top: 1.3pt solid #999;
}

th:last-child {
    padding: 0.375em 0 0.375em 0;
}

p, th, td {
    max-width: 55em;
}

ul {
    list-style-type: square;
}

.active {
    font-weight: 700;
}

    .active > a {
        color: #d50;
    }

#content > section {
    border-bottom: 4px dotted #ccc;
    padding-bottom: 2em;
}

.logo {
    display: block;
    height: 0.5in;
}


@media (max-width: 780px) {
    div#content {
        grid-column-start: 1;
        padding-left: 1rem;

    }

    .section-nav{
        top:unset;
    }
}

@media print {
    @page {
        margin: 0.5in;
    }

    body {
        font-size: 10pt;
        padding: 0;
        margin: 0;
    }

    pre {
        max-height: none;
    }

    section {
        page-break-inside: avoid;
    }
}

