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

/* stylelint-disable no-duplicate-selectors */

/*
---------------------------------------------------------
TYPOGRAFI
---------------------------------------------------------*/

.pagecontent .brodtext a,
.pagecontent .sv-archive-portlet a.brodtext,
.pagecontent .ingress a,
.pagecontent .sv-nestedlistmenu-portlet a.brodtext,
.lp-expandable-content__content p.brodtext a, 
.pagecontent .sv-text-portlet-content table.sv-standard td p a,
.pagecontent .sv-text-portlet-content table.sv-table-type-varannanradsfargad td p a {
  border-bottom: 2px solid #006b4e;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagecontent .brodtext a:hover,
.pagecontent .sv-archive-portlet a.brodtext:hover,
.pagecontent .ingress a:hover,
.pagecontent .sv-nestedlistmenu-portlet a.brodtext:hover,
.lp-expandable-content__content p.brodtext a:hover, 
.pagecontent .sv-text-portlet-content table.sv-standard td p a:hover,
.pagecontent .sv-text-portlet-content table.sv-table-type-varannanradsfargad td p a:hover {
  background: #f0efec;
}

.pagecontent .sv-nestedlistmenu-portlet li {
  display: block;
  line-height: normal;
  margin-bottom: 1rem;
}


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

html {
  font-size: 62.5%;
}


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


/* Fast textstorlek vid rotation i iPhone */
body {
  -webkit-text-size-adjust: 100%;
}

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

/* Ta bort understruket från pseudoelement i länkar */
a:before,
a:after {
  text-decoration: underline;
}

a:before,
a:after {
  text-decoration: none;
}

/** 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.15em;
  /* Allows sizing by changing the icon's font-size */
  width: 1em;
  /* Default path fill = value of the color property */

  fill: currentColor;
}

/* Fix för IE11 och mushändelser på SVG-element. */
.lp-icon,
.lp-toggler-icon {
  pointer-events: none;
}

/* 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 > .sv-portlet {
  margin-bottom: 3rem;
}

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

/* Fix för att spalterna ska ta plats även vid tom */
div[class*='sv-column-'] {
  min-height: 1px;
}

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

.pagecontent {
  clear: both;
}


/* Grid i dokumentationen */
.lp-grid-example .sv-text-portlet {
  background: #eee;
  margin: 0 0 2rem;
  padding: 2rem 0.5rem 0.5rem;
}

.lp-grid-example .sv-text-portlet .brodtext {
  color: #333;
  font-size: 1.2rem;
}


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

.lp-js .lp-clickable-area:hover a.brodtext {
  text-decoration: none;
}

/* Försöker bryta sig igenom blockerad synlighet från överliggande Sitevisionregler */


ul#flowforms-list.force-visible {  /* Hög specificitet: Rikta in på ID + klass */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;  /* Om height är begränsad */
    max-height: none !important;  /* Vanligt för dropdowns */
    overflow: visible !important;  /* För att undvika hidden overflow */
}