body {
    font-size: 16px;
    line-height: 1.4;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f6f6f6;
    color: #000;
}

a {
    color: #324f9d;
    text-decoration: none;
}

.eim-edit-link {
    color: #e6e6e6;
}

a:hover {
    text-decoration: underline;
}

a.nohover:hover {
    text-decoration: none;
}

h1, .h1 {
    font-size: 200%;
    font-weight: 300;
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    margin: 0 0 2rem 0;
    line-height: 1.15;
}

h2, .h2 {
from django.urls import reverse
from django.db import models
from django.db.models.signals import post_save
from django.utils.functional import cached_property
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 150%;
    font-weight: 300;
    margin: 2rem 0 1rem 0;
    line-height: 1.15;
}

h3 {
    font-size: 100%;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    line-height: 1.25;
}

p {
    margin: 0 0 1rem 0;
}

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0,0,0,.1);
    height: 0;
}

abbr {
    text-decoration: none;
    border-bottom: 1px dotted #666;
}
.dxfiles-dld {
    background-image: url('file.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    padding-left: 16px;
}

.lead {
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 150%;
    color: #444;
    line-height: 1.4;
}

.eim-container {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    width: 100%;
    padding: 0 1rem 2rem 1rem;
    background-color: #fff;
    color: #000;
}

.eim-header {
    padding-top: 1rem;
}

.eim-nav-translation {
    text-align: right;
}

.eim-logo {
    width: 180px;
    height: 120px;
}

.eim-logo-home {
    width: 240px;
    height: 160px;
}

.eim-nav-translation {
    margin-bottom: 1rem;
}

.eim-nav-btn {
    display: block;
}

.eim-nav {
    background-image: url('hatch.gif');
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
}

.eim-menu-closed .eim-menu-btn-close-row,
.eim-menu-closed .eim-nav-items {
    display: none;
}

.eim-menu-opened #js-eim-menu-btn-open {
    display: none;
}

#js-eim-menu-btn-open {
    display: block;
    text-align: center;
    text-decoration: none;
}

#js-eim-menu-btn-open:hover {
    text-decoration: none;
}

.eim-menu-btn-open {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.eim-menu-btn-open img {
    padding-right: 0.5rem;
}

.eim-menu-btn-close-row {
    text-align: right;
}

#js-eim-menu-close {
    display: none;
    text-align: right;
}

.eim-nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eim-nav-items li {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.eim-footer {
    background-image: url('hatch.gif');
    padding: 1rem;
    margin: 2rem 0;
    display: flex;
}


.eim-footer__logo {
    padding-right: 1.5rem;
    border-right: 1px solid #000;
}

.eim-footer__info {
    padding-left: 1.5rem;
}

.eim-pages a,
.eim-pages b {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ccc;
    display: inline-block;
}

.eim-pages a:hover {
    text-decoration: none;
}

.eim-missing-cover {
    height: 5rem;
    background-color: #f6f6f6;
    background-image: url('logo-eim-white.svg');
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.my-1 { margin: 0.25rem 0; }
.my-2 { margin: 0.5rem 0; }
.my-3 { margin: 1rem 0; }

.mb-3 { margin-bottom: 1rem }

.text-center { text-align: center; }
.text-right { text-align: right; }


@media (min-width: 576px) {
  .eim-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {

    body {
    }

    h1, .h1 {
        font-size: 300%;
    }

    h2, .h2 {
        font-size: 200%;
    }

    .eim-container {
        margin-top: 2rem;
        margin-bottom: 2rem;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }

    .eim-logo {
        margin-bottom: 1rem;
        width: 240px;
        height: 160px;
    }

    .eim-container {
        max-width: 720px;
    }

    .eim-menu-closed #js-eim-menu-btn-open,
    .eim-menu-closed .eim-menu-btn-close-row,
    .eim-menu-opened #js-eim-menu-btn-open,
    .eim-menu-opened .eim-menu-btn-close-row {
        display: none;
    }

    .eim-menu-closed .eim-nav-items,
    .eim-menu-opened .eim-nav-items {
        display: block;
    }

    .eim-nav-items li {
        display: inline-block;
    }

    .eim-nav-items li:before {
        content: "|";
        color: #ccc;
        padding: 0 0.25rem;
    }

    .eim-nav-items li:first-child:before {
        content: "";
        display: none;
    }

}

@media (min-width: 992px) {
    .eim-container {
        max-width: 960px;
        padding-right: 4rem;
        padding-left: 4rem;
    }
}
