/* Custom styles for the news search */
.custom-news-search {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
}

.custom-news-search h1 {
    font-size: 24px;
    color: #333;
}

.custom-news-search form {
    margin-bottom: 20px;
}

.custom-news-search ul {
    list-style-type: none;
    padding: 0;
}

.custom-news-search ul li {
    margin-bottom: 10px;
}

/* read mere tilfojet / skjult */
.read-more-news-link {
	display: none;
}

.news.news-custom .read-more-news-link {
  display: inline-block;
  margin-top: 8px;
  color: #0c2d83;               
  font-weight: 600;
  text-decoration: none;
}

.news.news-custom .read-more-news-link:hover {
  text-decoration: underline;
}
/*End of read mere */

.f3-widget-paginator {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.f3-widget-paginator li {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    border-radius: 4px;
}

.f3-widget-paginator li a {
    text-decoration: none;
    color: #0c2d83;
}

.f3-widget-paginator li.current {
    background: #0c2d83;
    color: white;
    font-weight: bold;
}

.f3-widget-paginator li.next a {
    font-weight: bold;
}

/* Responsive */
@media (max-width: 400px) {
    .f3-widget-paginator {
        overflow-x: auto;
        white-space: nowrap;
    }

    .f3-widget-paginator li {
        display: inline-block;
    }
}

/**************************************/
/* Default styles for news extension */
/**************************************/
.news .clear {
	clear: both;
}

.news .nav ul {
	float: left;
	display: inline;
	margin: 0;
}

.news .nav li {
	float: left;
}

.news .nav a {
	float: left;
	display: block;
}

.news .nav:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.news .news-search-result .news-article {
	padding-bottom: 15px;
	margin-bottom: 15px;
}

.news .news-search-result .news-article:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
}

.news .news-search-result .news-article:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.news .news-search-result .news-article .news-img-wrap {
	float: left;
	margin: 3px 12px 5px 0;
	background: #fff;
}

.news .news-search-result .news-article .news-img-wrap a {
	display: block;
	float: left;
}

.news .news-search-result .news-article .news-img-wrap img {
	float: left;
	height: auto;
	width: auto;
}

.news .news-search-result .news-article .news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 450px;
    max-width: 450px;
    min-height: 300px;
    max-height: 300px;
    display: block;
}

.news .news-search-result .news-article .news-teaser-text {
	margin: 0 0 10px 0;
}

.news .news-search-result .news-article h3 {
	margin-bottom: 0;
}

.news .news-search-result .news-footer {
	clear: both;
	padding: 10px 0 0 0;
	border-top: 1px solid #eee;
	margin-top: 15px;
	color: #888;
}

.news .news-search-result .news-footer p {
	line-height: 1em;
}

.news .news-search-result .news-footer span {
	display: inline-block;
	padding-right: 8px;
	margin-right: 8px;
	border-right: 1px solid #ddd;
}

.news .news-search-result .news-footer span:last-child {
	border-right: 0;
}

.news .news-search-result .news-footer .news-category a {
	text-transform: uppercase;
}

.news .news-search-result .no-news-found {
	color: #DB0202;
	font-style: italic;
}

.news .page-navigation p {
	float: left;
}

.news .page-navigation ul {
	float: right;
}

.news .page-navigation ul li {
	float: left;
	display: block;
	padding: 0 2px;
	background: none;
}

