/*
=========================================================
BASE CSS
=========================================================
 * Innehåller grundläggande styling, fixar och
 * förbättringar av webbplatsen
 *
 * Copyright (C) Limepark AB.
 * https://limepark.se/licensvillkor
=========================================================*/


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

html {
  font-size: 62.5%;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.sv-edit-mode) {
    scroll-behavior: smooth;
  }
}

/* Fix för envision */

div .env-text {
  line-height: 1.5;
}

/* Marginal vid utskrift - validerar ej om den ligger i print.css */
@page {
  margin: 2cm 2cm;
}

/* Göm innehåll, men visas för skärmläsare */
.lp-user-hidden {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

/** Ikoner **/
.lp-icon {
  height: 1em;
  /* Paths and strokes that overflow the viewBox can show in IE.
  If you use normalize.css, it already sets this. */
  overflow: hidden;
  /* Nice visual alignment for icons alongside text */
  vertical-align: -0.05em;
  /* Allows sizing by changing the icon's font-size */
  width: 1em;
  /* Default path fill = value of the color property */

  fill: currentColor;
  flex-shrink: 0;
}

/* SVG-biblioteket */

.lp-app-svg-icons__symbol-button {
  font-size: 0.8em;
  padding: 1rem;

  justify-content: flex-start;
}

.lp-app-svg-icons__symbol-button .lp-icon {
  font-size: 2.5em;
  margin: 0 1rem 0 0;
}


/* Fix för att bilder ska skalas i nyhetsmoduler */
.sv-responsive .sv-archive-portlet img {
  height: auto !important;
  max-width: 100% !important;
  width: auto !important;
}

/* Modulavstånd i innehållsytor (ej textmoduler) */

.pagecontent > :where(.sv-portlet, .sv-layout, .sv-custom-module):not(:last-child),
.sv-decoration-content :where(.sv-portlet, .sv-layout, .sv-custom-module):not(:last-child) {
  margin-bottom: var(--lp-spacing-large);
}

.sv-column-12 .sv-decoration-content :where(.sv-portlet, .sv-layout, .sv-custom-module):not(:last-child),
.sv-column-12 .pagecontent > :where(.sv-portlet, .sv-layout, .sv-custom-module):not(:last-child) {
  margin-bottom: var(--lp-spacing-xx-large);
}

.sv-column-12 [class*='lp-max-width'] :where(.sv-portlet, .sv-layout, .sv-custom-module):not(:last-child),
.pagecontent > [class*='lp-max-width'] > :where(.sv-portlet, .sv-layout, .sv-custom-module):not(:last-child) {
  margin-bottom: var(--lp-spacing-large);
}

.pagecontent > .sv-custom-module:last-child,
.pagecontent > .sv-layout:last-child {
  margin-bottom: 0;
}

.pagecontent + .lp-width-100 {
  margin-top: var(--lp-spacing-xx-large);
}

.sv-decoration-content .sv-portlet:last-child,
.sv-decoration-content .sv-layout:last-child,
.sv-decoration-content .sv-custom-module:last-child {
  margin-bottom: 0;
}

/* Ändrar rubriker i nyhetsmodul till blockelement */
.sv-archive-portlet h2.subheading a span,
.sv-archive-portlet h3.heading3 a span {
  display: block;
}

/* Responsiva iframes etc */
iframe,
object,
embed {
  border: medium none;
  max-width: 100%;
  overflow: hidden;
}

/* Ändrar cursor vid clickable area */
.sv-js .lp-clickable-area {
  cursor: pointer;
}

/* Underlinar länkar vid hover i ytor med klickbar yta */
.sv-js .lp-clickable-area:hover h1 a,
.sv-js .lp-clickable-area:hover h2 a,
.sv-js .lp-clickable-area:hover h3 a {
  text-decoration: underline;
}

/* Undvik överbreda bildtexter */
/*
.sv-image-portlet,
.sv-mfpimage-portlet {
  display: table;
}
*/

/* Stänger av animationer när minskad rörelse är valt */
@media (prefers-reduced-motion: reduce) {
  *,
  *:after,
  *:before {
    animation-duration: 0s !important;
    transition: none !important;
  }
}

/* Korrigering för scroll.js */
.lp-scroll-top-marker.lp-user-hidden {
  left: 0;
  top: 0;
}

