* {
    box-sizing: border-box;
}

body {
	background-color: var(--backgroundcolour);
}

@keyframes blinking {
     from {opacity:1;}
     to {opacity:0.2;}
}

p, div {
	color: var(--maincolour);
}

.text-fa-main {
	color: var(--maincolour);
}

.text-fa-second {
	color: var(--secondcolour);
}

.bg-fa-main {
	background-color: var(--maincolour);
}

.bg-fa-second {
	background-color: var(--secondcolour);
}

.bg-fa-back {
	background-color: var(--backgroundcolour);
}

.bg-fa-content {
	background-color: var(--contentbackgroundcolour);
}

.border-fa-second {
	border-color: var(--secondcolour)!important;
}

.fs-fa-7 {
	font-size: 0.76em;
}

.fs-fa-8 {
	font-size: 0.5rem;
}

.fs-fa-9 {
	font-size: 0.25rem;
}

.overflow-ellipsis {
	text-overflow: ellipsis; 
	white-space: nowrap; 
}

div.news-teaser-rubrik {
	z-index:2;
}

div.teaser {
	margin-top: -0.5rem;
	margin-left: 0.75rem;
	margin-bottom: 0.5rem;
	margin-right: 0.5rem;
}

div.news-teaser {
	overflow: hidden;
	max-height: 15.5rem; 
}
div.readmore {
	z-index:2;
	margin-top: -0.75rem;
	margin-right: 0.5rem;
	margin-left: 0.75rem;
	margin-bottom: 1rem;
	background-color: var(--contentbackgroundcolour);
}

div.news-readmore {
	z-index:2;
	margin-top: -9.5rem;
	min-height: 9rem;
	background-color: transparent;
	background-image: linear-gradient(150deg, transparent, var(--contentbackgroundcolour) 75%);
}

div.rubrik-header {
	background-image: linear-gradient(to right, var(--secondcolour), var(--secondcolour), var(--backgroundcolour) );
}

.fv-small {
	font-variant: small-caps;
}

/* ==========================================
   BOTTOM-RIGHT ALIGNMENT (.wrap-bottom-end)
   ========================================== */
.wrap-bottom-end {
  display: grid;
  grid-template-columns: 1fr auto; /* Text on left, float column on right */
}

.wrap-bottom-end > * {
  grid-column: 1 / -1;
}

.wrap-bottom-end > .spacer {
  grid-column: 2;
  grid-row: 1 / -1;
}

.wrap-bottom-end > .float-bottom-end {
  grid-column: 2;
  grid-row: -1;
  float: right;
  shape-outside: inset(0);
}

/* ==========================================
   BOTTOM-LEFT ALIGNMENT (.wrap-bottom-start)
   ========================================== */
.wrap-bottom-start {
  display: grid;
  grid-template-columns: auto 1fr; /* Float column on left, text on right */
}

/* Ensure all regular children span across the layout */
.wrap-bottom-start > * {
  grid-column: 1 / -1;
}

/* Position the spacer in the first (leftmost) column */
.wrap-bottom-start > .spacer {
  grid-column: 1;
  grid-row: 1 / -1;
}

/* Position the figure at the bottom row of the first column */
.wrap-bottom-start > .float-bottom-start {
  grid-column: 1;
  grid-row: -1;
  float: left;
  shape-outside: inset(0);
}


.ani-blinking {
    animation-name: blinking;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: linear;
}

a:link         { text-decoration: none; cursor:pointer; }
a:visited      { text-decoration: none; cursor:pointer; }
a:active       { text-decoration: none; cursor:pointer; }
a:hover        { text-decoration: none; cursor:pointer; }
a:focus 	 { text-decoration: none; cursor:pointer; }