.news-list {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.news-list-date,
.news-teaser-text {
	display: inline;
}

.news .page-navigation ul li a {
	display: block;
}

/* Category menu view */
.news-category-view ul li {
	padding: 5px 8px;
}

.news-category-view ul li li {
	padding: 2px 8px 2px 12px;
}

.news-category-view > ul > li:nth-child(even) {
	background: #f9f9f9;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.news-category-view .category-desc {
	padding-left: 10px;
	margin-left: 10px;
	border-left: 1px solid #ddd;
}

/* Single article view */
.news-single .news-footer {
	margin-bottom: 20px;
	margin-top: 5px;
	padding: 10px 0 0 0;
	border-bottom: 0;
	border-top: 1px solid #eee;
}

.news-single .news-article .news-img-wrap {
	float: right;
	width: 282px;
	margin: 0 0 0 25px;
}

.news-single .news-article .news-img-wrap img {
	float: none;
}

.news-detail-article .news-img-wrap {
	margin-top: 30px;
}

.news-detail-article .header {
	margin-bottom: 40px;
}

.news-single .teaser-text {
	font-size: 15px;
	color: #888;
}

.news-single .news-detail-article .header h1 { 
  margin-top: 1.75rem; 
}

.news-text-wrap {
	margin-bottom: 10px;
}

.news-img-caption {
	color: #888;
}

/* Related news + files */
.news-related-wrap {
	display: table;
	margin-top: 20px;
	width: 100%;
}

.news-related {
	width: 50%;
	padding: 15px;
	border: 1px solid #eee;
	display: table-cell;
}

.news-related ul li {
	line-height: 1em;
	margin-bottom: 12px;
}

.news-related ul li span {
	border-right: 1px solid #DDDDDD;
	display: inline-block;
	margin-right: 8px;
	padding-right: 8px;
	color: #888;
}

.news-related ul li span:last-child {
	border-right: 0;
	padding-right: 0;
}

.news-related h4 {
	margin-bottom: 10px;
}

.news-related-files ul li {
	margin-bottom: 20px;
}

.news-related-files .news-related-files-link .jpg {
	background-position: 0 0;
}

.news-clear {
	clear: both;
}

/* Styling for the frontpage view - list view */
.news .news-list-view {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  	padding: 0 0 3rem 0;
	max-width: 100%;
    position: relative;
    margin: 0 auto;
    z-index: 1;
}

/* Overwrite style for kommentar */
.news-kommentar-view .news-item-kommentar .remarkText {
	color: #0097a7;
}

.full-width .frame .remark-banner {
	height: 48px;
}

/* Kommentar style */
.news-kommentar {
	width: 100%;
}

.kommentar-width {
	width: 100%;
	max-width: 1421px;
}

.news-item-kommentar .remarkText h5::before {
    content: "Meteorologens kommentar: ";
	color: white;
}

.news .news-list-view::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 100vw; 
    height: 100%; 
    background-color: #f4f4f4; 
    z-index: -1;
	max-width: 100%;
}
.news-custom .news-list-view::before {
	content: "";
	position: static;
	transform: none;
	width: 100px;
	height: 5px;
	background-color: #9b373700;
}

.news-kommentar .news-kommentar-view::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 100vw; 
    height: 100%; 
    background-color: #f000; 
    z-index: -1;
	max-width: 100%;
}

/* Nyheder style */

.news .news-list-view .news-article {
    width: 32%;
    margin: 1%;
    box-shadow: 0 5px 15px rgba(12,43,130,.08);
    transition: 0.3s;
    position: relative;
	  cursor: pointer;
	  background: #fff;
    max-width: 398px;
}

.news .news-list-view .news-article:hover {
    box-shadow: 0 5px 13px rgba(12,43,130,.17);
}

.news .news-list-view .news-img-wrap {
    width: 100%;
    position: relative;
}

.news .news-list-view .news-img-wrap img {
	max-width: 398px;
	max-height: 238px;
	width: 100%;
	height: auto;
	display: block;
}

.news .news-list-view .news-header {
    padding: 5px 20px 0 20px;
    box-sizing: border-box;
    text-align: left;
	  min-height: 85px;
}

.news-list-date {
	display: block;
	margin-bottom: 0.25em; 
	font-style: italic; 
}
.news-list {
	display: block; 
}

.news .news-list-view .news-list-category {
  display: none;
}

.news .news-list-view .news-footer {
    padding: 5px 20px 5px 20px;
}

/*Section for frontpage full box click*/
.news .news-list-view .news-article::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.news .news-list-view .news-article .news-more {
    display: none;
}

