/* flips 20180407 - CSS grid based layout */
.hidden { display: none; }
html { }
body {
  font-family: "LatoWebLight", sans-serif;
  font-size: 1.8em;
  color: #181818;
  background-color: #ededed; /* body frame and extra branding */
  text-decoration-skip-ink: auto;
  /* --- Initial font sizes --- */
}
body p {
  line-height: 1.3; 
  /* margin: 1.5em 0 .5em 0; */
}
body em { font-style: italic; }
body strong { font-weight: bold; }
body h1 { font-size: 2.9em; }
body h2 { font-size: 2.0em; }
body h3 { font-size: 1.7em; }
body h4 { font-size: 1.2em; }
/* body h5, body h6 { } */
body a { color: #22454d; text-decoration: underline dotted #4e7f8d; }
h1, h2, h3, h4, h5, h6 {
  font-family: "KontrapunktLight", sans-serif;
  color: #00535c;
  line-height: 1;
  padding: .1em 0 .3em 0;
}
/* h3,h4,h5,h6 { margin: .7em 0 .2em 0; } */
h1 a, h2 a, h3 a, h4 a {
  color: #00535c; /* #22454d; */
  text-decoration: underline solid #4e7f8d;
  text-decoration-color: rgba(34, 83, 92, 0.2);
/*   text-decoration-color: transparent; */
}

article,
aside,
footer,
header,
main,
nav,
section {
  display: block;
}

div.g-recaptcha iframe textarea { background: #eee;
padding: 5em;
margin: 5em;
}
/* Text align center */
.centered {
  text-align: center;
}

/* Tables */
table, th, td {
  border-collapse: collapse;
  padding: .2em;
  border: 1px solid #282828 ;
}

#masthead { /*   width: 20em; */ }
.site-header {
  color: #ededed;
  background-color: #282828;
  background-image: url("/img/sbar_bg.png"); 
  background-repeat: no-repeat;
  background-size: 100% 280px;
}
.site-branding {
  text-align: center;
  line-height: 1.5;
  margin-bottom: 1  .7em;
}
.site-branding h1 {
  font-size: 2.4em;
  margin-top: .2em;
  text-transform: uppercase;
  font-family: "LatoWebLight", sans-serif;
  color: #e7e7e7;
/*   text-shadow: 2px 3px 3px #000;  */
}
.site-branding h1::first-letter { font-size: 120%; }
.site-branding p {
  padding: .4em 0 .4em 0;
}
.site-branding a {
  text-decoration: none;
}
/* 
.site-branding::after {
    margin-top: 1em;
    content: "∞";
    color: rgba(255,255,255,0.2);
}
 */
.custom-logo-link {
    display: block;
    padding: 2.2em 0 0em 0;
}
.custom-logo-link img {
    display: inline-block;
    height: 100px;
    width: auto;
}
/* Menu */
.main-navigation {
  font-family: "LatoWebLight", sans-serif;
  text-align: center;
  text-transform: uppercase;
  font-size: .9em;
  margin: 0 auto;
  clear: left;
}
.main-navigation label { /**/ }
.main-navigation ul {
  list-style: none;
}
.main-navigation ul li {
  border-bottom: 2px solid #32656d;
  min-width: 90%;
}

.main-navigation ul:hover > ul,
.main-navigation ul:focus > ul {
  left: auto;
}
.main-navigation li {
  position: relative;
}
.main-navigation a {
  display: inline-block;
  /* Denne må vera med for boks-fullbreidd på mobil-meny: */
  width: 100%;
  text-decoration: none;
}
/* -- NAV Menu Language Switcher -- */
.main-navigation ul.language-switcher {
  margin: 0;
  padding: 0 0 .5em 0;
}
ul.language-switcher li {
  border: none;
  font-size: 90%;
}

.main-navigation a:hover,
.main-navigation a:focus {
/*   text-decoration: underline; */
}

.main-navigation label {
  cursor: pointer;
}
label svg {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 4px 0;
}
#menu-toggle { display: none; /* hide the checkbox */ }
.main-navigation label { /* Burger menu */
  display: inline-block; 
  border: 1px solid #32656d;
  margin: 3em 0 0 0;
  padding: .2em;
  width: 95%;
  text-transform: uppercase;
  font-size: 100%;
}
#primary-menu {
  display: none;
}
#menu-toggle:checked + #primary-menu {
  display: block;
  margin-bottom: .5em;
}
.main-navigation ul {
  display: block;
}

