/* global settings */
@font-face {
    font-family: 'Fira Sans';
    src: url(fonts/FiraSans-Light.subset.woff2);
    font-weight: 300;
}

@font-face {
    font-family: 'Fira Sans';
    src: url(fonts/FiraSans-Regular.subset.woff2);
    font-weight: 400;
}

@font-face {
    font-family: 'Fira Sans Condensed';
    src: url(fonts/FiraSansCondensed-Medium.subset.woff2);
    font-weight: 500;
}

@font-face {
    font-family: 'Fira Sans';
    src: url(fonts/FiraSans-SemiBold.subset.woff2);
    font-weight: 600;
}

@font-face {
    font-family: 'Fira Sans';
    src: url(fonts/FiraSans-Bold.subset.woff2);
    font-weight: 700;
}

@font-face {
    font-family: 'Fira Sans';
    src: url(fonts/FiraSans-LightItalic.subset.woff2);
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Fira Sans';
    src: url(fonts/FiraSans-Italic.subset.woff2);
    font-weight: 400;
    font-style: italic;
}

body {
    padding: 0;
    margin: 0;
    font-family: "Fira Sans";
    background-color: white;
    color: black;
}

a {
    text-decoration: none;
}

a, a:visited {
    color: #1d3d5e;
}

p, ul, li, a, h1, h2, h3, dl, dd, dt, fieldset {
    margin: 0;
    padding: 0;
    font-weight: 400;
}

.sr-only, section.Widget fieldset legend {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px; 
}

.hide {
    display: none;
}

.hideChart {
    opacity: 0 !important;
}

/* govbar */
div#govbar > img {
    display: block;
    margin-left: auto;
}

/* skip link */
a.skiplink {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    top: 0;
    left: 0;
    background-color: #0869aa;
    width: 100%;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    color: white;
    text-align: center;
}

a.skiplink:focus {
    clip: auto;
}

/* header */
header[role=banner] {
    max-width: 1000px;
    margin: auto;
    margin-bottom: 1rem;
}

header[role=banner] a.homelink {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 1rem;
    font-size: 1.75rem;
    font-weight: 400;
    margin-left: 0.5rem;
    margin-top: 1.5rem;
}

@media screen and (min-width: 400px) {
    header[role=banner] a.homelink {
        margin-left: 3rem;
    }
}

header[role=banner] a.homelink h1 {
    font-size: 1.75rem;
}

header[role=banner] img {
    max-width: 30px;
    height: auto;
    border: 1px solid #1d3d5e;
    border-radius: 50%;
    padding: 0.5rem;
    animation: showLogo 2s ease-in-out;
}

@media (prefers-reduced-motion) {
  header[role=banner] img {
    animation: none;
  }
}

@keyframes showLogo {
    0% {border-color: white;}
    100% {border-color: #1d3d5e;}
}

header[role=banner] nav ul {
    width: fit-content;
    margin: 3rem 3rem 0 auto;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    text-align: right;
}

header[role=banner] nav ul li {
    padding: 0 0.7rem 0.4rem 0.7rem;
    margin: 0.3rem 0;
    border-bottom: 3px solid white;
    transition: border-bottom .3s ease-in-out;
}

header[role=banner] nav ul li:last-child {
    border: 1px solid #1d3d5e;
    border-radius: 50%;
    padding: 0.3rem;
    font-size: 0.9rem;
    margin: 0 0 0.9rem auto;
    display: flex;
    align-items: center;
    
}

header[role=banner] nav ul li:not(:last-child):hover {
    border-bottom: 3px solid #1d3d5e;
}

header[role=banner] nav ul li:last-child:hover {
    background-color: #1d3d5e;
}

header[role=banner] nav ul li:last-child:hover a, header[role=banner] nav ul li:last-child:hover a:visited {
    color: white;
}

@media screen and (min-width: 700px) {
    header[role=banner] nav ul {
        flex-direction: row;
        gap: 0 1rem;
    }
}

/* main */
main {
    background-color: #F2F7FD;
    border-top: 1px solid #d0e2f6;
    padding: 3rem 0.5rem;
}

@media screen and (min-width: 600px) {
    main {
        padding: 3rem 2rem;
    }
}

main h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1d3d5e;
    margin: auto;
    max-width: 1000px;
    padding: 0 0 2rem 3rem;
}

main h1 a:hover {
    text-decoration: underline !important;
}

main h1 a::after {
   content: '';
   background-image: url(../img/external-link.svg);
   background-size: contain;
   background-repeat: no-repeat;
   width: 1rem;
   height: 1rem;
   position: absolute;
   margin-left: 1rem;
}

@media screen and (min-width: 400px) {
    main h1 {
        font-size: 3rem;
    }
}
/* footer */
footer {
    background-color: #1D3D5E;
    color: white;
    padding: 1rem;
    color: white;
}

footer > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 900px;
    margin: auto;
}

footer > div > div.footerMenu {
    display: flex;
    justify-content: center;
}

footer ul {
    margin-bottom: 2rem;
}

footer ul li {
    list-style-type: none;
}