/* Tag styling */
/*.taglist { 
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-content: space-around;
	align-items: center; 
}
section {
	max-width: 80rem;
	margin: 0 auto;
}

.taglist .form-check { 
	padding: 0.5em;
	outline: 1px solid #0c2d8370;
	margin: 0.25em;
	background-color: #fff; 
}

@media(hover: hover) and (pointer: fine) {
	.taglist .form-check:hover { 
		background-color: #f8f8f8;
	}
}
				
.taglist .form-check input { 
	display: none; 
}

.taglist .form-check input + label { 
	cursor: pointer;
	color: #0c2d83;
	user-select: none; 
}

.taglist .form-check input + label:before { 
	content: '\u2001'; 
}
.taglist .form-check input:checked + label { 
	font-weight:bold; 
}
.taglist .form-check input:checked + label:before{ 
	content:'✔'; 
}

.taglist {
    list-style: none;
    padding: 20px;
}
.taglist .form-check {
  display: inline;
}
.taglist .form-check label {
    display: inline-block;
    background-color: rgba(255, 255, 255, .9);
    border: 2px solid rgba(139, 139, 139, .3);
    color: #adadad;
    border-radius: 25px;
    white-space: nowrap;
    margin: 3px 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all .2s;
}

.taglist .form-check label {
    padding: 8px 12px;
    cursor: pointer;
}

.taglist .form-check label::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    padding: 2px 6px 2px 2px;
    content: "\f067";
    transition: transform .3s ease-in-out;
}

.taglist .form-check input[type="checkbox"]:checked + label::before {
    content: "\f00c";
    transform: rotate(-360deg);
    transition: transform .3s ease-in-out;
}

.taglist .form-check input[type="checkbox"]:checked + label {
    border: 2px solid #1bdbf8;
    background-color: #12bbd4;
    color: #fff;
    transition: all .2s;
}

.taglist .form-check input[type="checkbox"] {
  display: absolute;
}
.taglist .form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}
.taglist .form-check input[type="checkbox"]:focus + label {
  border: 2px solid #e9a1ff;
}
*/
/* Add custom tag style  */
/*.taglist { 
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-content: space-around;
	align-items: center; 
}

.taglist .form-check {
	padding: 0.1em 0.1em 0.1em 0.1em;
	margin: 0.1em 0.1em 0.1em 0.1em;
	outline: 0;
	background-color: transparent;
}

.form-check-label {
	display: inline-flex;
	color: #0c2d83;
	font-size: 1rem;
	font-weight: 400;
	align-items: center;
	line-height: 1;
	border-radius: 5px;
	padding: 5px 7px 5px 7px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.form-check-label span {
	position: relative;
	display: flex;
	align-items: center;
	border: 1px solid #0c2d83;
	padding: 5px;
	border-radius: 5px;
}
.form-check-label input[type=checkbox] {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.form-check-label input[type="checkbox"]:checked + span::after {
	background-color: #0c2d83;
}
.form-check-label input[type="checkbox"]:checked + span {
	color: #0c2d83;
}
.form-check-label input[type=checkbox]:focus + span::before {
  border-color: #0c2d83;
}
.form-check-label input[type=checkbox]:disabled {
  opacity: 0.85;
}
.form-check-label input[type=checkbox]:disabled + span {
  color: #9a9a88;
}
.form-check-label span::before {
	content: "";
	display: inline-block;
	border-radius: 3px;
	margin-right: 8px;
	height: 16px;
	width: 16px;
	border: 1px solid #0c2d83;
}

.form-group:first-of-type {
    position: relative;
}

.form-group:first-of-type  label {
    display: none;
}*/
/* Custom tag style ended */

#news-subject {
    padding-left: 35px;
}

.news .news-search-form .form-group:nth-of-type(2), .news .news-search-form .form-group:nth-of-type(3) {
	flex: 1;
	min-width: 150px;
	margin: 0px 30px 10px 30px;
	position: absolute;
}

.news .news-search-form .form-group {
  margin: 0 30px 50px 0;
}