.main-navigation ul li {
  display: inline-block;
  width: 90%;
  max-width: 90%;
}
.main-navigation ul.sub-menu { /* margin-top: .5em; */
  margin-top: 0px;
}
.main-navigation ul li ul li { /* margin-bottom: 0.2em; */
  border: none;
}
.main-navigation ul a {
 /* background: rgba(255, 255, 255, 0.05); */
}
.main-navigation ul li a {
  padding: .5em 0 .5em 0;
}
.main-navigation ul li ul li a {
/*   margin-top: -2em; */
}

.main-navigation ul li a:hover {
  background: rgba(255, 255, 255, 0.06);
}

#primary-menu li.active>a {
  color: #f9bca4;
  /* font-weight: bold; */
}

#primary-menu li ul.sub-menu>li.active a {
  color: #f9bca4;
}


/* SUB menu */
.main-navigation ul.sub-menu { font-size: 90%; }
.main-navigation ul.sub-menu a { max-width: 97%; }

/* Hide non-active SUB/level 2 menu */
#primary-menu li.active ul.sub-menu {
  display: block;
  /* margin-top: .3em; */
}
#primary-menu li ul.sub-menu {  display: none; }

/* other Header/sidebar-stuff */
.site-header, .site-footer { color: #ededed; }
.site-header a, .site-footer a { color: #ededed; }
.site-header a:visited, .site-footer a:visited { color: #ededed; }
/* .site-header a:hover, .site-footer a:hover { color: #ededed; } */
.site-header a:active, .site-footer a:active { color: #fff; }

.site-main { min-height: 90vh; }
.site-main section {
  /* background: red; */
}
/*
main section article { background: #fee;
}
*/
.site-main .page-intro   {
  background: #ededed;
  padding: 1em;
}
.site-main .page-intro h2 {
  font-size: 2rem;
}
.post {
  background: #ededed;
  padding: 1rem;
  /* border: 1px solid #777; */
  border-radius: 8px;
  margin: 1rem;
}
.post img { max-width: 100%; height: auto; }
.post .fm {  /* FrontMatteri, meta info tags, date etc. */
  color: #0a0a0a;
  font-size: .8em;
}
.post .summary {  /* post excerpts */
  font-size: .9em;
}

.site-complementary {
  padding: 2em 3em;
}
.extra-branding {
  text-align: center;
  display: block;
}
.extra-branding img {
  width: 50%;
  max-width: 70px;
  padding: 1em 0 1em 0;
}

.site-footer {
  color: #fff;
  background: #282828;
  padding: 1em;
  text-align: center;
  min-height: 20vh;
  /* max-height: 30vh; */
  font-family: "LatoWebLight";
}
.sitemeta svg { vertical-align: middle; }
.copyright {
  font-size: .8em;
  line-height: 2;
  font-weight: 100;
}
.copyright a { text-decoration: underline dotted #888; }
.social-icons ul {  /* flex center */
  margin: 1em 0;
  display: block;
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.social-icons ul li {
  float: left;
  padding: 0 .7em 0 .7em;
}
/* -- Text before posts/article(s) -- */
.page-intro { margin-bottom: -1em; }

/* -- Article in List and in Single -- */
.site-main article { /* Also in list */
  overflow: hidden;
  background: #fff;
}
.site-main ul, ol, p {
  padding: 0 0 1em 0;  /* Spacing before headers */
}

/* -- Article single -- */
.site-main article .abody {
  /* border: .1px dotted #282828; */
  /* margin: .3em .5em .5em .5em; */
  /* padding: 0.5em 0.6em 1em 1em; */
  padding: 2.2em 2.6em 2.2em 3.2em;
  line-height: 1.5;
  max-width: 100%;
}
.site-main article p {
  padding: .5em 0 .5em 0;
}
.site-main article blockquote {
  padding: .2em .2em .4em 1.2em;
  font-family: "Merriweather", "Cambria", serif;
  font-weight: 300;
  font-size: 90%;
}
/* -- Article List style -- */

.site-main ul > li:before {
  content: "–"; /* en dash */
  position: absolute;
  margin-left: -1.1em; 
}
.site-main article ul li {
  margin-left: 1.3em}
}

/* --- Featured image --- */
.featured_img {
  display: block;
}
.featured_img span {
  display: table-cell;
  margin: 0;
  height: 300px;
  min-height: 25vh;
  vertical-align: middle;
  width: 500em;
  overflow: hidden;
}
.featured_img h1 {
  text-align: center;
  font-size: 1.9em;
/* font-size: 5rem; */
/* font-size: x-large; */
  font-size: 5vh;
  text-shadow: 2px 2px 4px black; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #F9BCA4; /*#ededed;*/
}

p.read-more {
/*   display: inline-block; */
  text-align: right;
  margin: 0 .3em 0 0;
}
p.read-more a {
  /* padding: .35em .5em; */
  padding: .55em .85em;
  border: .1px solid #22454d;
  color: #ededed;
  background: #4e7f8d;
  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: .78em;
}


/* --- Home page --- */
/* -- Hero -- */ 
.hero {
/*   display: inline-block; */
  display: flex;
  max-width: 100%;
/*   margin: 0 auto; */
  margin: 1.5em 0 2.2em 0;
  justify-content: center;
  align-items: center;

}
.hero-img {
  display: block;
  flex: 1;
  text-align: center;
}
.hero-img img {
  display: inline-block;
  height: 5em;
  width: auto;
  max-width: 33%;
}
.hero-img .hero-caption {
  font-size: 1em;
/*   font-size: 2.2rem; */
  font-family: "LatoWebLight", sans-serif;
  text-transform: uppercase;
}

/* images in general */
.top-right {
  vertical-align: top;
  float: right;
}
.top-left {
  vertical-align: top;
  float: left;
}
.center { text-align: center; }
.upcase-link { text-transform: uppercase; text-decoration: none; }


/* ** Contact form ** */
#contact-us input, #contact-us textarea {
  padding: 1em;
  width: 100%;
  border: 2px solid #ccc;
}
#contact-us textarea {
  vertical-align: top;
  width: 100%;
}
#contact-us textarea:focus, #contact-us input:focus {
  border: 2px solid #900;
}
#contact-us button {
  text-align: right;
  margin: 0 .3em 0 0;
  padding: .55em .85em;
  border: .1px solid #22454d;
  color: #ededed;
  background: #4e7f8d;
  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: .78em;
}


/* ----------------------------
## Main layout
------------------------------- */

.site-main {
/*   padding-left: 11rem; */
  max-width: 50em;
  width: 100%;
  margin: 0 auto;
/*   padding: 0; */
}

@media screen and (min-width: 600px) {
  .site-main {
    /* padding: 2em; */
    max-width: 100%;
  }
  /* Menu */
  .menu-toggle {
    display: none;
  }
  .main-navigation ul {
/*     margin: -1.5em 0; */
    display: block;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 1em;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }

  .hero-img .hero-caption { font-size: 1.3em; }

  /* language flag */
  /* Hide the burger ;) */
  .main-navigation label { display: none; }
  #primary-menu {
    display: block;
    padding: 2em 0 0 0;
  }

}

