main#zmp #zmphome img {
    float: right;
    margin: 0 2em 2em 2em;
}

main#zmp h2 {
    margin-top: 1em;
}

main#zmp > header {
    background-color: #6dbac1; /* Lighter than all coloured circles in SVG */
    border: 1px solid #0D3539; /* Same as dark circle in SVG */
    font-family: 'Ubuntu Condensed', Roboto, sans-serif;
    padding: 6px 10px 5px 10px;
}

main#zmp > header form {
    float: right;
}

main#zmp > header form input#q {
    width: 150px;
}

main#zmp > header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

main#zmp > header nav ul li {
    display: inline;
    padding: 2px 8px;
    border-left: 1px solid #4a4a4a;
    font-size: 1.2em;
}

main#zmp > header nav ul li:first-child {
    padding-left: 0;
    border-left: none;
}

main#zmp > header nav ul a,
main#zmp > h1 a {
    text-decoration: none;
}

main#zmp > header nav ul a:active,
main#zmp > header nav ul a:link,
main#zmp > header nav ul a:visited,
main#zmp > h1 a:active,
main#zmp > h1 a:link,
main#zmp > h1 a:visited {
    color: #000;
}

main#zmp > header nav ul a:hover,
main#zmp > h1 a:hover {
    text-decoration: underline;
}

main#zmp > header nav ul li.active {
    font-weight: bold;
    text-decoration: underline;
}

main#zmp ul.az {
    list-style-type: none;
    margin: 0;
    padding: 4px;
    background-color: #6dbac1; /* Lighter than all coloured circles in SVG */
    border: 1px solid #0D3539; /* Same as dark circle in SVG */
    font-family: 'Ubuntu Condensed', Roboto, sans-serif;
    word-break: break-all;
}

main#zmp ul.az li {
    display: inline-block;
    text-align: center;
    padding: 0 15px;
    margin: 3px 0;
    min-width: 15px;
    border-right: 1px solid #4a4a4a;
}

main#zmp ul.az li:last-child {
    border-right: none;
}

main#zmp ul.az a {
    text-decoration: none;
}

main#zmp ul.az a:active,
main#zmp ul.az a:link,
main#zmp ul.az a:visited {
    color: #000;
}

main#zmp ul.az a:hover {
    text-decoration: underline;
}

main#zmp ul.az li.active {
    font-weight: bold;
    text-decoration: underline;
}

main#zmp table {
    margin: 1em 0;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #0D3539; /* Same as dark circle in SVG */
}

main#zmp div.summary table {
    margin: 0;
}

main#zmp thead tr {
    font-weight: normal;
    background-color: #6dbac1; /* Lighter than all coloured circles in SVG */
    font-family: 'Ubuntu Condensed', Roboto, sans-serif;
}

main#zmp table[data-sortable] th:not([data-sortable="false"]) {
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    cursor: pointer;
}

main#zmp th, main#zmp td {
    padding: 3px 5px;
    border: 1px solid #0D3539; /* Same as dark circle in SVG */
}

main#zmp tbody tr:nth-child(even) {
    background-color: #F3F3F3; /* Light grey */
}

main#zmp th {
    text-align: left;
}

main#zmp td {
    vertical-align: top;
}

main#zmp div.download {
    margin: 1em;
}

main#zmp .missing {
    color: #888; /* Grey */
}

main#zmp .warning, main#zmp .highlight {
    color: #A84232; /* Red */
}

main#zmp .highlight {
    font-size: 1.4em;
}

main#zmp .small {
    font-size: 0.8em;
}

main#zmp .sequence {
    font-family: monospace;
    word-break: break-all;
}

main#zmp .sequence .highlight {
    font-size: 1em;
}

main#zmp div.margin-bottom {
    margin-bottom: 1em;
}

main#zmp .question {
    font-weight: bold;
}

main#zmp div.summary {
    display: table;
}

main#zmp div.summary > div {
    display: table-row;
}

main#zmp div.summary > div > div {
    display: table-cell;
    padding: 4px;
    vertical-align: top;
}

main#zmp div.summary > div > div:first-child {
    white-space: nowrap;
    text-align: right;
    font-weight: bold;
    padding-right: 3em;
}

main#zmp div.images figure {
    width: 200px;
    margin: 0 1em 1em 0;
    float: left;
    border: 1px solid #0D3539; /* Same as dark circle in SVG */
}

main#zmp div.images figure img {
    width: 200px;
}

main#zmp div.images figure.clear {
    clear: left;
}

main#zmp div.images figcaption {
    min-height: 3em;
    padding: 3px 6px;
    font-size: 0.9em;
    background-color: #6dbac1; /* Lighter than all coloured circles in SVG */
    border-top: 1px solid #0D3539; /* Same as dark circle in SVG */
    font-family: 'Ubuntu Condensed', Roboto, sans-serif;
    font-weight: bold;
}

main#zmp figure.process {
    margin: 2em 0;
}

main#zmp figure.process figcaption {
    font-weight: bold;
}

main#zmp figure.process img {
    margin: 1em;
}

main#zmp form.download label {
    font-weight: bold;
}

main#zmp form.download textarea {
    width: 15em;
    float: left;
    margin: 5px 5px 0 0;
}

main#zmp form.download textarea#alleles {
    height: 25em;
}

main#zmp form.download textarea#founders {
    height: 7em;
}

main#zmp form.download textarea + input {
    margin-top: 5px;
}

main#zmp form.download + p {
    clear: left;
    font-weight: bold;
    padding-top: 1em;
    margin-bottom: 0;
}

main#zmp form.download + form.download {
    clear: left;
    padding-top: 2em;
}

main#zmp form.download + p + ul {
    margin-top: 0.5em;
}

main#zmp form.download + p + ul + form.download {
    margin-top: 3em;
}

@media only screen and (max-width: 900px) {
    main#zmp #zmphome img {
    margin: 0 2em;
        float: none;
    }

    main#zmp > header form input#q {
        width: 100px;
    }

    main#zmp > header nav ul li {
        display: block;
        padding: 2px;
        border-left: none;
    }

    main#zmp > header nav ul li:first-child {
        padding-left: 2px;
    }

    main#zmp div.summary {
        display: block;
    }

    main#zmp div.summary > div {
        display: block;
        margin-bottom: 14px;
    }

    main#zmp div.summary > div > div {
        display: block;
        padding: 1px;
    }

    main#zmp div.summary > div > div:first-child {
        white-space: normal;
        text-align: left;
        padding-right: 1px;
    }

    main#zmp table.transformable,
    main#zmp table.transformable thead,
    main#zmp table.transformable tbody,
    main#zmp table.transformable tr,
    main#zmp table.transformable th,
    main#zmp table.transformable td {
        display: block;
        border: none;
    }

    main#zmp table.transformable thead tr {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
        white-space: nowrap;
    }

    main#zmp table.transformable tbody tr {
        margin: 1em 0;
        width: 100%;
        border-collapse: collapse;
        display: table;
        background-color: unset;
    }

    main#zmp table.transformable tbody tr td {
        display: table-row;
        border: 1px solid #0D3539; /* Same as dark circle in SVG */
    }

    main#zmp table.transformable tbody tr td:before {
        content: attr(data-title);
        display: table-cell;
        width: 35%;
        padding: 3px 5px;
        background-color: #6dbac1; /* Lighter than all coloured circles in SVG */
        font-family: 'Ubuntu Condensed', Roboto, sans-serif;
        border: 1px solid #0D3539; /* Same as dark circle in SVG */
    }

    main#zmp table.transformable tbody tr td span.data {
        display: table-cell;
        padding: 3px 5px;
    }
}
