/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
    padding: 0;
    margin: 0;
}
html, body {
    width: 100%;
    height: 100%;
}
body {
    font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif;
}
header {
    position: absolute;
    top:0;
    width:100%;
    height: 100px;
    line-height: 80px;
    background-color:#222222;
    border-bottom: 5px solid #cc6600;
    padding: 0 2em 1em 2em;
    box-sizing: border-box;
    color:#fff;
    vertical-align: bottom;
}
header .beta {  
    padding-left:0.5em;  
    display:inline-block;
    color:#fff; 
    vertical-align: bottom;
    height:45px;
    font-size:0.8em;
    }
header img.logo {
    object-fit:contain;
    height:60px;
    vertical-align: bottom;
}
nav { float: right; }
main {
    position: absolute;
    top:100px;
    bottom:30px;
    width:100%;
    background:#ccc;
}
.slicknav_menu {
	display:none;
}

#searchbox {
    background: rgba(34, 34, 34, 0.85);
    height:65px;
    width: 960px;    
    margin-left:-480px;
    left:50%;
    padding-top:0.5em;
    position: absolute;
    margin-top:1%;
    z-index:3;
}
#search-form { margin: 0 !important;}
#search-outer-container {
    position:relative;
    width:50%;
    height:34px;
    min-width:400px;
    background:#fff;
    margin:auto;
    border: 1px solid #ccc;
}
#search-outer-container input {
    margin:0px;
    border:none;
    box-sizing:border-box;
}
#search-header-container {
    position:absolute;
    left:0px;
    right:100px;
    height:100%;
} 
#search-input {
    position:relative;
    width:100%;
    height:100%;
    padding-left:0.5em;
    color:#222;
}
#search-button {
    position:absolute;
    color:#fff;
    background:url(../img/sok.png),#cc6600;
    background-repeat:no-repeat;
    background-size: 28px;
    background-position: 15% center;
    right:0px; 
    width:100px;
    height:100%;
    border-left: 1px solid #ccc;
    font-size:1.2em;
    padding-left:2em;
}
#searchbox .tekst {text-align:center; font-weight: 100; margin-top:0.25em; color:#fff;}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    height:1em;
    
    display: inline-block;    
    vertical-align:bottom;
    line-height:1em;
    position:relative;
    right:0px;
}
nav ul li {
    display:inline; 
    margin-left:1.2em;
    cursor:pointer;
}
nav ul li a { color:#fff; text-decoration:none; }
nav ul li a:hover { color:#fff; text-decoration:underline; } 

#kart {
    position:absolute;
    width:100%;
    height:100%;
    z-index:1;
}
/*#overlegg {
    position: absolute;
    width:100%;
    height:100%;
    z-index:2;
}*/

#fargeforklaring {
    position:absolute;
    z-index:2;
    bottom:2%;
    right:2em;
    width:130px;
    height:200px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(128,128,128,0.85);
    font-size:0.8em; padding-top:0.25em; color:#000;
    display:none;
}
#fargeforklaring .tittel { position:absolute; width:100%; height:20%; top:0%; padding-top:0.2em; font-weight:bold; text-align:center; color:#000; background: rgba(0,0,0,0.15);}
#fargeforklaring .skala { position:absolute; top:25%; bottom:5%; left:5%; width:25%;
 
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#6fa8dc+0,b7d46e+25,ffff00+50,ff8000+75,ff0000+100 */
background: -moz-linear-gradient(top,  #6fa8dc 0%, #b7d46e 25%, #ffff00 50%, #ff8000 75%, #ff0000 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top,  #6fa8dc 0%,#b7d46e 25%,#ffff00 50%,#ff8000 75%,#ff0000 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom,  #6fa8dc 0%,#b7d46e 25%,#ffff00 50%,#ff8000 75%,#ff0000 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6fa8dc', endColorstr='#ff0000',GradientType=0 ); /* IE6-9 */
border: 1px solid rgba(128,128,128,0.85);
}
#fargeforklaring .lite-egnet { position:absolute; left:35%; top:24%; right:0; height: 22%; }
#fargeforklaring .velegnet { position:absolute; left:35%; top:47%; right:0; height: 26%; display:table; }
#fargeforklaring .velegnet div { display:table-cell; vertical-align:middle; height:100%;}
#fargeforklaring .svaert-egnet { position:absolute; left:35%; top:73%; right:0; height: 22%; display:table; }
#fargeforklaring .svaert-egnet div { display:table-cell; vertical-align:bottom; height:100%;}