.news-search-form form fieldset input {
  margin-top: 0px;
}

/* Image control part */
.article-block-img { 
  aspect-ratio: 392 / 240; 
  overflow: hidden; 
}
.article-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-block-preview {
	min-height: 446px;
}
/* Image control ended */

.news.news-custom .news-search-result .columns.article-block {
  width: 100%;
}

.news.news-custom .news-search-result .news-card-description {
  max-height: 100px;
  overflow: hidden;
}

.news.news-custom .news-search-result .article-block-preview:hover, .news.news-custom .news-search-result .article-block-preview {
  box-shadow: none;
}

.news.news-custom .news-search-result .article-block-text {
	max-height: 130px;
	overflow: visible;
}

.news.news-custom .news-search-result .article-block {
  padding: 0px 0px;
  background: transparent;
}

.news.news-custom .news-search-result .count-msg {
  padding-bottom: 12px;
}

.news.news-custom .news-search-result .article-block-img {
  flex: 0 0 auto;
  width: 392px;
  height: 240px;
  margin: 0;
}

.news.news-custom .news-search-result .f3-widget-paginator {
  clear: both;
  justify-content: center;
  padding: 20px 0 0;
  border-top: 1px solid #ddd;
}

.news.news-custom .news-search-result .article-block-preview {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-height: auto;
  padding: 0;
  background: transparent;
}

.news .article-card-link,
.news .article-card-link:hover {
  text-decoration: none;
}

.news.news-custom .news-search-result .article-block-title:hover {
  text-decoration: underline;
}

/* Searchform style adjust 

Reset old overrides */
.news .news-search-form { /*! border: 0; */ /*! min-height: auto; */ /*! padding: 0; */ }
.news .news-search-form form { display: block; }
.news .news-search-form .form-group,
.news .news-search-form .form-group:nth-child(1),
.news .news-search-form .form-group:nth-child(2),
.news .news-search-form .form-group:nth-child(3) { position: static; margin: 0; }
.news .news-search-form form input[type="submit"] { position: static; width: auto; }

.news-search-dmi {
  --nsf-border: none;
  --nsf-focus: #0c2d83;
  --nsf-text: #1d273b;
  --nsf-muted: #6b7280;
  padding: 16px;
}

body .news .news-search-form {
	margin: 0;
	position: relative;
	border: none !important;
	min-height: 20px !important;
	padding: 0 0 0 0;
}

.nsf-fieldset {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  align-items: center;
  margin: 0;
  border: 0;
  padding: 0;
  max-width: 900px;
}

.sr-only {
  position: absolute;
  width: 1px; 
	height: 1px; 
	padding: 0; 
	margin: -1px; 
	overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.nsf-field { position: relative; z-index: 0; }

.nsf-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid var(--nsf-border);
  padding: 0 14px;
  font-size: 16px;
  color: var(--nsf-text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 5px 15px rgba(12,43,130,.08);
}

.nsf-input::placeholder { color: var(--nsf-muted); }

.nsf-field:first-child::before { display: none; }

.nsf-input:focus {
  outline: 3px solid transparent;
  border-color: #0c2d83;
  box-shadow: 0 0 0 3px rgba(12,45,131,.2);
}

.nsf-field--search .nsf-input { padding-right: 46px; }
.nsf-iconbtn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 500px;
  background: transparent;
  cursor: pointer;
}
.nsf-iconbtn::before {
  content: "\f11a";
  font-family: DMI;
  font-size: 18px;
  line-height: 1;
  color: var(--nsf-muted);
}
.nsf-iconbtn:focus-visible {
  outline: 3px solid transparent;
  box-shadow: 0 0 0 3px rgba(12,45,131,.25);
}

.nsf-tags { margin-top: 10px; }
.nsf-tags > summary {
  cursor: pointer;
  font-weight: 600;
  color: black;
  list-style: none;
}
.nsf-tags > summary::-webkit-details-marker { display: none; }

.nsf-taglist {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}

