/* ===== Artikel-liste – frontend ===== */

/* Nulstil tema-styling hårdt, så listen ser ens ud i alle temaer */
ul.al-liste,
.entry-content ul.al-liste {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.al-liste .al-item,
.entry-content .al-liste .al-item {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 !important;
	padding: 14px 0 !important;
}

.al-liste .al-item::before,
.al-liste .al-item::marker {
	content: none;
}

.al-liste .al-item + .al-item {
	border-top: 1px solid #e9ecf1;
}

/* ===== To kolonner ===== */

.al-liste.al-cols-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 40px;
	row-gap: 0;
}

/* I grid giver naboreglen ikke mening – styr skillelinjer pr. række i stedet */
.al-liste.al-cols-2 .al-item + .al-item {
	border-top: 0;
}

.al-liste.al-cols-2 .al-item {
	border-top: 1px solid #e9ecf1;
}

/* Første række (de to øverste) uden linje */
.al-liste.al-cols-2 .al-item:nth-child(-n + 2) {
	border-top: 0;
}

/* Kollaps til én kolonne på smalle skærme */
@media ( max-width: 640px ) {
	.al-liste.al-cols-2 {
		grid-template-columns: 1fr;
		column-gap: 0;
	}
	.al-liste.al-cols-2 .al-item:nth-child( 2 ) {
		border-top: 1px solid #e9ecf1;
	}
}

/* Thumbnail */
.al-liste .al-thumb {
	flex: 0 0 112px;
	display: block;
	line-height: 0;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.al-liste .al-thumb img {
	width: 112px;
	height: 70px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	margin: 0 !important;
}

/* Tekst */
.al-liste .al-tekst {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Titel – ingen understregning, ingen tema-blå */
.al-liste a.al-titel,
.al-liste a.al-titel:visited {
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.35;
	color: #1f2733;
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background: none !important;
}

.al-liste a.al-titel:hover,
.al-liste a.al-titel:focus {
	color: #000;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

/* Meta-linje */
.al-liste .al-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 0.82rem;
	line-height: 1;
}

/* Kategori – diskret label i stedet for farvet link */
.al-liste a.al-kategori,
.al-liste a.al-kategori:visited {
	color: #5a6472;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background: none !important;
}

.al-liste a.al-kategori:hover,
.al-liste a.al-kategori:focus {
	color: #1f2733;
	text-decoration: none !important;
}

.al-liste .al-dato {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #8a93a1;
	font-weight: 400;
}

.al-liste .al-ur {
	color: #9aa3b0;
	width: 13px;
	height: 13px;
}

/* Mobil */
@media ( max-width: 480px ) {
	.al-liste .al-item {
		gap: 12px;
	}
	.al-liste .al-thumb {
		flex-basis: 88px;
	}
	.al-liste .al-thumb img {
		width: 88px;
		height: 58px;
	}
	.al-liste a.al-titel {
		font-size: 0.95rem;
	}
}

/* ===== Editor: liste over valgte artikler ===== */

.al-valgte {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.al-valgt {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 6px 0;
	border-bottom: 1px solid #e5e7eb;
}

.al-valgt-titel {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.al-hjaelp {
	color: #757575;
	font-size: 12px;
	margin-top: 8px;
}

.al-placeholder {
	background: #f0f0f1;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	padding: 16px;
	color: #50575e;
	font-size: 14px;
}
