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


/*
---------------------------------------------------------
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 {
  box-sizing: border-box;
  max-width: 95% !important;
}

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

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

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


/*
---------------------------------------------------------
FORMATMALLAR
--------------------------------------------------------- */

.heading {
  font-size: 2.6rem;
  line-height: 1.4;
}

.subheading {
  font-size: 2rem;
  line-height: 1.4;
}

.preamble {
  font-size: 1.8rem;
}

body,
.brodtext {
  font-size: 1.6rem;
}


/*
---------------------------------------------------------
TABELLER
--------------------------------------------------------- */

.sv-text-portlet-content table caption {
  font-size: 2rem;
}


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

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

.lp-content {
  padding: 2rem;
}

.lp-secondary-content {
  padding: 0 2rem 2rem;
}

.lp-wrapper {
  border: none;
}

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


.lp-fullgrid-image {
  margin: 4rem -20px;
}

.lp-floatright-image {
  margin: 0 -20px 2rem 1.5rem;
}

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

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

div .lp-logo-column {
  display: block;
  max-width: 100%;
  position: relative;
  width: 100%;
}

.lp-logo {
  margin: 0;
}

.lp-logo img {
  max-width: 86px !important;
}

.lp-page-top-search {
  background-color: transparent;
  display: none;
  padding: 0;
}


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

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

.lp-footermenus {
  display: block;
  margin: 5rem 0 5rem;
}

.lp-footermenus ul {
  flex-wrap: wrap;
}

.lp-footermenus ul.lp-social-links {
  margin-bottom: 5rem;
}

/* Inloggningsmeny */

.lp-footermenus > div:nth-child(2) {
  flex-wrap: wrap;
}

.lp-footermenus > div:nth-child(2) a.litenxtext {
  display: block;
  margin: 0 2rem 0 0;
  padding: 1.2rem 0;
}

.lp-footermenus ul.lp-login-links {
  width: 100%;
}


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

.lp-topmenu {
  display: none;
}


/*
---------------------------------------------------------
UNDERMENY - Inställningar
--------------------------------------------------------- */

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

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

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

/* Direktlänk till mobilmenyn */
.lp-skip-to-menu-mobile {
  background: transparent;
  border: 1px solid #d9d5ce;
  border-radius: 3px;
  color: #000;
  display: inline-block;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 0 2rem;
  padding: 1.5rem;
  position: absolute;
  right: 0;
  text-align: left;
  text-decoration: none;
  top: 0;
  white-space: nowrap;
}

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

.lp-skip-to-menu-mobile[disabled] {
  background-color: #333;
  cursor: not-allowed;
  opacity: 0.7;
}

.lp-skip-to-menu-mobile .lp-icon {
  color: #006b4e;
  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: #006b4e;
  display: block;
  height: 44px;
}


/*
---------------------------------------------------------
UNDERMENY - 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;
  transform: rotate(180deg);
  vertical-align: middle;
}




/*
---------------------------------------------------------
UNDERMENY - Styling
--------------------------------------------------------- */

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

.lp-level-1 > li > a {
  border-bottom: 0;
  border-top: 1px solid #e4e4e4;
  font-size: 1.5rem;
}

.lp-level-2 > li:first-child > a {
  border-top: 1px solid #e4e4e4;
}


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

.lp-menu button {
  background-color: rgba(255, 255, 255, 0);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  height: 54px;
  width: 44px;
}

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



/*
---------------------------------------------------------
BRÖDSMULOR / FLERNIVÅLÄNK
--------------------------------------------------------- */

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


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

div .lp-site-tools {
  border-top: 1px solid #d9d5ce;
  display: -webkit-box;
  display: flex;
  margin: 2rem 0 0;
  padding: 0.5rem 0;
  text-align: left;
  width: 100%;

  flex-wrap: wrap;
}