footer a, footer a:visited {
    color: white;
    text-decoration: none;
}

footer ul li a {
    display: block;
    padding: 0.5rem 0;
}

footer a:hover {
    text-decoration: underline;
}

footer div.footerPartners {
    margin: 0 0 4rem auto;
    width: fit-content;
    padding: 0.6rem;
}

footer div.footerPartners > p {
    font-size: 0.85rem;
    font-weight: 300;
    padding: 1rem 0 0.5rem 0;
}

footer img.partner {
    max-width: 250px;
    height: auto;
}

footer div.followUs {
    margin-left: auto;
    width: fit-content;
}

footer div.followUs ul {
    display: flex;
    flex-direction: column;
}

footer div.followUs ul li {
    font-weight: 300;
    padding-right: 1.6rem;
    position: relative;
}

@media screen and (min-width: 450px) {
    footer div.followUs ul {
        flex-direction: row;
    } 
    footer div.followUs ul li:not(:last-child)::after {
        position: absolute;
        content: '\25AA';
        right: 0.7rem;
        top: 0.5rem;
    }
}

@media screen and (min-width: 700px) {
    footer {
        padding: 3rem 2rem 0 2rem;
    }

    footer > div {
        flex-direction: row;
    }

    footer > div > div.footerMenu {
        justify-content: left;
    }
}

/* home */
p.home-list-intro {
    margin: 1rem auto;
}

ul.list-intro {
    list-style-type: none;
    margin: 0 auto 2rem auto;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

@media screen and (min-width:  550px) {
  ul.list-intro {
    flex-direction: row;
  }  
}

ul.list-intro li {
    font-weight: 300;
    border: 1px solid #d0e2f6;
    border-radius: 0.5rem;
    background-color: #F2F7FD;
    flex-basis: 100%;
    padding: 0.3rem 0.4rem 0.3rem 3.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

ul.list-intro li::before {
    content: '';
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 2.5rem;
    height: 3rem;
}

ul.list-intro li.audit_type1::before, ul.list-intro li.audit_type2::before {
    background-image: url(../img/desktop.svg);
}

ul.list-intro li.audit_type3::before {
    background-image: url(../img/smartphone.svg);
}


ul.list-intro li span {
    display: block;
}

ul.list-intro li span:nth-of-type(3) {
    font-size: 0.9rem;
    padding-top: 0.4rem;
}

ul.list-intro li a {
    font: normal 500 0.9rem "Fira Sans Condensed";
    padding-bottom: 0.1rem;
    line-height: 1.6rem;
}

ul.list-intro li a::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* top10 */
div.top10footerOptions {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-direction: column;
}

@media screen and (min-width: 450px) {
    div.top10footerOptions {
        flex-direction: row;
    }
}

div.top10footerOptions a {
    text-decoration: underline;
    margin-top: 1rem;
}

/* details page */
aside.details {
    padding: 1rem 0;
    color: #1d3d5e;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

aside.details h2 {
    margin-bottom: 2rem;
}

aside.details div.pills {
    display: flex;
    justify-content: end;
    gap: 2ch;
    flex-direction: column;
}

aside.details div.pills section.pill {
    background-color: #d0e2f6;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    min-width: 160px;
}

@media screen and (min-width: 800px) {
    aside.details div.pills {
        flex-direction: row;
    }

    aside.details div.pills section.pill {
        margin-top: 0;
    }
}

aside.details div.pills section.pill h3 {
    position: relative;
    margin-top: -1lh;
    margin-left: 0.25rem;
    font-size: 1em;
    font-weight: 400;
    font-variant: all-small-caps;
}

aside.details div.pills section.pill a {
    width: 24px;
    height: 24px;
    position: absolute;
}

aside.details div.pills section.pill div {
    padding: .5rem 2ch;
    height: 100%;
    display: flex;
    flex-direction: column;
}

aside.details div.pills section.pill div p {
    font-size: 1rem;
    padding-top: 0.3rem;
}

aside.details div.pills section.pill div p.big {
    padding: 0;
    font-size: 2.5rem;
    font-weight: 600;
}

section ul.timeline li {
    margin: 0.3rem 1rem;
}

section ul.timeline a:hover {
    text-decoration: underline;
}

section div.OD a img {
    display: block;
    width: 100%;
}

section div.OD img {
    max-width: 150px;
    height: auto;
    margin-left: auto;
}

/* sitemap */
ul.sitemap, ul.sitemap li {
    list-style-type: none;
}

ul.sitemap li {
    padding: 0.4rem 0;
    position: relative;
}

ul.sitemap ul li::before {
    position: absolute;
    content: '';
    top: -5px;
    left: -30px;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid  rgb(168, 168, 168);
    border-left: 1px solid  rgb(168, 168, 168);
    border-radius: 0 0 0 0.3rem;
}

ul.sitemap ul li::after {
    position: absolute;
    content: '';
    top: 12px;
    left: -15px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid  rgb(168, 168, 168);
    border-left: 1px solid  rgb(168, 168, 168);
    rotate: -135deg;
}