/*
=========================================================
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%;
  height: 100%; /* Storlek och position för off canvas */
}


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

/* Hoppa direkt till meny-länkar */

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

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


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

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

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

.preamble {
  font-size: 1.8rem;
}

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


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

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

div.sv-text-portlet-content .sv-standard th,
div.sv-text-portlet-content .sv-standard td {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

/* Tillåter radbrytning */
body div.sv-responsiveTable * {
  white-space: normal !important;
}


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

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

.lp-content {
  padding: 2rem;
}

html body main .lp-flex-spacebetween .lp-content.sv-column-7 {
  width: 100% !important;
}

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

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

/*
---------------------------------------------------------
BILDER
--------------------------------------------------------- */

.pagecontent > .sv-image-portlet {
  margin-left: 0;
}

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

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

.lp-logo-column {
  align-items: center;
  display: flex !important;
  -ms-flex-align: center;

  justify-content: space-between;
}

.lp-logo {
  margin: 0;
}

.lp-logo img {
  min-width: auto;
  width: 200px !important;
}

.lp-page-top-search {
  padding: 0 2rem;
}

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

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

.lp-footer .sv-fixed-fluid-grid > .sv-layout {
  align-items: flex-start;
  flex-direction: column;
  padding: 4rem 2rem;
}

.lp-footer .sv-fixed-fluid-grid > .sv-layout > .sv-layout:first-child {
  margin: 0 0 4rem;
  width: 100% !important;
}

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

.lp-extra-footer-menu ul {
  flex-wrap: wrap;
}

.lp-extra-footer-menu li {
  margin-bottom: 1rem;
  width: 50%;
}

.lp-extra-footer-menu li a {
  padding: 0;
  text-align: left;
}

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

.lp-topmenu {
  display: none;
}

.lp-header .lp-search-link .lp-icon {
  margin-bottom: -5px;
}

.lp-header .lp-toggle__trigger-button {
  margin-top: -8px;
}

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

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

.lp-submenu:before {
  content: none;
}

/* Lägger menyn off canvas */
.lp-js .lp-menu {
  background: #f3f3e4;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  left: -315px;
  max-width: 88%;
  min-height: 100%;
  padding-right: 0;
  padding-top: 44px;
  position: absolute;
  top: 0;
  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;
}


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

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

/* Direktlänk till mobilmenyn */
.lp-menu-toggle {
  background: #f3f3e4;
  border: none;
  color: #03529d;
  display: inline-block;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 0 2rem;
  padding: 2rem;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.lp-menu-toggle span {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.lp-menu-toggle:active,
.lp-menu-toggle:hover {
  color: #3c3c3c;
}


/* Visas om undermenyn bl.a. saknas i mallen eller inte kan laddas */
.lp-menu-toggle[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);
  border: none;
  color: #03529d;
  display: block;
  height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
}

.lp-menu .lp-close-button:focus {
  position: absolute;
}

/* Översättningslänk */

.lp-menu .lp-translate-link {
  box-sizing: border-box;
  display: block;
  font-family: 'pt sans narrow', 'open sans', arial, helvetica, sans-serif;
  font-size: 1.8rem;
  line-height: 1.5;
  padding: 1.3rem 1.5rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}


/*
---------------------------------------------------------
UNDERMENY - Tillbakalänk vid egen startpunkt
--------------------------------------------------------- */

.lp-child-root a.lp-back-link {
  background: #03529d;
  color: #fff;
  display: block;
  font-family: 'pt sans narrow', 'open sans', arial, helvetica, sans-serif;
  font-size: 1.7rem;
  padding: 1.5rem;
  text-decoration: none;
}


.lp-child-root a.lp-back-link:hover {
  text-decoration: underline;
}

.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 ul a {
  font-size: 1.7rem;
  padding: 1.3rem 1.5rem;
}

.lp-menu ul.lp-level-1 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 0;
}

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

.lp-level-1 > li > a {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.lp-quick-links li {
  width: 50%;
}

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


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

a.lp-page-top {
  background: #ffd4c5;
  display: block;
  font-family: 'pt sans narrow', 'open sans', arial, helvetica, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  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: #ffae92;
  text-decoration: underline;
}

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


/*
---------------------------------------------------------
PUBLICERINGSDATUM
--------------------------------------------------------- */

.lp-pubdate {
  display: inline-block;
  margin-bottom: 1rem;
}

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

.lp-alert .sv-archive-portlet li {
  margin: 0;
  padding: 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;
}


/*
---------------------------------------------------------
GOOGLE TRANSLATE
--------------------------------------------------------- */

#google-translate-modal {
  right: auto;
}


/*
---------------------------------------------------------
FACETTERAD SÖK
--------------------------------------------------------- */

.lp-search-hits {
  flex-wrap: wrap;
}

.lp-search-result {
  width: 100%;

  order: 2;
}

.lp-search-facets {
  margin-left: 0;
  width: 100%;

  order: 1;
}

.lp-search .sv-facetedsearch-portlet form {
  width: 100%;
}

/*
---------------------------------------------------------
HERO
--------------------------------------------------------- */

.lp-hero > .sv-layout h1.heading {
  font-size: 5.6rem;
  line-height: 1;
}

.lp-hero > .sv-layout {
  padding: 4rem 2rem;
  width: 100%;
}

/*
---------------------------------------------------------
BILDPUFFAR
--------------------------------------------------------- */

.lp-boxes .sv-text-portlet p.normal {
  font-size: 1.8rem;
}

.lp-boxes h2.subheading a {
  font-size: 2.4rem;
}

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

.lp-startpage .lp-content {
  padding-bottom: 0;
}

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

.lp-startpage .lp-news-list {
  margin-bottom: 2rem;
}
