/*
=========================================================
SMARTPHONE CSS
=========================================================
 * Innehåller styling för smartphones
 *
 * Copyright (C) Limepark AB. Upprättad 2018.
=========================================================*/

/*
---------------------------------------------------------
FIXAR/FÄRBÄTTRINGAR
---------------------------------------------------------*/

html {
  font-size: 62.5%;
}

/* Anpassar bilder i nyhetslistningen för mobilläge */
.lp-news-listing.sv-archive-portlet li img {
  float: none;
  padding: 0 0 1rem 0 !important;
}

/* Dölj utskriftslänk i smartphone */
.lp-print-link {
  display: none !important;
}

/* Fix så autocomplete inte kan bli bredare än tillgänglig yta */

.sv-autocomplete-search-result {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 95% !important;
}

ul.sv-autocomplete-search-result .sv-autocomplete-result-item {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0.3rem 1rem;
}

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

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

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

.lp-content,
.lp-secondary-content,
.lp-submenu {
  margin-top: 0;
}

.lp-content {
  padding: 2rem;
}

.lp-smartphone-margin {
  padding: 0 2rem;
}

.lp-startpage {
  margin-top: 0;
}

.lp-wrapper {
  padding: 2rem;
}

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

header {
  position: relative;
}

.lp-header-row-one {
  padding: 0 1rem 0 2rem;
}

header .sv-searchform-portlet {
  width: 67%;
}

.lp-logo {
  margin-left: 1.5rem;
}

.lp-header-row-two .lp-logo {
  margin-left: 1.5rem;
}
.lp-header-row-two .lp-logo img {
  width: 70.4px !important;
}
/*
---------------------------------------------------------
SIDFOT
--------------------------------------------------------- */

footer {
  margin: 0;
  padding: 30px 0;
}


/*
---------------------------------------------------------
TOPPMENY
--------------------------------------------------------- */

.lp-topmenu {
  display: none;
}


/*
---------------------------------------------------------
UNDERMENY 1/3 - Standardinställningar
--------------------------------------------------------- */
.lp-menu {
  margin-top: 0rem;
}

/* Lägger menyn off canvas */
.lp-js .lp-menu {
  background: #2a2a2a;
  -webkit-box-shadow: 0 15px 5px rgba(0, 0, 0, 0.4);
  box-shadow: 0 15px 5px rgba(0, 0, 0, 0.4);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  left: -315px;
  min-height: 100%;
  padding-top: 44px;
  position: absolute;
  top: 0;
  -webkit-transition: left 0.4s ease;
  transition: left 0.4s ease;
  width: 300px;
  z-index: 9999;
}

.lp-menu ul.lp-level-1 {
  padding: 0;
}

/* Visar alla huvudsidors menyer */
.lp-menu .lp-level-1 > li {
  display: block;
}

.lp-menu .lp-level-1 > li > a {
  border: 0;
  margin: 0;
  padding: 1.7rem 4.4rem 1.7rem 1.7rem;
}

/* Visar alltid pilknappen på första nivån */
.lp-menu .lp-level-1 > li > button {
  display: block;
}

.lp-menu .lp-level-1 > li > button .lp-icon {
  color: #fff;
}

/* Direktlänk till mobilmenyn */
.lp-skip-to-menu-mobile {
  background: transparent;
  border: none;
  color: #fff;
  display: inline-block;
  font-family: Publik, sans-serif;
  font-size: 1.5rem;
  padding: 1.3rem 1.5rem;
  position: absolute;
  right: 0;
  text-align: left;
  text-decoration: none;
  top: 6.1rem;
}

.lp-skip-to-menu-mobile:active,
.lp-skip-to-menu-mobile:hover,
.lp-skip-to-menu-mobile:focus {
  background-color: rgba(0,0,0,0.1);
}

.lp-skip-to-menu-mobile .lp-icon {
  margin: 0 0.8rem 0 0;
}


/* Stängknapp off canvas-meny */
.lp-menu .lp-close-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: block;
  height: 44px;
}



/*
---------------------------------------------------------
UNDERMENY 2/3
--------------------------------------------------------- */

/* Tillbakalänk vid egen startpunkt */

.lp-child-root a.lp-back-link {
  background: #333;
  color: #fff;
  display: block;
  padding: 1.5rem 4.4rem 1.4rem 1rem;
}

.lp-child-root a.lp-back-link .lp-icon {
  height: 11px;
  margin: -0.3rem 0.5rem 0 0;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  vertical-align: middle;
}

.lp-menu.lp-child-root .lp-level-1 > li > button {
  display: none;
}

/* Vanliga menyn */

.lp-menu a {
  font-size: 1.4rem;
}

.lp-level-1 > li > a {
  font-size: 1.5rem;
}


/*
---------------------------------------------------------
UNDERMENY 3/3 - Knappar
--------------------------------------------------------- */

.lp-menu button {
  background-color: rgba(255, 255, 255, 0);
  height: 56px;
  width: 44px;
}


/*
---------------------------------------------------------
UNDERMENY 3/3 - Knappar
--------------------------------------------------------- */

.sv-multilevellink-portlet {
  margin: 0 1.5rem 1.5rem;
}


/*
---------------------------------------------------------
VERTKTYGSMENY
---------------------------------------------------------*/

.lp-site-tools {
  margin: 1rem 0 0;
  text-align: left;
}


/*
---------------------------------------------------------
LÄNK TILL SIDANS TOPP
--------------------------------------------------------- */

a.lp-page-top {
  background: #eee;
  display: block;
  margin: 1rem 0 0.1rem;
  padding: 2rem 1rem;
  text-align: center;
  text-decoration: none;
}