.nsf-chip { display: inline-flex; }
.nsf-chip-label {
  display: inline-flex; align-items: center; cursor: pointer; user-select: none;
}
.nsf-chip-input {
  position: absolute; opacity: 0; pointer-events: none;
}
.nsf-chip-text {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid #0c2d83;
  border-radius: 9999px;
  color: black;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.nsf-chip-input:focus + .nsf-chip-text { box-shadow: 0 0 0 3px rgba(12,45,131,.2); }
.nsf-chip-input:checked + .nsf-chip-text {
  background: #eef2ff;
  border-color: rgba(12,45,131,.35);
  color: #0c2d83;
}

/* overlay “start dato / slut dato” text for datofelter */
.nsf-dateph {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nsf-muted);
  pointer-events: none;
  transition: opacity .15s ease;
}
.nsf-field[data-has-value="true"] .nsf-dateph,
.nsf-field:focus-within .nsf-dateph {
  opacity: 0;
}
.nsf-field[data-has-value="false"] .nsf-input-date { color: #fff; }
.nsf-field:focus-within .nsf-input-date,
.nsf-field[data-has-value="true"] .nsf-input-date { color: #000; }
.nsf-input-date { padding-right: 40px; appearance: none; -webkit-appearance: none; -moz-appearance: textfield; background-image: none !important; }
.nsf-field::before {
  content: "";
  position: absolute;
  right: 29px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 28px;
  background: white;
  z-index: 2;
  pointer-events: none;
}
.nsf-field[data-has-value="false"]::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("/fileadmin/assets/Images/Icons/edit_calendar_24dp_6C727F_FILL0_wght0_GRAD0_opsz24.svg");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 3;
}
.nsf-field[data-has-value="true"]::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("/fileadmin/assets/Images/Icons/calendar_today_24dp_6C727F_FILL0_wght0_GRAD0_opsz24.svg");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 3;
}
@supports selector(:has(*)) {
  .nsf-field:not(:has(.nsf-input-date))::after { content: none !important; }
}
.nsf-input-date::-webkit-calendar-picker-indicator,
.nsf-input-date::-webkit-clear-button,
.nsf-input-date::-webkit-inner-spin-button,
.nsf-input-date::-webkit-outer-spin-button,
.nsf-input-date::-webkit-textfield-decoration-container { display: none !important; opacity: 0 !important; pointer-events: none !important; -webkit-appearance: none !important; }
.nsf-input-date::-moz-calendar-picker-indicator { display: none !important; opacity: 0 !important; pointer-events: none !important; }
.nsf-input-date::-ms-clear,
.nsf-input-date::-ms-reveal { display: none !important; }

@media (max-width: 1024px) {
  .nsf-fieldset {
    grid-template-columns: 1fr 1fr;
  }
  .nsf-field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nsf-fieldset {
    grid-template-columns: 1fr;
  }
}
/* search form over */

@media print,screen and (min-width:48em) {
  .news-single .news-article-section {
    background-color:#fff;
    padding:3rem;
    margin:5px auto 20px auto;
  }
}

@media (max-width: 708px) {
  .news.news-custom .news-search-result .article-block { flex-direction: column; }
  .news.news-custom .news-search-result .article-block-img { width: 100%; height: auto; max-height: 240px; }
  .news.news-custom .news-search-result .article-block-preview { display: block; max-height: 600px;
}

@media (min-width: 992px) {
  .form-check-label {
    font-size: 1rem;
  }
}
/* Responsive styles */
@media (max-width: 1402px) {
    .news .news-list-view .news-article {
		width: 30%;
		margin: 10px;
	}
	.news .news-list-view .news-teaser-text p {
		top: 60px;
	}
	.news .news-list-view .news-header {
		top: 218px;
	}
}

@media (max-width: 1320px) {
	.news .news-list-view .news-header {
		top: 218px;
	}
}

@media (max-width: 600px) {
    .news .news-search-form form {
        flex-direction: column;
    }

    .news .news-search-form .form-group {
        min-width: auto;
        width: 100%;
    }
}