.dfsc img{
	max-width:100%;
	height:auto;
	display:block;
}

.dfsc-meta{
	display:flex;
	align-items:center;
	gap:.4rem;
	margin:.75rem 0;
}

.dfsc-favicon{
	width:18px;
	height:18px;
	border-radius:50%;
}

.dfsc-fallback{
	width:18px;
	height:18px;
	border-radius:50%;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-size:10px;
	font-weight:700;
	background:#ddd;
}

.dfsc-source a{
	text-decoration:none;
}

/* DF Source Cards – grid */

.dfsc-grid .et_pb_column{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	column-gap:5.5%;
	row-gap:40px;
}

.dfsc-grid .et_pb_column > .et_pb_module{
	margin-bottom:0;
}


/* Startsida – visa endast de 12 första korten */

/* Visa alla poster på Aktuellt.
   CTA-kortet är dolt som standard. */

.dfsc-more{
    display:none;
}

/* Startsidan: dölj poster från och med nummer 12 */

.dfsc-home .dfsc-grid .et_pb_column > .et_pb_module:nth-child(n+12){
    display:none;
}

/* ...men visa alltid CTA-kortet på startsidan,
   oavsett var det ligger i den globala listan. */

/*.dfsc-home .dfsc-grid .et_pb_column > .dfsc-more{
    display:block !important;
}*/

/* Tablet */

@media (max-width:1280px){
	.dfsc-grid .et_pb_column{
		grid-template-columns:repeat(2,minmax(0,1fr));
	}
}


/* Mobil */

@media (max-width:767px){
	.dfsc-grid .et_pb_column{
		grid-template-columns:1fr;
	}
}

/* Divi fallback – remove empty paragraph before Source Card */

.dfsc-grid .et_pb_text_inner > p:has(+ .dfsc){
    display:none;
}

/* mer */

.dfsc-home .dfsc-more{
    display:flex !important;
    aspect-ratio:1200 / 630;
    background:#f3f8fb;
    align-items:center;
    justify-content:center;
}

.dfsc-more .et_pb_text_inner{
    width:100%;
    text-align:center;
}

.dfsc-more p{
    margin:0;
}