/*
=========================================================
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.6rem;
  line-height: 1.4;
}

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

.heading3 {
  font-size: 1.9rem;
}

.heading4 {
  font-size: 1.7rem;
}

.preamble {
  font-size: 1.7rem;
}

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


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

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

.sv-text-portlet-content table th,
.sv-text-portlet-content table 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,
.lp-submenu {
  padding: 2rem 2rem 4rem;
}

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

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


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

.lp-header {
  border-bottom: 1px solid #eee;
  padding: 2rem 2rem;
}

.lp-header__top-bar {
  display: block;
}

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

  justify-content: space-between;
}

.lp-logo {
  margin: 0;
}

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

.lp-text-logo__link {
  font-size: 6vw;
  font-size: clamp(1.6rem, 6vw, 3.4rem);
}

header .lp-search-column {
  margin: 0;
  min-width: auto;
}

/*
---------------------------------------------------------
SÖK OVERLAY
--------------------------------------------------------- */

.lp-fixed-search .lp-overlay__content {
  padding: 2rem;
}

.lp-fixed-search .lp-overlay__close-button {
  border-bottom: none;
  border-top: none;
  margin: 0 0 -1px auto;

  justify-content: center;
}

.lp-search input[type='text'] {
  font-size: 1.6rem;
}

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

.lp-footer .lp-footer-row-one {
  margin-top: 0;
  padding: 0;
}

.lp-footer .lp-footer-row-one > .sv-layout {
  flex-direction: column;
  width: 100%;
}

.lp-footer .lp-footer-row-one > .sv-layout > .sv-layout {
  padding-left: 0;
  width: 100%;
}

.lp-footer .lp-footer-row-one > .sv-layout > .sv-layout:first-child {
  background: rgba(255,240,207,1);
  padding: 4rem 2rem;
}

.lp-footer .lp-footer-row-one > .sv-layout > .sv-layout:nth-child(2) {
  background: rgba(254,218,171,1);
  padding: 4rem 2rem;
}

.lp-footer .lp-logo-secondary {
  display: block;
  margin: 0 0 2rem;
}

.lp-footer-row-two {
  box-sizing: border-box;
  margin: 4rem 0 2rem;
  padding: 0 1rem;
  width: 100%;

  flex-wrap: wrap;
}

.lp-footer-row-two > .sv-layout,
.lp-footer-row-two > .sv-layout:first-child {
  border: none;
  box-sizing: border-box;
  margin: 0 0 3rem;
  padding: 0 1rem;
  width: 50%;
}

.lp-footer-row-three > .sv-layout {
  align-items: flex-start;
  box-sizing: border-box;
  flex-direction: column;
  padding: 0 2rem;
  width: 100%;
}

/* Färg sidfot */
.lp-footer-row-one:after,
.lp-footer-row-one:before {
  content: none;
}

.lp-footer-row-three > .sv-layout .sv-portlet:first-child {
  margin-bottom: 1rem;
}

html body footer .sv-layout.lp-footer .sv-layout:last-child {
  margin-bottom: 0;
}

@media (max-width:500px) {
  .lp-footer-row-two > .sv-layout {
    width: 100%;
  }
}

/* Kakvarning */
body .lp-cookie-approval {
  border-radius: 0;
}

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

.lp-topmenu {
  display: none;
}


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

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

.lp-app-submenu {
  border: none;
}

body .lp-app-submenu__menu {
  background: #fff;
}