div .lp-site-tools > li,
.lp-site-tools li:first-child {
  margin: 0 2rem 0 0;

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

div .lp-site-tools > li a {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  flex-direction: row;
  font-size: 1.2rem;
  padding: 1rem 0;
}

div .lp-site-tools .lp-icon {
  font-size: 1em;
  margin: 0 0.8rem 0 0;
}

/*
---------------------------------------------------------
SNABBLÄNKSMENY STARTSIDA
---------------------------------------------------------*/

.lp-quick-links {
  margin: 0;
}

.lp-quick-links li {
  margin: 0 0 1rem;
  padding: 0;
  width: 100%;
}

.lp-quick-links a {
  padding: 1rem;
}

.lp-quick-links .lp-icon {
  font-size: 2rem;
}


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

a.lp-page-top {
  background: #f0efec;
  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 {
  background-color: #ddd;
  text-decoration: underline;
}

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


/*
---------------------------------------------------------
VIKTIGT MEDDELANDE
---------------------------------------------------------*/

.sv-archive-portlet.lp-alert li {
  margin: 2rem 2rem 0;
  width: auto;
}

.lp-alert .sv-archive-portlet li {
  margin-top: 0;
}

.lp-alert .sv-channel-item h1 a {
  font-size: 1.4rem;
  line-height: 1.3;
  padding: 1.5rem 1rem 1.3rem 5.5rem;
}

.lp-alert .sv-channel-item h1 a:before {
  display: block;
}

.lp-alert .lp-icon-wrapper {
  width: 40px;
}

.lp-alert .lp-icon {
  font-size: 2.2rem;
}

/* Krismeddelande 2020 */

.lp-crisis-banner__alert {
  font-size: 16px !important;
  text-align: left !important;

  -webkit-box-pack: start !important;
  justify-content: start !important;
}

.lp-crisis-banner__alert-text-before {
  display: block;
}

.lp-crisis-banner__alert .lp-crisis-banner__alert-icon {
  margin-right: 10px;
}


/*
---------------------------------------------------------
STARTSIDA
--------------------------------------------------------- */

.lp-hello-hours-wrapper {
  display: block !important;
  margin-bottom: 0 !important;
}


.lp-hello-hours-wrapper > div:last-child {
  margin-left: 0 !important;
}

div .lp-hello-box {
  margin: -100px 0 0;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
}

div .lp-hello-box .sv-searchform-portlet {
  margin: 2rem 0 4rem;
}

.lp-hero + .sv-grid-1170 .sv-column-6 {
  margin: 2rem 0 3rem !important;
}

div .lp-hero {
  height: 40vh;
}

.lp-startpage .lp-expandable-content {
  margin: 2rem 0 4rem;
}

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

.lp-startpage-menu-wrapper .sv-script-portlet {
  padding: 2rem;
  width: 100%;
}

div .lp-startpage-menu {
  border-top: 1px solid #d9d5ce;
  margin: 0;
  padding: 2rem 0 2rem;
}

div .lp-startpage-menu > ul > li {
  min-height: 240px;
  padding: 1rem 1rem;
  width: 50%;
}

div .lp-startpage-menu > ul > li > a {
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

div .lp-startpage-menu .rek-prediction a {
  font-size: 1.4rem;
}

div .lp-startpage-menu > ul > li:nth-child(odd) {
  padding-left: 0;
}

div .lp-startpage-menu > ul > li:nth-child(even) {
  padding-right: 0;
}

div .lp-startpage-menu > ul > li:before {
  border-bottom: 1px solid #d9d5ce;
  bottom: 0;
  content: '';
  display: block;
  left: 0;
  position: absolute;
  right: 0;
}

div .lp-startpage-menu > ul > li:last-child:before {
  display: none;
}

div .lp-startpage-menu > ul > li:nth-child(odd):after {
  border-right: 1px solid #d9d5ce;
  bottom: 0;
  content: '';
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

div .lp-startpage-menu > ul > li:nth-child(even):after {
  display: none;
}

/*
---------------------------------------------------------
SIDVERKTYG 
--------------------------------------------------------- */

.lp-pagetools {
  -ms-flex-pack: start;
  margin: 2rem 2rem 0;

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

.lp-pagetools .sv-multilevellink-portlet {
  display: none;
}

a.lp-page-share-link.brodtext,
.lp-print-link a.brodtext,
.lp-page-contact-link.brodtext,
.sv-readspeaker_expandingplayer-portlet > a.brodtext {
  padding: 1rem 1.4rem;
}

.lp-pagetools-share {
  margin: 2rem 1rem 0 0;
}


.lp-pagetools-share h2.mellanrubrik {
  font-size: 1.6rem;
}

.lp-share-page__link {
  height: 44px;
  width: 44px;
}

/*
---------------------------------------------------------
HJÄLPTE DEN HÄR SIDAN DIG? 
--------------------------------------------------------- */

.lp-feedback {
  padding: 1rem 1rem 1.5rem;
}

.lp-feedback > .sv-vertical:first-child {
  display: block;
}

.lp-feedback > .sv-vertical:first-child p.brodtext {
  margin: 0 0 1rem 1rem !important;
}

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

.lp-byline {
  margin-top: 3rem;
}