#innholdHolder {
    position:absolute;
    width:960px;
    left:50%;
    margin-left:-480px;
    top:16%;
    bottom:2%;
    background: rgba(255,255,255,0.85);
    box-sizing:border-box;
    z-index:2;

}
h1 { font-weight:100; text-align:center; margin:0 0 0.2em 0; }
h2 { font-weight:normal; text-align:center; margin:0 0 0.2em 0; }
h3 { text-align:center; margin:0 0 0.2em 0; }
#innholdHolder .kryss { position:absolute; right:0.8em; top:0.4em; height:1em; cursor:pointer; text-align:right; width:100px; font-size:0.8em; color:#666;}
#innholdHolder .kryss img {height:1em; vertical-align: middle;margin-left:0.5em;}
#innhold { position:absolute; padding:0em 0.5em 0em; box-sizing:border-box; top: 1.5em; bottom: 0.8em; left: 1em; right: 1em;}
#innhold figure { float: right; width: 50%; margin:0 1em 1em;}
#innhold figure img { width:100%;}
.innhold_vest {
    position:absolute;
    width:33%;
    right:0;
    top:0;
    bottom:0;
}
.innhold_senter {
    position:absolute;
    width:66%;
    left:0;
    top:0;
    bottom:50px;
}
footer {
    position: absolute;
    bottom:0;
    width:100%;
    height:30px;
    background-color:#222222;
    border-top: 5px solid #cc6600;
    color:#fff;
    text-align:center;
    font-size:0.7em;
    padding-top:0.3em;
    box-sizing:border-box;
}
footer span { vertical-align:middle; }
.tilecontainer { width:100%; text-align:center;}
.tile {
    width:200px;
    height:180px;
    margin: 0.25em;
    padding: 0.25em;
    border: 1px solid #ccc;
    background-color:rgba(255,255,204,0);
    display:inline-block;
    cursor:pointer;
    box-sizing:border-box;
}
.w-tile {
    width:49%;
    height:180px;
    padding: 0.25em;
    border: 1px solid #ccc;
    background-color:rgba(255,255,204,0);
    display:inline-block;
    cursor:pointer;
    box-sizing:border-box;
}
.w-tile:nth-child(2n+1) {
    margin-right:0.5%;
}
.w-tile:nth-child(2n) {
    margin-left:0.5%;
}
.w-tile img, .tile img {
    width:100%;
    height:140px;
    object-fit:cover;
    border-bottom: 0.25em solid rgba(0,0,0,0);
    box-sizing: border-box;
}
.w-tile div, .tile div {
    width:100%;
    height:30px;
    box-sizing: border-box;
    font-size:1.2em;
    text-align:center;
    background:#fff; 
    
}
.adressefelt {
    position:absolute;
    left:0;
    width:65%;
    bottom:0;
    height:40px;
    background-color:rgba(0,0,0,0.15);
    padding:0.25em 0.5em;
    font-size:0.8em;
    line-height:normal;
    box-sizing:border-box;
}
.linje.velg-anlegg { padding:0.2em 0.5em 0.5em; cursor:pointer;}
.linje.velg-anlegg:not(:last-child) { border-bottom: 1px solid #ccc; }
.linje.velg-anlegg .tittel { font-size:1.3em; }
.linje.velg-anlegg .prod { width:33%; display:inline-block; text-align:left; line-height:1em; }
.linje.velg-anlegg .pris { width:33%; display:inline-block; line-height:1em; }
.linje.velg-anlegg .infowrap { width:85%; display: inline-block; }
.linje.velg-anlegg .symbol { width:14%; display:block; text-align:right; float:right;}
.linje.velg-anlegg .symbol img {
    object-fit:contain;
    height:2.8em;
    margin-top: 0.8em;
    margin-right: 0.5em;
    vertical-align:middle;
    text-align:right;
    opacity:0.8;
}
.linje.velg-anlegg div.tekst { font-size:0.7em; font-weight:bold; width:55%; display:inline-block;  }
.linje.velg-anlegg div.verdi { font-size:1.2em; text-align:right; width:45%; display:inline-block; }
.linje.velg-anlegg span.tekst { font-size:0.7em; font-weight:bold;}
.linje.velg-anlegg span.verdi { font-size:1.2em; }
.fotnote { font-size:0.8em; font-style: italic; text-align:center;margin-top:2em;}
.tittelcontainer {margin-bottom:0.25em;}
.tittelcontainer .btn { width:8%; display:inline-block; vertical-align:top; }
.tittelcontainer .btn img { width:95%; object-fit:contain; opacity:0.8; cursor:pointer; }
.tittelcontainer h1, .tittelcontainer h2 {width: 84%; vertical-align:top; display:inline-block;padding-top:0.25em;}
.tilbud.info {
    width:49%;
    display:inline-block;
    margin-right:1%;
    line-height:1em;
    padding-left:1em;
    box-sizing: border-box;
}
.panelgrid {
    position:absolute;
    right:1%;
    top:0;
    bottom:0;
    width:49%;
    display:inline-block;
    text-align:center;
    padding-top:3%;
}
.panelgrid img {margin: 0 1px 1px 0; }
.panelgrid img.rad1 { height: 90%; }
.panelgrid img.rad2 { height: 45%; }
.panelgrid img.rad3 { height: 30%; }
.panelgrid img.rad4 { height: 22.5%; }
.panelgrid img.rad5 { height: 18%; }
.panelgrid img.rad6 { height: 12.5%; }
.panelgrid img.rad7 { height: 11.25%; }
.panelgrid img.rad8 { height: 10%; }
.panelgrid img.rad9 { height: 9%; }
.panelgrid img.rad10 { height: 18%; }

.panelgrid img.kol1 { max-width: 90%; }
.panelgrid img.kol2 { max-width: 45%; }
.panelgrid img.kol3 { max-width: 30%; }
.panelgrid img.kol4 { max-width: 22.5%; }
.panelgrid img.kol5 { max-width: 18%; }
.panelgrid img.kol6 { max-width: 15%; }
.panelgrid img.kol7 { max-width: 12.85%; }
.panelgrid img.kol8 { max-width: 11.25%; }
.panelgrid img.kol9 { max-width: 10%; }
.panelgrid img.kol10 { max-width: 9%; }
.panelgrid img.kol11 { max-width: 8.2%; }
.panelgrid img.kol12 { max-width: 7.5%; }
.info-wrap {
    position:relative;
}
.tilbud.info p { margin: 0 0 0.25em 0; }
.tilbud.info span.tekst { font-size:0.7em; font-weight:bold;}
.tilbud.info span.verdi { font-size:1.1em; }
.tilbudsdetaljer {
    margin-top:1em;
    width:49%;
    display:inline-block; 
    background-color: rgba(0, 0, 0, 0.15);
    padding:0.5em;
    box-sizing:border-box;
}
.tilbudsdetaljer input[type=button] {
    margin-top:0.25em;
    color:#fff;
    background:#cc6600;
    right:0px; 
    font-size:1.1em;
    border: 1px solid #ccc;
    padding: 0.25em 0.5em;
}
.tilbudsdetaljer:first-of-type { margin-right:1%; }
.tilbudsdetaljer:last-of-type { margin-left:1%; }
.tilbudsdetaljer .linje div { display:inline-block; }
.tilbudsdetaljer .linje.stotte { margin-top:0.5em; }
.tilbudsdetaljer .linje.sum { border-top: 1px solid #666; border-bottom: 1px solid #666; font-weight:bold;}
.tilbudsdetaljer .linje .tekst { width:65%; }
.tilbudsdetaljer .linje .fortegn { width:5%; text-align:center; }
.tilbudsdetaljer .linje .verdi { width:30%; text-align:right; }

#bestillingsskjema { margin:0; padding:0; }
#bestillingsskjema fieldset { background-color: rgba(0, 0, 0, 0.15); padding: 0.5em; margin:0.5em 0; display:table; width:100%; box-sizing:border-box; }
#bestillingsskjema table { width:100%; border:0; border-spacing:0; }
#bestillingsskjema table tr:not(:last-child) td {padding-bottom: 0.25em; }
#bestillingsskjema table td:first-child { width:90px; }
#bestillingsskjema table td:not(:first-child) { padding-left:0.5em; }
/*#bestillingsskjema .fieldcontainer { position:relative; width:100%; display:inline-block; }*/
#bestillingsskjema input:not([type=button]) { width: 100%; box-sizing:border-box; padding-left:0.25em;}
#bestillingsskjema table.kort { min-width:350px; max-width:100%; width:50%; }
#bestillingsskjema .lang-label { width:250px !important; }
#bestillingsskjema input[type=button] {
    margin-top:0.25em;
    color:#fff;
    background:#cc6600;
    right:0px; 
    font-size:1.1em;
    border: 1px solid #ccc;
    padding: 0.25em 0.5em;
}
.adressefelt .left { width:49%;float:left; }
.adressefelt .right { width:49%;float:right; text-align:right;}
#produksjonsdata {
    position:absolute;
    left:0%;
    right:0%;
    top:0%;
    height:55px; 
    background-color:#fff;
    border: 1px solid #ccc;
    box-sizing:border-box;
}
.produksjon_symbol {
    background:url(../img/strom.png), #009900;
    background-repeat:no-repeat;
    background-size: contain;
    background-position: center center;
    width:14%;
    height:100%;
    float:left;
}
.produksjon_data {
    background:#ddffdd;
    width:42%;
    height:100%;
    float:left;
    text-align:center;
}
.strompris_symbol {
    background:url(../img/sparegris.png), #990000;
    background-repeat:no-repeat;
    background-size: contain;
    background-position: center center;
    width:14%;
    height:100%;
    float:left;
}
.strompris_data {
    background:#ffdddd;
    width:30%;
    height:100%;
    float:left;
    text-align:center;
}
#produksjonsdata .tekst {
    font-size:0.7em;
    font-weight:bold;
}
#produksjonsdata .verdi {
    font-size:1.4em;
    font-weight:100;
}
#chart_holder {
    position:absolute;
    left:0%;
    right:0%;
    top:60px;
    bottom:0%;
} 
#chart_estimat {
    width:100%;
    height:49.25%;
    margin-bottom:1.5%;
    border: 1px solid #ccc;
    box-sizing:border-box;
}

