/*
=========================================================
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 {
  -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;
}


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

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

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

.preamble {
  font-size: 1.8rem;
}

body,
.normal {
  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-smartphone-margin {
  padding: 0 2rem;
}


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

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

.lp-header > .sv-fixed-fluid-grid {
  margin-top: 0;
}

.lp-logo-column {
  -webkit-box-align: center;
  align-items: center;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-align: center;
  -ms-flex-pack: justify;

  -webkit-box-pack: justify;
  justify-content: space-between;
}

.lp-logo {
  margin: 0;
}

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

.lp-page-top-search {
  background: #f8f9fc;
  border-bottom: none;
  margin: -2rem -2rem 2rem -2rem;
  padding: 1rem 2rem;
}

header .sv-searchform-portlet input[type='text'] {
  padding: 0.5rem 1.2rem;
}

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

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

.lp-footer .sv-row {
  display: block;
}

.lp-footer .sv-column-3 {
  border: none !important;
  text-align: center;
}

.lp-footer-menu a.normal {
  -ms-flex-pack: center;

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

.lp-footer .lp-logo {
  display: none;
}


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

.lp-topmenu {
  display: none;
}


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

/* Storlek och position för off canvas */
html {
  height: 100%;
}

body {
  min-height: 100%;
  position: relative;
  top: 0;
}


/* Lägger menyn off canvas */
.lp-js .lp-menu {
  background: #006eab;
  border: none;
  -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20px 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; /* OBS! Om animationen tas bort måste callback för "transitionend" i submenu-client.js justeras */
  width: 300px;
  z-index: 9999;
}

.lp-menu > ul {
  background: #fff;
}


/* Visar alla huvudsidors menyer */
.lp-menu .lp-level-1 > li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/* 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 {
  -webkit-box-align: center;
  align-items: center;
  background: transparent;
  border: none;
  color: #006eab;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: center;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 0 2rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

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

.lp-skip-to-menu-mobile:active,
.lp-skip-to-menu-mobile:hover {
  background-color: #eee;
}

.lp-menuicon-wrapper {
  -webkit-box-align: center;
  align-items: center;
  background: #006eab;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  height: 3rem;
  margin: 0 0 0.5rem;
  width: 3rem;

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

.lp-skip-to-menu-mobile .lp-icon {
  color: #fff;
  font-size: 1.2em;
  margin: 0;
}


/* Visas om undermenyn bl.a. saknas i mallen eller inte kan laddas */
.lp-skip-to-menu-mobile[disabled] {
  background-color: #333;
  cursor: not-allowed;
  opacity: 0.7;
}


/* Stängknapp off canvas-meny */
.lp-menu .lp-close-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: block;
  font-size: 1.3em;
  height: 44px;
  position: absolute;
  right: 0;
  top: 0;
}


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


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

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

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

.lp-level-1 > li > a,
.lp-level-1 > li > button {
  background: rgba(0, 110, 171, 0.1);
  border-bottom: 1px solid rgba(0, 110, 171, 0.5);
}

.lp-level-2 > li:last-child > a,
.lp-level-2 > li:last-child > button {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.lp-menu button {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

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


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

.sv-multilevellink-portlet {
  /* temp */
}


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

.lp-site-tools {
  background: #f8f9fc;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  margin: 2rem -2rem 0;
  padding: 0 2rem;
  text-align: left;

  -webkit-box-pack: justify;
  justify-content: space-between;
}

.lp-site-tools li > a {
  border: none !important;
  font-size: 1.2rem;
  margin: 0 !important;
  padding: 1.3rem 0.5rem 1.1rem !important;
  text-align: center;
}

.lp-site-tools li:first-child > a {
  padding-left: 0 !important;
  white-space: nowrap;
}

.lp-site-tools li:last-child > a {
  padding-right: 0 !important;
}

/*
---------------------------------------------------------
STARTBOXAR
---------------------------------------------------------*/

.lp-startboxes {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.lp-startboxes > div {
  margin: 0 0 1rem;
  width: 100%;
}

.lp-startboxes > div:nth-child(2) .sv-text-portlet-content {
  padding: 2rem;
}

.lp-startboxes .sv-text-portlet-content {
  min-height: 0;
}

.lp-startboxes > div:nth-child(2) h2.subheading {
  font-size: 2rem;
}

.lp-startboxes > div:nth-child(2) p.normal {
  font-size: 1.6rem;
}

.lp-startboxes > div:nth-child(2) h2.subheading a:after {
  background-size: 2.2rem 2.2rem;
  height: 2.2rem;
  width: 2.2rem;
}

.lp-switch-box p.preamble {
  font-size: 2.5rem;
}

.lp-publicservice-box .lp-quick-links {
  padding-top: 2rem;
}

.lp-publicservice-box .lp-quick-links:before {
  left: 0;
  top: 0;
}

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

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

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

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

/*
---------------------------------------------------------
DRIFTSTÖRNINGAR STARTSIDA
---------------------------------------------------------*/

.lp-service-news li {
  -webkit-box-align: start;
  align-items: flex-start;
  -ms-flex-align: start;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.lp-service-news .lp-icon-wrapper {
  padding: 0 0 1rem;
}

.lp-service-news .lp-icon {
  font-size: 2rem;
}

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

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

a.lp-page-top:hover,
a.lp-page-top:active {
  text-decoration: underline;
}

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


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

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

.lp-alert .sv-channel-item h1 a {
  font-size: 1.8rem;
  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;
}

/*
---------------------------------------------------------
LANDNINGSLÄNKAR
--------------------------------------------------------- */

.lp-landing-links__list {
  padding: 0 2rem;
}

.lp-landing-links__list-item {
  margin-bottom: 2rem;

  -webkit-box-flex: 0;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
}



/*
---------------------------------------------------------
JUICER
---------------------------------------------------------*/

body .juicer-feed {
  padding: 0 2rem ;
}

/*
---------------------------------------------------------
EVENEMANGSLISTA
---------------------------------------------------------*/

.lp-event-list__image {
  display: none;
}

.lp-event-list__date .lp-event-list__datecontainer {
  border-radius: 4px;
}

.lp-event-list__info {
  margin-top: 0.5rem;
}

.lp-event-list__info a.normal {
  font-size: 1.6rem;
}

/*
---------------------------------------------------------
COOKIEBANNER
---------------------------------------------------------*/
.lp-cookie-approval.lp-cookie-approval--position-top {
  padding: 20px;
}

.lp-cookie-approval .lp-cookie-approval__form {
  display: block;
}

.lp-cookie-approval .lp-cookie-approval__button {
  margin: 1rem 0 0 0;
}

.lp-cookie-approval .lp-cookie-approval-form__link {
  display: block;
}