/* Quick Answers - A Free Design by Bryant Smith (bryantsmith.com)
   A compact FAQ page: a slim list of questions on the left, bold
   questions and pale-blue answer blocks on the right.
   Look for the section headings below to find what you want to change. */


/* ---- BODY: the pale blue desk the page sits on ---- */

body {
    background: #e7eff9;
    color: #3d4b5c;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 40px 16px;
}

* {
    margin: 0;
    padding: 0;
}


/* ---- PAGE: the white sheet in the middle ---- */

#page {
    background: #ffffff;
    border-top: 5px solid #2f6db5;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(22, 50, 79, 0.06), 0 16px 40px rgba(22, 50, 79, 0.10);
    margin: 0 auto;
    max-width: 940px;
    padding: 56px 56px 40px 56px;
}


/* ---- MASTHEAD: the title, tagline and menu ---- */

#masthead {
    border-bottom: 1px solid #dbe7f6;
    margin-bottom: 40px;
    padding-bottom: 24px;
}

#masthead h1 {
    color: #16324f;
    font-size: 42px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

#masthead .tagline {
    color: #7286a0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: 12px;
    text-transform: uppercase;
}

#menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 26px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #5a6d86;
    margin-right: 22px;
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom: 2px solid #2f6db5;
    color: #2f6db5;
}


/* ---- LAYOUT: the two columns, index beside answers ---- */

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


/* ---- INDEX: the slim left list of questions ---- */

#index {
    background: #f2f7fd;
    border: 1px solid #dbe7f6;
    border-radius: 10px;
    flex: 0 0 210px;
    padding: 22px 20px;
    position: sticky;
    top: 24px;
}

#index h2 {
    color: #7286a0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.index-list {
    list-style: none;
}

.index-list li {
    border-top: 1px solid #e3edfa;
    counter-increment: faq;
}

.index-list li:first-child {
    border-top: none;
}

.index-list a {
    color: #3d5673;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 11px 4px 11px 30px;
    position: relative;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.index-list a::before {
    color: #8aa6c8;
    content: counter(faq);
    font-size: 11px;
    left: 4px;
    position: absolute;
    top: 11px;
}

.index-list a:hover,
.index-list a:focus {
    color: #2f6db5;
}

.index-list a:hover::before,
.index-list a:focus::before {
    color: #2f6db5;
}


/* ---- ANSWERS: the wider right column of Q & A ---- */

#answers {
    flex: 1 1 auto;
    min-width: 0;
}

.lead {
    color: #55677e;
    font-size: 19px;
    line-height: 1.65;
    margin-bottom: 34px;
}


/* ---- QUESTION: the bold heading above each answer ---- */

.qa {
    margin-bottom: 30px;
}

.question {
    color: #16324f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.question::before {
    background: #2f6db5;
    border-radius: 2px;
    content: "";
    height: 14px;
    left: 0;
    position: absolute;
    top: 5px;
    width: 6px;
}


/* ---- ANSWER: the calm pale-blue block of text ---- */

.answer {
    background: #eef4fc;
    border: 1px solid #dbe7f6;
    border-left: 3px solid #5a8fc9;
    border-radius: 0 8px 8px 0;
    padding: 16px 22px 18px 22px;
}

.answer p {
    margin: 0;
}

.answer code {
    background: #ffffff;
    border: 1px solid #dbe7f6;
    border-radius: 4px;
    color: #2f6db5;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    padding: 1px 6px;
}

.answer strong {
    color: #16324f;
}


/* ---- HOW TO USE: a short closing note ---- */

#how {
    border-top: 1px solid #dbe7f6;
    margin-top: 40px;
    padding-top: 28px;
}

#how h2 {
    color: #16324f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

#how p {
    color: #55677e;
}


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

#footer {
    border-top: 1px solid #dbe7f6;
    color: #93a4bb;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 48px;
    padding-top: 22px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #7286a0;
    text-decoration: none;
}

#footer a:hover {
    color: #2f6db5;
}


/* ---- SMALL SCREENS: stack the two columns and tighten spacing ---- */

@media (max-width: 640px) {
    body {
        padding: 20px 10px;
    }

    #page {
        padding: 36px 22px 28px 22px;
    }

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

    #masthead .tagline {
        font-size: 10px;
        letter-spacing: 2px;
    }

    #menu a,
    #menu a:visited {
        display: inline-block;
        margin-bottom: 8px;
    }

    #layout {
        display: block;
    }

    #index {
        margin-bottom: 32px;
        position: static;
    }

    .lead {
        font-size: 17px;
    }

    .question {
        font-size: 15.5px;
    }

    .answer {
        padding: 14px 17px 16px 17px;
    }
}


/* ---- PRINT: plain paper, no shadows or colour washes ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #page {
        border-top: none;
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }

    #index,
    #menu {
        display: none;
    }

    .answer {
        background: #ffffff;
        border: 1px solid #cccccc;
        border-left: 3px solid #999999;
    }
}