a.lp-page-top:hover,
a.lp-page-top:active,
a.lp-page-top:focus {
  background-color: #ddd;
  text-decoration: underline;
}

a.lp-page-top .lp-icon {
  margin: 0 0.8rem 0 0;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}


/*
---------------------------------------------------------
SIDFOTSMENY
--------------------------------------------------------- */

footer .sv-jcrmenu-portlet  a {
  display: inline-block;
  padding: 1.2rem;
}


/*
---------------------------------------------------------
HERO
--------------------------------------------------------- */
.lp-hero {
  margin-bottom: 3rem;
  padding-bottom: 53px;
  padding-top: 46px;
}

/*
---------------------------------------------------------
TYPOGRAFI
---------------------------------------------------------*/
h1,
h1.heading {
  font-size: 28px;
  letter-spacing: 0.6px;
  line-height: 32px;
  margin-bottom: 13px;
}

h2,
h2.subheading,
.subheading {
  font-size: 24px;
  margin-bottom: 10px;
}
/*
---------------------------------------------------------
PUFFAR PÅ STARTSIDAN
--------------------------------------------------------- */
.lp-link-boxes {
  display: block;
}
.lp-link-boxes li,
.lp-link-boxes li:nth-child(3n) {
  box-sizing: border-box;
  margin: 0 1.5rem 1.6rem;
  width: auto;
}


/*
---------------------------------------------------------
PUFFNAVIGERING PÅ HEROSIDOR
--------------------------------------------------------- */
.lp-nav-boxes {
  display: block;
}

.lp-nav-boxes > li,
.lp-nav-boxes > li:nth-child(4n) {
  box-sizing: border-box;
  margin: 0 1.5rem 1.6rem;
  width: auto;
}


/*
---------------------------------------------------------
KONTAKTLISTA
---------------------------------------------------------*/

button.lp-show-search-form,
button.lp-hide-search-form {
  -webkit-box-align: center;
  align-items: center;
  display: block;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  margin: 0 0 3rem;
  text-transform: uppercase;
  width: 100%;

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

button.lp-hide-search-form {
  margin-bottom: 0;
}

button.lp-show-search-form span,
button.lp-hide-search-form span {
  font-family: 'publik','helvetica',sans-serif;
  font-size: 1.3rem;
  height: 1.4rem;
}

button.lp-show-search-form::before,
button.lp-hide-search-form::before {
  background-size: 100%;
  content: '';
  display: inline-block;
  margin-right: 0.5rem;
}

button.lp-show-search-form::before {
  background-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2024%2024\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20d%3D%22M10%202a2.997%202.997%200%200%200-2.816%202H2v2h5.184A2.997%202.997%200%200%200%2010%208c1.654%200%203-1.346%203-3s-1.346-3-3-3zm5%202v2h7V4h-7zm0%205a2.997%202.997%200%200%200-2.816%202H2v2h10.184A2.997%202.997%200%200%200%2015%2015c1.654%200%203-1.346%203-3s-1.346-3-3-3zm5%202v2h2v-2h-2zM7%2016a2.997%202.997%200%200%200-2.816%202H2v2h2.184A2.997%202.997%200%200%200%207%2022c1.654%200%203-1.346%203-3s-1.346-3-3-3zm5%202v2h10v-2H12z%22%2F%3E%3C%2Fsvg%3E');
  height: 1.4rem;
  width: 1.4rem;
}

button.lp-hide-search-form::before {
  background-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2016%2016\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20class%3D%22cls-1%22%20d%3D%22M16%2014.59L9.41%208%2016%201.41V0h-1.41L8%206.59%201.41%200H0v1.41L6.59%208%200%2014.59V16h1.41L8%209.41%2014.59%2016H16v-1.41z%22%2F%3E%3C%2Fsvg%3E');
  height: 1rem;
  width: 1rem;
}

.lp-contact-list ul {
  display: block;
}

.lp-contact-list ul li {
  width: auto;
}

.lp-contact-list ul li img.sv-channel-image {
  height: auto !important;
  max-height: unset;
  width: 100% !important;
}

.lp-search-form .env-form > div {
  width: 100%;
}

.env-form-element__label {
  margin: 2rem 0 0.5rem;
}

/*
---------------------------------------------------------
EXPANDABLE CONTENT
--------------------------------------------------------- */

.lp-expandable-content__toggler .sv-image-portlet {
  display: block;
}

/*
---------------------------------------------------------
BYLINE
--------------------------------------------------------- */

.lp-byline {
  margin: 4rem 0 4rem 0;
}

/*
---------------------------------------------------------
KNAPPAR
--------------------------------------------------------- */

.lp-colored-buttons {
  flex-direction: column;
}

.lp-colored-buttons > .sv-layout {
  margin-right: 0;
}


.lp-colored-buttons .lp-button-orange.sv-layout,
.lp-colored-buttons .lp-button-red.sv-layout,
.lp-colored-buttons .lp-button-green.sv-layout {
  margin-bottom: 0.8rem;

  flex-basis: auto;
}

.lp-button-orange.sv-layout,
.lp-button-red.sv-layout,
.lp-button-green.sv-layout {
  height: 8.2rem;
}

.lp-button-orange.sv-layout a,
.lp-button-red.sv-layout a,
.lp-button-green.sv-layout a {
  font-size: 2rem;
}

/*
---------------------------------------------------------
NYHETER
--------------------------------------------------------- */

.lp-news ul {
  flex-direction: column;
}

.lp-news ul li {
  margin-bottom: 2rem;
  margin-right: 0;
  width: 100%;
}

.lp-news-large ul li {
  width: 100%;
}