#chart_horisont {
    width:100%;
    height:49.25%;
    border: 1px solid #ccc;
    box-sizing:border-box;
}

@media screen and (min-width: 801px) and (max-width: 1024px) {

    #searchbox {
        background: none;
        height:65px;
        width: 40%;    
        margin-left:-20%;
        left:50%;
        padding-top:0.5em;
        position: fixed;
        top:5px;
        z-index:1001;
    }
    #search-outer-container {
        width:100%;
    }
    #searchbox .tekst { display:none; }
    #innholdHolder { top:2%; left:1em; right:1em; margin:0; width:auto;}
}
@media screen and (max-width: 800px) {
    #searchbox {
        width:auto;
        margin:0;
        right:0;
        left:0;
        top:0;
        
    }
    #search-form { margin: 0 !important;}
    #search-outer-container {
        width:95%;
        min-width:initial;
    }
    #innholdHolder {
        left:1em;
        right:1em;
        top:5em;
        bottom:1em;
        width:auto;
        margin:0;
    }
    .adressefelt {
        width:100%;
    }
    #produksjonsdata {
        position:static;
        margin-bottom:0.4em;
    }
}
@media screen and (min-width: 700px) and (max-width: 800px) {

    #searchbox .tekst { font-size:0.9em; }
    .innhold_vest {
        width:100%;
        height:245px;
        top: initial;
        bottom:45px;
    }
    .innhold_senter {
        width:100%;
        bottom:295px;
    }

    .produksjon_data {
        width:36%;
    }
    .strompris_data {
        width:36%;
    }
    #chart_holder {
        position:static;
    } 
    #chart_estimat {
        width:49%;
        float:left;
        height:180px;
    }    
    #chart_horisont {
        width:49%;
        float:right;
        height:180px;
    }
}
@media screen and (max-width: 699px) {
    h1 { font-size: 1.8em; }
    #searchbox {
        width:auto;
        margin:0;
        right:0;
        left:0;
        top:0;
    }
    #searchbox .tekst { font-size:0.8em; }
    #search-form { margin: 0 !important;}
    #search-outer-container {
        width:95%;
        min-width:initial;
    }
    
    .innhold_vest {
        width:100%;
        height:55px;
        bottom:45px;
        top: initial;
    }
    .innhold_senter {
        width:100%;
        bottom:105px;
    }
    #chart_holder {
        display:none;
    }
    .w-tile {
        width:100%;
        height:155px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0.25em;
    }
    .tile {
        width:48%;
        height:155px;
    }
    .tile:nth-child(2n+1) {
        margin-right:0.5%;
    }
    .tile:nth-child(2n) {
        margin-left:0.5%;
    }
    .w-tile img, .tile img {
        height:120px;
    }
    .w-tile div, .tile div {
        height:25px;
        font-size:1.0em;    
    }
    .hide-on-mobile {
        display:none !important;
    }
    .linje.velg-anlegg .tittel { font-size:1.2em; width:90%; vertical-align:middle; display:inline-block; }
    .linje.velg-anlegg .prod { width:38%; display:inline-block; text-align:left; line-height:1em; }
    .linje.velg-anlegg .pris { width:31%; display:inline-block; line-height:1em; }
    .linje.velg-anlegg .infowrap { width:100%; }
    .linje.velg-anlegg .symbol { width:10%; display:inline-block; vertical-align:middle; float:initial; }
    .linje.velg-anlegg .symbol img {
        height:auto;
        margin-top: none !important;
        margin-right: none !important;
        width:100%;
        margin: 0.25em 0;
    }
    .linje.velg-anlegg span.tekst { font-size:0.7em; font-weight:bold;}
    .linje.velg-anlegg span.verdi { font-size:1.1em; }
    .tittelcontainer {margin-bottom:0.5em;}
    .tittelcontainer .btn { width:10%; display:inline-block; vertical-align:middle; }
    .tittelcontainer h2 {width: 80%; vertical-align:middle; display:inline-block;padding-top:0px; font-size:1.2em; }
    
    .tilbud.info p { margin: 0 0 0.25em 0; }
    .tilbud.info span.tekst { font-size:0.7em; font-weight:bold;}
    .tilbud.info span.verdi { font-size:1.0em; }
    
    .tilbud.info {
        width:59%;
        margin-right:1%;
        padding-left:0px;
    }
    .panelgrid {
        width:39%;
        text-align:right;
        padding-top:0px;
    }
    .tilbudsdetaljer {
        width:100%;
        display:block;
        margin-left:0px !important;
        margin-right:0px !important;
        font-size:0.9em;
    }
    #bestillingsskjema table td:first-child:not(:only-child) { display:none; }
    #bestillingsskjema table td:nth-child(3) { padding-left:0.5em; }
    #bestillingsskjema table td:not(:nth-child(3)) { padding-left: 0px !important; }
    #bestillingsskjema table tr td:only-child { padding-bottom:0px; }
    #bestillingsskjema table.kort { width:100%; min-width: initial; }
    
    #fargeforklaring {
        bottom:1em;
        left:1em;
        right:1em;
        width:auto;
        height:80px;
    }
    #fargeforklaring .tittel { height:20px; }
    #fargeforklaring .skala { top:30px; bottom:initial; left:5px; right:5px; height:25px; width:auto;
    
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#6fa8dc+0,b7d46e+25,ffff00+50,ff8000+75,ff0000+100 */
    background: -moz-linear-gradient(left,  #6fa8dc 0%, #b7d46e 25%, #ffff00 50%, #ff8000 75%, #ff0000 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left,  #6fa8dc 0%,#b7d46e 25%,#ffff00 50%,#ff8000 75%,#ff0000 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right,  #6fa8dc 0%,#b7d46e 25%,#ffff00 50%,#ff8000 75%,#ff0000 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6fa8dc', endColorstr='#ff0000',GradientType=1 ); /* IE6-9 */
    }
    #fargeforklaring .lite-egnet { left:0%; top:60px; right:inital; height: 20px; width:33%; box-sizing:border-box; padding-left:10px; }
    #fargeforklaring .velegnet { left:33%; top:60px; right:initial; height: 20px; display:block; width:34%; text-align:center; }
    #fargeforklaring .velegnet div { display:inherit; }
    #fargeforklaring .svaert-egnet { left:initial; top:60px; right:0; height: 20px; display:block; width:33%; box-sizing:border-box; padding-right:10px; text-align:right; }
    #fargeforklaring .svaert-egnet div { display:inherit; }
}
@media screen and (min-width: 700px) {
    .hide-on-desktop {
        display:none !important;
    }
}
@media screen and (max-width: 1024px) {
    #levertav {display:none;}
    header {
        height: 80px;
        line-height: 60px;
    }
    header .beta {  height:35px; font-size:0.7em; }
    header img.logo { height:45px; }
    main { top:80px; }

	#menu {
		display:none;
	}
	
	.slicknav_menu {
		display:block;
        position:absolute;
        top:0.5em;
        left:0;
        right:0;
        z-index:1000;
        background:none !important;
	}
    .slicknav_nav {
        background:#222;
        float:right;
        font-size:1em !important; 
    }
    .slicknav_btn { font-size:1.6em !important; margin:5px;}
    
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