body .lp-app-submenu__menu-item__link--level-1 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body .lp-app-submenu__menu-item--level-2:last-child > * {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


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

body .lp-overlay__container:not(.lp-fixed-search) .lp-overlay__inner {
  height: 100%;
}

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

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

html body .lp-app-submenu__menu-item__link--level-1,
html body .lp-app-submenu__menu-item__toggler--level-1 {
  border-bottom-color: rgba(0,0,0,0.1);
}

body .lp-app-submenu__menu-item__link--level-1 {
  background: #fff;
  font-size: 1.6rem;
}

body .lp-overlay__container.lp-fixed-menu .lp-overlay__inner {
  background-color: #d7d6d2;
}

.lp-fixed-menu .lp-overlay__close-button {
  border-bottom: none;
  border-top: none;
  margin: 0 0 0 auto;
}


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

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

body .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
---------------------------------------------------------*/

.lp-site-tools__wrapper {
  background: #fff;
}

.lp-site-tools__wrapper > .sv-layout {
  align-items: flex-start;
  background: #d7d6d2;
  padding: 2rem;
  width: auto;

  justify-content: flex-start;
}

.lp-js .lp-header .lp-site-tools {
  display: none;
}

.lp-js nav .lp-site-tools {
  box-sizing: border-box;
  padding: 1rem;
}

.lp-js nav .lp-site-tools li,
.lp-site-tools li {
  display: block;
  margin: 0;
}

.lp-site-tools li > a {
  display: flex;
  font-size: 1.6rem;
  text-decoration: none;
}

.lp-site-tools li > a:hover {
  text-decoration: underline;
}

.lp-site-tools li > a:before {
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23000%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M16%203C8.832%203%203%208.832%203%2016s5.832%2013%2013%2013%2013-5.832%2013-13S23.168%203%2016%203zm0%202c6.086%200%2011%204.914%2011%2011s-4.914%2011-11%2011S5%2022.086%205%2016%209.914%205%2016%205zm-1.781%204.281L12.78%2010.72%2018.062%2016l-5.28%205.281%201.437%201.438%206-6%20.687-.719-.687-.719z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  content: '';
  display: inline-block;
  height: 1.8rem;
  margin: 0 0.7rem 0 0;
  width: 1.8rem;
}

/*
---------------------------------------------------------
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 {
  align-items: center;
  border-radius: 4px;
  color: #222;
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;

  justify-content: center;
}

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

a.lp-page-top:focus .lp-icon {
  color: rgba(0, 0, 0, 1);
}

a.lp-page-top .lp-icon {
  color: rgba(0, 0, 0, 0.3);
  font-size: 4.2rem;
  margin: 1rem;
  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;
}


/*
---------------------------------------------------------
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,
.sv-facetedsearch-portlet .lp-search form {
  width: 100%;
}

/*
---------------------------------------------------------
FULLBREDD SÖK
--------------------------------------------------------- */

.lp-fullwidth-search .lp-search-facet--facet {
  width: 100%;
}

/*
---------------------------------------------------------
BOX NAVIGATION
--------------------------------------------------------- */

.lp-box-navigation-wrapper {
  padding: 2rem 0;
}

.lp-box-navigation-wrapper li {
  width: 100%;
}

.lp-box-navigation-wrapper li:nth-child(2),
.lp-box-navigation-wrapper li:nth-child(3) {
  border-top: 1px solid rgba(151, 151, 151, 0.25);
}

.lp-box-navigation-wrapper li {
  border-left: none;
  border-right: none;
}

.lp-box-navigation-wrapper li {
  padding-left: 0;
  padding-right: 0;
}

.lp-box-navigation-wrapper li p.normal {
  display: none;
}

.lp-box-navigation__list-item--desktop-filler,
.lp-box-navigation-wrapper .lp-box-navigation__list-item--tablet-filler {
  display: none;
}

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

.lp-hero > .sv-layout {
  min-height: 20rem;
  padding: 3rem 2rem;
}

.lp-hero .lp-hero__image {
  min-height: 20rem;
}

.lp-hero > .sv-layout > .sv-layout {
  padding: 0;
}

.lp-hero > .sv-layout,
.lp-hero > .sv-layout > .sv-layout {
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.lp-hero > .sv-layout > .sv-layout > .sv-layout {
  border-left: none;
  border-top: 2px solid rgba(0,0,0,0.25);
  margin: 2rem 0 0 0;
  padding: 2rem 0 0 0;
}

.lp-hero > .sv-layout > .sv-layout > .sv-layout:first-child {
  border: none;
  margin: 0;
  padding: 0;
}

.lp-hero .heading {
  font-size: 2.6rem;
}

/*
---------------------------------------------------------
BILDPUFF
--------------------------------------------------------- */

*[class*='lp-app-blurbs-list__item--bildpuff'],
body .sv-column-12 *[class*='lp-app-blurbs-list__item--bildpuff'] {
  width: 100%;
}

/*
---------------------------------------------------------
TEXTMENYPUFF
--------------------------------------------------------- */

.lp-app-blurbs--textmenypuff .lp-app-blurbs-list {
  outline: none;
  outline-offset: 0;
  padding: 2rem;
}

.lp-app-blurbs-list__item--textmenypuff {
  border-right: none;
  padding: 2rem 0;
  width: 100%;
}

.lp-app-blurbs-list__item--textmenypuff:first-child {
  padding-top: 0;
}

.lp-app-blurbs-list__item--textmenypuff:last-child {
  border: none;
  padding-bottom: 0;
}

/*
---------------------------------------------------------
EXPANDERBART INNEHÅLL
--------------------------------------------------------- */

.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content .lp-expandable-content__toggler,
.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__content {
  padding: 1.4rem 1.6rem;
}

.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd) .subheading,
.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd) .normal,
.lp-expandable-content__toggler .subheading,
.lp-expandable-content__toggler .normal,
.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd) .heading3,
.lp-expandable-content__toggler .heading3 {
  font-size: 1.8rem;
}

/*
---------------------------------------------------------
KALENDER
--------------------------------------------------------- */

.lp-calendar__results-container {
  flex-direction: column;
}

.lp-calendar__form-row {
  flex-direction: column;
}

.lp-calendar .lp-calendar__facets {
  margin: 0 0 3rem;
  margin-left: 0;

  flex-basis: 0;
  order: 1;
}

.lp-calendar__element-group {
  flex-direction: column;
}

.lp-calendar__form-group-separator {
  align-items: center;
  padding: 0 15px;
}

.lp-calendar__form-control-text {
  margin: 0;
}

/* Paginering */

.lp-calendar__pagination ul {
  max-width: 100%;
  padding: 0;
}

/*
---------------------------------------------------------
KAKVARNING
--------------------------------------------------------- */

body .lp-cookie-approval {
  left: 0;
  max-width: none;
  right: 0;
  width: auto;
}


body .lp-cookie-approval .lp-cookie-approval__text {
  padding: 0 0 1rem;
}

body .lp-cookie-approval__form {
  flex-wrap: wrap;
  justify-content: flex-start;
}

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

.lp-pagetools {
  padding: 0.8rem 1.6rem;
}

.lp-pagetools .lp-pubdate {
  font-size: 1.4rem;
}


/*
---------------------------------------------------------
TVÄRGÅENDE PERSPEKTIV
--------------------------------------------------------- */

body .lp-subject-groups {
  padding-left: 2rem;
  padding-right: 2rem;
}

body .lp-related-subject-areas__groups {
  display: block;
}

body .lp-related-subject-areas__group {
  width: auto;
}

/*
---------------------------------------------------------
INFORMATIONSANSVARIGA FORMULÄR
---------------------------------------------------------*/

.lp-info-responsible-form input {
  font-size: 1.5rem;
  width: -webkit-fill-available;
}
