/*
=========================================================
BASE CSS
=========================================================
 * Innehåller grundläggande styling och förbättringar för
 * webbplatsen
 * 
 * Copyright (C) Limepark AB. Upprättad 2016.
=========================================================*/

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

html {
  font-size: 62.5%;

  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a,
button,
span {
  word-break: break-word;

  overflow-wrap: break-word;
}

table p,
table a,
table li,
.lp-calendar__result span,
.lp-calendar__result h2,
.lp-calendar__result a,
.lp-headerlinks a span {
  word-break: initial;

  overflow-wrap: initial;
}

/* Fix för ankarlänkar med fixed sidhuvud */

.lp-wrapper *:target:before {
  content: '';
  display: block;
  height: 10rem;
  margin-top: -10rem;
  position: relative;
  width: 0;
  z-index: -10;
}

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

/* Fix av IE-bugg med understrukna pseudoelement */

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 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: 10px;
}

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

.lp-single-box {
  border: 1px solid #eee;
  box-shadow: 0 0 20px 0 #eee;
  margin: 100px auto 0;
  max-width: 500px;
  padding: 20px;
}

iframe {
  border: none; 
}

/* Grid i dokumentationen */

.lp-grid-example .sv-text-portlet {
  background: #eee;
  margin: 0 0 20px;
  padding: 20px 5px 5px;
}

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

.sv-image-portlet img + p {
  box-sizing: border-box;
  color: #000;
  font-family: 'open sans', arial, helvetica, sans-serif;
  font-size: 1.3rem;
  font-style: normal;
  font-weight: bold;
  line-height: 150%;
  margin: 0.8rem 0 2.5rem;
  padding: 0 2px;
}
