/* ==========================================================================
   NPinvestor Loans — Top laan-mæglere (frontend)
   Matcher NP Investor-designsystemet. Alle vaerdier scoped under .nploan-list
   saa intet laekker ud i temaet. Falder tilbage til hex hvis temaets
   CSS-variabler ikke er tilgaengelige.
   ========================================================================== */

.nploan-list {
	--nl-navy:   var(--np-ink, #0f2643);
	--nl-navy-2: var(--np-navy-700, #0f2643);
	--nl-green:  var(--np-accent, #12a150);
	--nl-green-2:var(--np-accent-600, #0e8a44);
	--nl-muted:  var(--np-slate-600, #4b5a70);
	--nl-line:   var(--np-line, #e3e9f1);
	--nl-bg:     var(--np-bg, #ffffff);
	--nl-soft:   var(--np-bg-soft, #f5f7fa);
	--nl-font-body:    var(--np-font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	--nl-font-display: var(--np-font-display, "Space Grotesk", var(--nl-font-body));
	--nl-font-mono:    var(--np-font-mono, "IBM Plex Mono", ui-monospace, Menlo, monospace);

	margin: 2rem 0;
	font-family: var(--nl-font-body);
	color: var(--nl-navy);
}

/* --- Hoved --- */
.nploan-head {
	position: relative;
	margin-bottom: 1.1rem;
}
.nploan-ad {
	display: inline-block;
	font-family: var(--nl-font-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nl-muted);
	background: var(--nl-soft);
	border: 1px solid var(--nl-line);
	border-radius: 6px;
	padding: 2px 8px;
	margin-bottom: .6rem;
}
.nploan-title {
	font-family: var(--nl-font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--nl-navy);
	font-size: 1.6rem;
	line-height: 1.2;
	margin: .1rem 0 .25rem;
}
.nploan-sub {
	color: var(--nl-muted);
	font-size: .98rem;
	margin: 0;
	max-width: 60ch;
}

/* --- Kort --- */
.nploan-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.nploan-card {
	display: grid;
	grid-template-columns: 48px minmax(150px, 190px) 1fr auto;
	align-items: center;
	gap: 18px;
	background: var(--nl-bg);
	border: 1px solid var(--nl-line);
	border-radius: 14px;
	padding: 16px 18px;
	box-shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 1px 3px rgba(15, 27, 45, .06);
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.nploan-card:hover {
	box-shadow: 0 6px 18px rgba(15, 27, 45, .09);
	border-color: #d5deec;
	transform: translateY(-1px);
}

/* Rang-tal (mono) */
.nploan-rank {
	font-family: var(--nl-font-mono);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--nl-navy);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nl-soft);
	border: 1px solid var(--nl-line);
	border-radius: 10px;
}

/* Brand */
.nploan-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.nploan-logo {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	border: 1px solid var(--nl-line);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.nploan-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}
.nploan-name {
	font-family: var(--nl-font-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	color: var(--nl-navy);
	line-height: 1.2;
}

/* Body: pros + desc */
.nploan-body { min-width: 0; }
.nploan-pros {
	list-style: none;
	margin: 0 0 .35rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}
.nploan-pros li {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: .9rem;
	color: var(--nl-navy);
	margin: 0;
}
.nploan-check {
	color: var(--nl-green);
	font-weight: 700;
	flex: 0 0 auto;
}
.nploan-desc {
	margin: .25rem 0 0;
	color: var(--nl-muted);
	font-size: .9rem;
	line-height: 1.5;
}

/* CTA */
.nploan-action {
	display: flex;
	justify-content: flex-end;
}
.nploan-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--nl-green);
	color: #fff !important;
	font-family: var(--nl-font-body);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none !important;
	padding: 11px 20px;
	border-radius: 10px;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(14, 138, 68, .25);
	transition: background .15s ease, transform .15s ease;
}
.nploan-cta:hover {
	background: var(--nl-green-2);
	transform: translateY(-1px);
	color: #fff !important;
}

/* --- Responsivt: stack paa mobil --- */
@media (max-width: 640px) {
	.nploan-card {
		grid-template-columns: 40px 1fr;
		grid-template-areas:
			"rank brand"
			"body body"
			"cta  cta";
		gap: 10px 12px;
		padding: 14px;
	}
	.nploan-rank  { grid-area: rank; width: 34px; height: 34px; font-size: 1rem; }
	.nploan-brand { grid-area: brand; }
	.nploan-body  { grid-area: body; }
	.nploan-action{ grid-area: cta; justify-content: stretch; }
	.nploan-cta   { width: 100%; justify-content: center; padding: 12px 18px; }
	.nploan-title { font-size: 1.35rem; }
}
