/* Study Sheet - A Free Design by Bryant Smith (bryantsmith.com)
   A printable revision page: a sticky topic rail on the left and a pale-blue
   sheet of notes on the right. Look for the section headings below to find
   the part you want to change. */

/* ---- RESET & BASE ---- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #e9f1f9;
    background-image: linear-gradient(180deg, #eef5fc 0%, #dfebf7 100%);
    color: #2b333b;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 48px 16px 32px 16px;
}


/* ---- PAGE SHELL: the two-part layout ---- */

#page {
    margin: 0 auto;
    max-width: 940px;
}

#layout {
    align-items: flex-start;
    display: flex;
    gap: 32px;
}


/* ---- RAIL: the sticky topic list on the left ---- */

#rail {
    background: #dbe9f6;
    border-left: 4px solid #3f7cb6;
    border-radius: 4px;
    flex: 0 0 210px;
    padding: 24px 20px;
    position: sticky;
    top: 24px;
}

#rail .eyebrow {
    color: #3f7cb6;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#rail .course {
    border-bottom: 2px solid #14324f;
    color: #14324f;
    font-size: 25px;
    font-weight: bold;
    line-height: 1.15;
    margin-top: 8px;
    padding-bottom: 14px;
}

#menu {
    margin-top: 16px;
}

#menu a,
#menu a:visited {
    border-left: 3px solid transparent;
    color: #33546f;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 8px 0 8px 10px;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease,
                padding-left 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-left-color: #3f7cb6;
    color: #14324f;
    padding-left: 14px;
}

.rail-note {
    border-top: 1px solid #b8d2ec;
    color: #4b6076;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 18px;
    padding-top: 16px;
}


/* ---- CONTENT: the white sheet of notes ---- */

#content {
    background: #ffffff;
    border: 1px solid #d3e0ee;
    border-top: 5px solid #3f7cb6;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(20, 50, 79, 0.04),
                0 18px 40px rgba(20, 50, 79, 0.09);
    flex: 1 1 auto;
    min-width: 0;
    padding: 44px 48px 48px 48px;
}

#masthead {
    border-bottom: 3px double #cfdded;
    padding-bottom: 22px;
}

#masthead .eyebrow {
    color: #3f7cb6;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

#masthead h1 {
    color: #14324f;
    font-size: 46px;
    font-weight: bold;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin-top: 10px;
}

#masthead .tagline {
    color: #5a6774;
    font-style: italic;
    margin-top: 8px;
}

.lead {
    color: #3b4753;
    font-size: 19px;
    line-height: 1.7;
    margin-top: 28px;
}

.lead::first-letter {
    color: #3f7cb6;
    float: left;
    font-size: 3.2em;
    line-height: 0.8;
    padding: 6px 10px 0 0;
}


/* ---- TOPIC: a numbered block of notes ---- */

#topics {
    counter-reset: topic;
}

.topic {
    border-bottom: 1px solid #e6eef7;
    margin-top: 40px;
    padding-bottom: 24px;
}

.topic:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.topic h2 {
    color: #14324f;
    font-size: 24px;
    line-height: 1.3;
}

.topic h2::before {
    background: #dbe9f6;
    border-radius: 4px;
    color: #2f6ba3;
    content: counter(topic, decimal-leading-zero);
    counter-increment: topic;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-right: 12px;
    padding: 3px 8px 2px 8px;
    vertical-align: 3px;
}

.topic p {
    color: #3b4753;
    margin-top: 12px;
}


/* ---- TERMS: the definition list of key words ---- */

.terms {
    background: #f4f8fc;
    border-left: 3px solid #9dc2e3;
    border-radius: 0 4px 4px 0;
    margin-top: 18px;
    padding: 6px 20px;
}

.terms dt {
    color: #14324f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.4px;
    margin-top: 14px;
    text-transform: uppercase;
}

.terms dd {
    border-bottom: 1px solid #e0ebf5;
    color: #46535f;
    margin-left: 0;
    padding: 4px 0 14px 0;
}

.terms dt:last-of-type + dd,
.terms dd:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}


/* ---- NOTES: a short bulleted list ---- */

.notes {
    list-style: none;
    margin-top: 16px;
}

.notes li {
    color: #3b4753;
    padding: 6px 0 6px 26px;
    position: relative;
}

