/* OffLearn — the one stylesheet.

   A plain project page: a white page about 800px wide on a grey background,
   the name in Georgia, a grey navigation strip, Arial text, underlined
   browser-blue links and thin grey rules. Nothing loaded from elsewhere. */

body {
    margin: 0;
    padding: 18px 10px;
    background: #e6e6e6;
    color: #111;
    font: 14px/1.5 Arial, Helvetica, sans-serif;
}

#page { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid #c4c4c4; }

a { color: #00c; }
a:visited { color: #551a8b; }
a:hover { color: #c00; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 4px 8px; }

#masthead { padding: 14px 20px 10px; margin: 0; font-size: 1em; font-weight: normal; line-height: normal; border: 0; }
#masthead img { margin-right: 7px; vertical-align: -4px; border: 0; }
#masthead a { color: #111; font: bold 30px/1 Georgia, "Times New Roman", serif; text-decoration: none; letter-spacing: -.5px; }

#nav { padding: 5px 20px; background: #f0f0f0; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; color: #999; font-size: 13px; }
#nav a { margin: 0 3px; }
#nav a:first-child { margin-left: 0; }
#nav a[aria-current="page"] { color: #111; font-weight: bold; text-decoration: none; }

#content { padding: 16px 20px 22px; }
#content:after { content: ""; display: table; clear: both; }

h1 { margin: 0 0 10px; font-size: 20px; }
h2 { margin: 20px 0 8px; padding-bottom: 2px; border-bottom: 1px solid #ccc; font-size: 16px; }
p, ul, ol { margin: 0 0 10px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 3px; }

table { border-collapse: collapse; margin: 0 0 10px; }
table.grid th, table.grid td { padding: 4px 8px; border: 1px solid #bbb; text-align: left; vertical-align: top; }
table.grid thead th { background: #eee; }
table.grid tbody th { background: #f7f7f7; font-weight: normal; white-space: nowrap; }
table.grid td.n { white-space: nowrap; }

dl.news { margin: 0 0 10px; }
dl.news dt { float: left; clear: left; width: 92px; color: #555; }
dl.news dd { margin: 0 0 5px 92px; }

pre, code { font-family: "Courier New", Courier, monospace; }
pre { margin: 4px 0 10px; padding: 6px 8px; overflow-x: auto; background: #f5f5f5; border: 1px solid #ccc; white-space: pre-wrap; word-break: break-all; font-size: 13px; }
code { font-size: 13px; }

.shots { margin: 6px 0 12px; }
.shots a { display: inline-block; margin: 0 10px 6px 0; vertical-align: top; color: #555; font-size: 12px; text-align: center; }
.shots img { display: block; margin-bottom: 3px; border: 1px solid #999; }

.note { color: #555; font-size: 13px; }

#footer { padding: 8px 20px; border-top: 1px solid #ccc; color: #555; font-size: 12px; }

@media (max-width: 600px) {
    body { padding: 0; }
    #page { border: 0; }
    #masthead { padding: 12px 12px 8px; }
    #nav, #content, #footer { padding-left: 12px; padding-right: 12px; }
    dl.news dt { float: none; width: auto; }
    dl.news dd { margin-left: 0; }
    table.grid tbody th { white-space: normal; }
    #nav { font-size: 12px; }
    #nav a { margin: 0 1px; }
    /* Results: one block per test, date under the name. */
    table.results, table.results tbody, table.results tr, table.results td { display: block; }
    table.results thead { display: none; }
    table.results tr { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid #ccc; }
    table.results td.n { order: 1; }
    table.results td:nth-child(2) { order: 2; font-weight: bold; }
    table.results td { padding: 0; border: 0; }
    table.results td.n { color: #555; font-size: 13px; }
}

/* Contact form */
form.contact select, form.contact textarea, form.contact input[type=email] { font: inherit; font-size: 14px; max-width: 100%; box-sizing: border-box; }
form.contact textarea, form.contact input[type=email] { width: 100%; }
form.contact button { font: inherit; padding: 3px 12px; }
form.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