@media screen and (min-width: 1300px) {
  .site-main {
    max-width: 50em;
  }
}

@supports (grid-area: auto) {
  @media screen and (min-width: 55em) {

    .site {
      display: grid;
      grid-template-columns: /* 16em */ 23em 1fr;
      grid-template-rows: 1fr minmax(1em, auto);
      grid-template-areas:
         "header main"
         "header main"
         "footer sidebar";
    }
    .site-header {
      grid-area: header;
    }
    .site-main {
      grid-area: main;
    }
    .site-complementary {
      grid-area: sidebar;
    }
    .site-footer {
      grid-area: footer;
    }

    /* Grid inside #main */
    .site-main {
      max-width: none;
      padding: 0 0; /* 8px;  ** HER ** */
      display: grid;
      /*grid-template-rows: 25vh 1fr; */
      grid-template-rows: auto 1fr;
      /* grid-gap: 8px; */
      /* background: #cccccc; */
    }
    #masthead {
      /*background: #224 no-repeat bottom / 45% 60% url(/img/logo-wheel-faded.svg);*/
    }
    .posts { display: grid; grid-template-columns: repeat(2, 1fr); padding: 0 .6em; }
    .featured_img h1 { font-size: 7rem; }

    .site-header {
      position: fixed;
      width:  23em;
      /*max-width: 30%;*/
      height: 80vh;
      border-bottom: none;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }
    .site-footer {
      position: fixed;
      bottom: 0px;
      height: 20vh;
      width: 23em;
    }

    /* Menu */
    #site-navigation { width: 21.5em; }
    /* language flag */
    
    .menu-toggle {
      display: none;
    }

  }
  @media screen and (min-width: 1350px) {
    .site {
      grid-template-columns: 23em 1fr 18em;
      grid-template-rows: 1fr minmax(1em, auto);
      grid-template-areas:
        "header main sidebar"
        "footer main sidebar";
    }
    .site-complementary {
    }
    #secondary { /* separation for right sidebar */
      border-left: 1px solid #fff;
    }

  }
    
}