.notes li::before {
    background: #3f7cb6;
    border-radius: 50%;
    content: "";
    height: 7px;
    left: 4px;
    position: absolute;
    top: 15px;
    width: 7px;
}


/* ---- RECAP: the tinted callout box ---- */

#recap {
    background: #dbe9f6;
    border-radius: 6px;
    margin-top: 40px;
    padding: 26px 30px;
}

#recap h2 {
    color: #14324f;
    font-size: 18px;
    letter-spacing: 0.5px;
}

#recap h2::before {
    background: #14324f;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 9px;
    margin-right: 10px;
    vertical-align: 2px;
    width: 9px;
}

#recap p {
    color: #2f4a63;
    margin-top: 8px;
}


/* ---- CHECKLIST: the review tick-boxes ---- */

#checklist {
    margin-top: 40px;
}

#checklist h2,
.howto h2 {
    border-bottom: 1px solid #d3e0ee;
    color: #14324f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    padding-bottom: 10px;
    text-transform: uppercase;
}

#checklist > p,
.howto p {
    color: #46535f;
    margin-top: 14px;
}

.checklist {
    list-style: none;
    margin-top: 18px;
}

.checklist li {
    border-bottom: 1px dashed #d3e0ee;
    color: #3b4753;
    padding: 12px 0 12px 38px;
    position: relative;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li::before {
    background: #f4f8fc;
    border: 2px solid #9dc2e3;
    border-radius: 3px;
    content: "";
    height: 18px;
    left: 0;
    position: absolute;
    top: 13px;
    transition: background 0.15s ease, border-color 0.15s ease;
    width: 18px;
}

.checklist li:hover::before {
    background: #dbe9f6;
    border-color: #3f7cb6;
}

.checklist li::after {
    border-bottom: 2px solid #3f7cb6;
    border-right: 2px solid #3f7cb6;
    content: "";
    height: 10px;
    left: 7px;
    opacity: 0;
    position: absolute;
    top: 15px;
    transform: rotate(45deg);
    transition: opacity 0.15s ease;
    width: 5px;
}

.checklist li:hover::after {
    opacity: 1;
}


/* ---- HOWTO: the help box near the foot of the sheet ---- */

.howto {
    background: #f4f8fc;
    border: 1px solid #d3e0ee;
    border-radius: 6px;
    margin-top: 40px;
    padding: 24px 28px 28px 28px;
}

.howto code {
    background: #e3eef9;
    border-radius: 3px;
    color: #1f4d7a;
    font-size: 14px;
    padding: 1px 5px;
}

.howto strong {
    color: #14324f;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    color: #5a6774;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-left: 242px; /* keep the credit under the sheet, not the rail */
    padding-top: 28px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #3f7cb6;
    text-decoration: none;
}

#footer a:hover {
    color: #14324f;
    text-decoration: underline;
}


/* ---- LINKS INSIDE THE NOTES ---- */

#content a,
#content a:visited {
    border-bottom: 1px solid #b8d2ec;
    color: #2f6ba3;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

#content a:hover {
    border-bottom-color: #14324f;
    color: #14324f;
}


/* ---- SMALL SCREENS: stack the rail above the sheet ---- */

@media (max-width: 640px) {
    body {
        font-size: 16px;
        padding: 20px 12px 24px 12px;
    }

    #layout {
        display: block;
    }

    #rail {
        border-left-width: 4px;
        margin-bottom: 20px;
        position: static;
    }

    #menu a {
        display: inline-block;
        margin-right: 6px;
    }

    #content {
        padding: 28px 22px 32px 22px;
    }

    #footer {
        margin-left: 0;
    }

    #masthead h1 {
        font-size: 34px;
    }

    .lead {
        font-size: 17px;
    }
}


/* ---- PRINT: a clean black-on-white handout ---- */

@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
        padding: 0;
    }

    #layout {
        display: block;
    }

    #rail,
    #menu,
    #howto {
        display: none;
    }

    #content {
        border: none;
        border-top: none;
        box-shadow: none;
        padding: 0;
    }

    #footer {
        margin-left: 0;
    }


    #masthead h1 {
        color: #000000;
    }

    .lead::first-letter {
        color: #000000;
    }

    .topic h2::before {
        background: none;
        color: #000000;
        padding: 0;
    }

    .terms,
    #recap,
    .howto {
        background: #ffffff;
    }

    #footer a,
    #footer a:visited {
        color: #000000;
    }
}
