/*
 * kiwisoft.css -- the KiwiSoft site, set in the manner of Acorn's printed
 * technical manuals: a serif text face, bold sans-serif headings that hang
 * in a wide left margin, fixed-width for anything the computer reads or
 * prints, tables ruled horizontally only, and no decoration.
 *
 * Written for NetSurf.  Everything here is CSS 2.1: no custom properties,
 * no calc(), no flexible boxes, no web fonts.  The one media query at the foot
 * is an optional extra for narrow windows.  Lengths
 * are in em so that the page follows the reader's own font size.
 *
 * Acorn's faces were Trinity (a Times), Homerton (a Helvetica) and Corpus
 * (a Courier).  NetSurf on RISC OS maps the generic families at the end of
 * each list to exactly those.
 */

html {
    background: #ffffff;
    color: #1a1a1a;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #1a1a1a;
    font-family: Trinity, "Times New Roman", Times, "Liberation Serif", serif;
    line-height: 1.5;
}

/* The page: an 11em margin column for the hanging headings and a text
   column of up to 44em beside it. */
#page {
    max-width: 55em;
    margin: 0 auto;
    padding: 1.5em 1.5em 4em 1.5em;
}

/* Running head: the logo on the left, the chapter list on the right. */
#head {
    margin: 0 0 2.5em 0;
}
#head img {
    float: left;
    border: 0;
}
#nav {
    float: right;
    margin: 0.9em 0 0 0;
    padding: 0;
    list-style: none;
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-size: 0.875em;
    line-height: 1.5;
}
#nav li {
    display: inline;
    margin: 0 0 0 1.8em;
    padding: 0;
}
.clear {
    clear: both;
    height: 0;
    font-size: 0;
    line-height: 0;
}

/* Headings: Homerton bold.  The chapter title runs the full width with a
   rule beneath it; section headings hang in the margin column. */
h1, h2, h3 {
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-weight: bold;
    line-height: 1.2;
}
h1 {
    clear: both;
    margin: 0 0 1.2em 0;
    padding: 0 0 0.3em 0;
    border-bottom: 2px solid #1a1a1a;
    font-size: 1.75em;
}
.sec {
    clear: both;
    margin: 0;
    padding: 0 0 1.4em 0;
}
.sec h2 {
    float: left;
    width: 8.4em;
    margin: 0.1em 0 1em 0;
    padding: 0;
    font-size: 1.125em;
}
.text {
    margin: 0 0 0 11em;
}
h3 {
    margin: 1.4em 0 0.4em 0;
    font-size: 1em;
}
h3.first {
    margin-top: 0;
}

p {
    margin: 0 0 0.8em 0;
}

a {
    color: #1a1a1a;
    text-decoration: underline;
}

/* Fixed-width: Corpus, slightly smaller than the text, no box. */
code, pre, kbd, samp, var {
    font-family: Corpus, "Courier New", Courier, "Liberation Mono", monospace;
    font-size: 0.92em;
}
kbd {
    font-weight: bold;
}
var {
    font-style: italic;
}
pre {
    margin: 0.9em 0 1.1em 0;
    padding: 0.2em 0 0.2em 1.2em;
    border-left: 1px solid #8a8a8a;
    line-height: 1.35;
}
pre kbd, pre var, pre samp {
    font-size: 1em;
}

/* Lists: round bullets, numbered steps, modest indent. */
ul, ol {
    margin: 0 0 0.9em 1.6em;
    padding: 0;
}
li {
    margin: 0 0 0.25em 0;
}
ul {
    list-style: disc;
}

/* Tables: a rule above the heading row and below it, a faint rule under
   each row and a full rule at the foot.  No vertical rules, no shading. */
table {
    width: 100%;
    margin: 0.2em 0 1.3em 0;
    border-collapse: collapse;
    font-size: 0.95em;
    line-height: 1.35;
}
th {
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-weight: bold;
    text-align: left;
    vertical-align: top;
}
thead th {
    padding: 0.35em 0.8em 0.35em 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}
tbody th, td {
    padding: 0.3em 0.8em 0.3em 0;
    border-bottom: 1px solid #8a8a8a;
    vertical-align: top;
}
tr.first th, tr.first td {
    border-top: 1px solid #1a1a1a;
}
tr.last th, tr.last td {
    border-bottom: 1px solid #1a1a1a;
}
table.facts th {
    width: 9em;
}
th.item {
    width: 32%;
}
td.num, th.num {
    width: 7em;
    padding-right: 0;
    text-align: right;
    white-space: nowrap;
}
table.order th.item {
    width: auto;
}
tbody th.item {
    font-family: Trinity, "Times New Roman", Times, "Liberation Serif", serif;
    font-weight: normal;
}
tr.total th, tr.total td {
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-weight: bold;
}

/* The purchase steps under a chapter title: one ruled row. */
table.steps {
    margin: 0 0 2em 0;
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-size: 0.875em;
}
table.steps td {
    width: 33%;
    padding: 0.45em 0.8em 0.45em 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}
table.steps td.now {
    font-weight: bold;
}

/* Actions.  The one thing on a page the reader is expected to do is a
   solid block; anything secondary is an outlined one. */
a.action, input.action {
    display: inline-block;
    margin: 0.2em 1em 0.2em 0;
    padding: 0.5em 1.1em;
    background: #1a1a1a;
    color: #ffffff;
    border: 2px solid #1a1a1a;
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
}
a.second {
    background: #ffffff;
    color: #1a1a1a;
}

/* Forms. */
form {
    margin: 0;
    padding: 0;
}
label {
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-weight: bold;
}
label.plain {
    font-family: Trinity, "Times New Roman", Times, "Liberation Serif", serif;
    font-weight: normal;
}
input.writable {
    width: 22em;
    margin: 0.2em 0 0.2em 0;
    padding: 0.35em 0.4em;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-size: 1em;
}
input.tick {
    margin: 0 0.5em 0 0;
}
p.field {
    margin: 0 0 1.2em 0;
}
.hint {
    font-size: 0.875em;
}
.error {
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-weight: bold;
}
input.wrong {
    border: 3px solid #1a1a1a;
}

/* The licence key: large bold Corpus between two rules. */
p.key {
    margin: 0.2em 0 1.3em 0;
    padding: 0.5em 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    font-family: Corpus, "Courier New", Courier, "Liberation Mono", monospace;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.3;
}
p.address {
    margin: 0 0 0.8em 0;
    font-family: Corpus, "Courier New", Courier, "Liberation Mono", monospace;
    font-size: 1.25em;
    font-weight: bold;
}

/* Running foot. */
#foot {
    clear: both;
    margin: 2.5em 0 0 0;
    padding: 0.6em 0 0 0;
    border-top: 1px solid #1a1a1a;
    font-family: Homerton, Helvetica, Arial, "Liberation Sans", sans-serif;
    font-size: 0.8em;
    line-height: 1.5;
}
#foot p {
    margin: 0 0 0.3em 0;
}

/* Narrow windows and telephones: the margin column closes up and the
   section headings stack above their text.  A browser that does not
   evaluate the query simply keeps the layout above. */
@media screen and (max-width: 40em) {
    .sec h2 {
        float: none;
        width: auto;
        margin: 0 0 0.5em 0;
    }
    .text {
        margin-left: 0;
    }
    #nav {
        float: left;
        clear: left;
        margin-top: 0.6em;
    }
    #nav li {
        margin: 0 1.4em 0 0;
    }
    input.writable {
        width: 95%;
    }
}
