/* --- MAIN START ------------------------------------ */
*, *:before, *:after { 
  box-sizing: border-box; 
}

html:not(.sv-edit-mode) {
  scroll-behavior: smooth;
}

html, body {
   min-height: 100dvh;
   height: 100%;
   overflow-x: clip;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body > div.sv-layout {
   display: flex; 
   flex-direction: column; 
   min-height: 100dvh;
}

.sv-fluid-grid {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: content-box;
}


[id] {
  scroll-margin-top: 5rem;
}

@media(min-width: 990px) {
   .sv-fluid-grid {
      padding-left: 2rem;
      padding-right: 2rem;
   }
}
@media(min-width: 769px) {
   .sv-grid-12-kolumner,
   .sv-grid-12-kolumner-bred,
   .sv-grid-12-kolumner-smal {
      padding: 0 2rem;
      box-sizing: border-box;
   }
}


/*--------------------------------------------------------
Screen-readers only
Hide an element to all devices except screen readers 
with .sr-only. Combine .sr-only with .sr-only-focusable 
to show the element again when it’s focused 
(e.g. by a keyboard-only user).
------------------------------------------------------ */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	white-space: normal;
}
.har-main-keyboard-only a {
  color: #000 !important;
}
.har-main-keyboard-only a:focus {
   position: absolute; 
   top: .375rem;
   left: .375rem;
   z-index: 50000; 
   background: #fff;
   padding: .5rem;
   box-shadow: 0 0 0 var(--env-focus-offset) var(--env-focus-inner-color);
   outline: var(--env-focus-size) solid var(--env-focus-outline-color);
   outline-offset: var(--env-focus-offset);
}

.har-main {
   flex-grow: 1;
   margin-top: 5rem;
}
.har-main img {
   border-radius: 0.5rem;
}

.har-clickable {
   cursor: pointer;
}


@media(max-width: 990px) {
   [id] {
      scroll-margin-top: 4.8125rem;
   }
   .har-main {
      margin-top: 4.8125rem;
   }   
}


/* --- PREFERS REDUCED MOTION --------------------------------------------------*/
@media screen and (prefers-reduced-motion: reduce) {
  * {
     animation: none !important;
     transition: none !important;
     scroll-behavior: auto !important;
  }
}
