/**
 * Common stylesheet for bolagsverket.se.
 */


/*
 * Font face declarations
 * ----------------------
 */

@font-face {
    font-family: OpenSans;
    src: local("Open Sans"), url("/files/OpenSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: OpenSans;
    src: local("Open Sans Bold"), url("/files/OpenSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}


/* Basic styling of HTML elements */

html {
    font: 100%/1.5 OpenSans, Helvetica, Arial, sans-serif
}

body {
    margin: 0.5rem;
    padding: 0.5rem;
}

p {
    max-width: 40rem;
}

address,
blockquote,
dl,
form,
ol,
p,
pre,
table,
ul {
    margin: 0 0 1.5em
}

h1,
h2,
h3 {
    line-height: 1.1
}

h4,
h5,
h6 {
    line-height: 1.0
}

h1 {
    margin: 0 0 0.5em;
    font-size: 230%;
    font-weight: bold;
    letter-spacing: -0.03em
}

h2,
[aria-level="2"] {
    margin: 2em 0 0.5em;
    font-size: 150%;
    font-weight: bold;
    letter-spacing: -0.03em
}

h2:first-child {
    margin-top: 0
}

h3,
[aria-level="3"] {
    margin: 1em 0 0.5em;
    font-size: 110%;
    font-weight: bold
}

h4 {
    margin: 1.3em 0 0.5em;
    font-size: 100%;
    font-weight: normal
}

h5 {
    margin: 1.3em 0 0.5em;
    font-size: 80%;
    font-weight: normal
}

h6 {
    margin: 1.3em 0 0.5em;
    font-size: 80%;
    font-style: italic;
    font-weight: normal
}

ol {
    padding-left: 1.5em
}

ol>li {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
    margin-left: 0.75em;
    list-style-type: decimal
}

ol ol,
ol ul {
    margin-bottom: 0
}

ol ol>li {
    list-style-type: lower-alpha
}

ol ol ol>li {
    list-style-type: lower-roman
}

ul {
    padding-left: 1.5em
}

ul>li {
    margin-bottom: 0.75em;
    margin-left: 0.75em;
    list-style-type: disc
}

ul ol,
ul ul {
    margin-bottom: 0
}

ul ul>li {
    list-style-type: circle
}


/*
 * Screen-only styling
 * -------------------
 */

@media screen {
    /* Basic styling of HTML elements */
    html {
        background-color: #fff;
        color: #4d4f53
    }
    body {
        min-width: 19em
    }
    a:link {
        color: #0065bd
    }
    h2 a:link {
        color: inherit
    }
    a:visited {
        color: #800080
    }
    a:focus,
    button:focus,
    input[type=submit]:focus,
    summary:focus,
    [tabindex]:focus {
        outline: 2px solid #0065bd;
        outline-offset: 0.25em
    }
    a:focus:hover,
    button:focus:hover,
    input[type=submit]:focus:hover,
    summary:focus:hover,
    [tabindex]:focus:hover {
        outline: none
    }
    a[href*="//bolagsverket.se"],
    a[href*="//www.bolagsverket.se"] {
        padding-right: 0;
        background-image: none
    }
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #002857
    }
    img,
    video {
        max-width: 100%;
        height: auto
    }
    body>footer {
        margin: 1.5em 0 0;
        padding: 2em 1em 1em;
        background-color: #002857;
        color: #fff
    }
    body>footer>*:first-child,
    body>footer>*:first-child>*:first-child {
        margin-top: 0
    }
    body>footer>*:last-child,
    body>footer>*:last-child>*:last-child {
        margin-bottom: 0
    }
    body>footer a:link,
    body>footer a:visited,
    body>footer h2,
    body>footer h3 {
        color: inherit
    }
    body>footer a:focus {
        outline-color: #fecb00
    }
    body>footer h2,
    body>footer a[href^="tel:"] {
        font-size: 130%
    }
    body>footer a[href^="tel:"] {
        display: block;
        margin-bottom: 0.5em;
        font-weight: bold;
        letter-spacing: -0.03em;
        line-height: 1.1
    }
    body>footer ul {
        padding: 0
    }
    body>footer .block.link a {
        text-decoration: none
    }
    body>footer .block.link a:hover {
        text-decoration: underline
    }
    body>footer .block.list.wide ul {
        padding-left: 1em
    }
    body>footer ul li {
        list-style-type: none
    }
    body>footer ul li a {
        text-decoration: none
    }
    body>footer ul li a:hover {
        text-decoration: underline
    }
}


/**
 * Print styling
 * -------------
 */

@media print {
    /* Basic styling of HTML elements */
    a:link,
    a:visited {
        color: inherit;
        text-decoration: none
    }
    abbr[title] {
        border-bottom: 0
    }
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid
    }
    table {
        page-break-inside: avoid
    }
    body>header .logo {
        display: block;
        padding: 5.5rem 0
    }
    body>header .logo img {
        width: auto;
        height: 5em
    }
    body>footer {
        margin-top: 1.5em;
        border-top: 1pt solid #2b2b2b;
        padding-top: 0.75em
    }
    body>footer .contactInfo a {
        margin-right: 1em
    }
}