/*
=========================================================
LAYOUT CSS
=========================================================
 * Innehåller styling för webbplatsens layout
 *
 * Copyright (C) Limepark AB.
 * https://limepark.se/licensvillkor
=========================================================*/


/*
---------------------------------------------------------
HOPPA TILL INNEHÅLL OCH MENY - Visas vid tabbning
--------------------------------------------------------- */

a.lp-skip-to-content,
a.lp-skip-to-menu {
  font-size: 1.6rem;
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

a.lp-skip-to-content:focus,
a.lp-skip-to-menu:focus {
  background: #000;
  color: #fff;
  display: block;
  height: auto;
  left: initial;
  overflow: visible;
  padding: 1rem 0;
  text-align: center;
  width: 100%;
  z-index: 30000;
}

a.lp-skip-to-menu-smartphone {
  display: none;
}


/*
---------------------------------------------------------
GRUNDLAYOUT
--------------------------------------------------------- */

.lp-wrapper {
  border: 1px solid #ccc;
  margin: 0 auto;
  max-width: 1000px;
}

.lp-content {
  margin: 7rem 0;
}

.lp-submenu {
  margin: 12rem 0;
}

.lp-section-grey {
  background: #f7f7f7;
  padding: 11rem 2rem;
}


/* H1 */

.lp-entry-page h1 {
  border-bottom: 1px solid #ddd;
  margin: 7rem 0 2rem !important;
  padding: 0 0 2rem;
}

.lp-section-grey h1 {
  border-bottom: 1px solid #ddd;
  margin: -4rem 0 8rem !important;
  padding: 0 0 1rem;
}


/*
---------------------------------------------------------
FORMATMALL: LÄNKRAD MED PIL
--------------------------------------------------------- */

.sv-font-lankrad-med-pil {
  margin-bottom: 10px;
}

.sv-font-lankrad-med-pil a {
  color: #069;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-decoration: none;
}

.sv-font-lankrad-med-pil a:before {
  background-image: url('data:image/svg+xml,%3Csvg%20viewBox=\'0%200%209%2014\'%20xmlns=\'http://www.w3.org/2000/svg\'%20fill=\'%23222\'%3E%3Cg%3E%3Cg%20transform=\'translate(-1082%20-120)\'%3E%3Cpath%20d=\'M2.219.281L.78%201.72%206.063%207%20.78%2012.281l1.44%201.439%206-6L8.906%207l-.687-.719z\'%20transform=\'translate(1082%20120)\'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  background-repeat: no-repeat;
  content: '';
  height: 15px;
  margin-right: 10px;
  margin-top: 4px;
  width: 10px;

  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.sv-font-lankrad-med-pil a > img {
  margin-left: 8px;
  margin-top: 8px;

  align-self: flex-start;
  -ms-flex-item-align: start;
}


/* Hover*/
.sv-font-lankrad-med-pil a:hover,
.sv-font-lankrad-med-pil a:focus {
  text-decoration: underline;
}


/*
---------------------------------------------------------
SIDHUVUD
--------------------------------------------------------- */

/* Grundlayout för sidhuvudet */
.lp-header {
  border-bottom: 1px solid #e7e7e7;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 132px;
}

.lp-header > .sv-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: justify;

  -webkit-box-flex: 1;
  -webkit-box-pack: justify;
  flex-grow: 1;
  -ms-flex-positive: 1;
  justify-content: space-between;
}

.lp-header > .sv-layout > .sv-layout {
  -webkit-box-align: center;
  align-items: center;
  border-bottom: 1px solid #e7e7e7;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: end;

  -webkit-box-pack: end;
  justify-content: flex-end;
}


/* Logotyp */
.lp-logo {
  -webkit-box-align: center;
  align-items: center;
  border-right: 1px solid #e7e7e7;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  height: 100%;
  padding: 0 8rem;

  -webkit-box-pack: center;
  justify-content: center;
}

.lp-logo img {
  display: block;
  height: auto !important;
  max-width: 100% !important; /* för skärumupplösning lägre än logotypens bredd */
  width: 124px !important; /* ändra till halva bildbredden för retinaupplösning */
}

.lp-logo a {
  display: inline-block;
  flex-shrink: 0;
}

.lp-logo a:focus {
  background: #eee;
}


/* Sökruta */
header .sv-searchform-portlet div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}


/* Sökruta - Textfält */
header .sv-searchform-portlet {
  border-left: 1px solid #e7e7e7;
  border-right: 1px solid #e7e7e7;
}


header .sv-searchform-portlet input[type='text'] {
  background: transparent;
  border: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 1.4rem;
  margin: 0;
  outline: none;
  padding: 1.8rem 2rem;

  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}


/* Sökruta - Knapp */
header .sv-searchform-portlet button {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 1.2rem;
}

header .sv-searchform-portlet button .lp-icon {
  color: #000;
  font-size: 1.8rem;
}


/* Sökruta - Hover */
header .sv-searchform-portlet form:hover,
header .sv-searchform-portlet form:focus {
  background-color: #f8f8f8;
}

header .sv-searchform-portlet form:hover input[type='text'],
header .sv-searchform-portlet form:focus input[type='text'] {
  border-color: #999;
}


/* Kommunlogotyp */
.lp-header > .sv-layout > .sv-layout .sv-image-portlet img {
  border-left: 1px solid #e7e7e7;
  display: block;
  height: auto !important;
  max-width: 100% !important; /* för skärumupplösning lägre än logotypens bredd */
  padding: 1.5rem 2rem;
  width: 100px !important; /* ändra till halva bildbredden för retinaupplösning */
}

.lp-header > .sv-layout > .sv-layout .sv-image-portlet img:focus {
  background: #eee;
}


/*
---------------------------------------------------------
SIDFOT
--------------------------------------------------------- */

footer .lp-site-color-primarfarg-bg {
  min-height: 10px;
}

.lp-footer {
  background: rgba(255, 255, 255, 0.9);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 6rem 2rem;
}

.lp-footer .sv-image-portlet img {
  display: block;
  height: auto !important;
  max-width: 100% !important; /* för skärumupplösning lägre än logotypens bredd */
  width: 272px !important; /* ändra till halva bildbredden för retinaupplösning */
}

.lp-footer h2.subheading {
  font-size: 2rem;
  font-weight: normal;
  margin: 0 0 1.5rem !important;
}

.lp-footer p.normal {
  font-size: 1.6rem;
  margin: 0 !important;
}

.lp-footer p a {
  text-decoration: none;
}

.lp-footer p a:hover,
.lp-footer p a:focus {
  text-decoration: underline;
}
