/* ==========================================================================
   NP INVESTOR — ENKELT ARTIKEL (Fase 4)
   ========================================================================== */

/* Bred laese-container (indlaeg + sider) — tvinges centreret + fuld bredde,
   saa Astras no-sidebar-layout ikke venstre-stiller indholdet. */
.np-reading #content .ast-container {
	max-width: 1240px !important;
	margin-left: auto !important; margin-right: auto !important;
	display: block !important;
}
.np-reading #primary {
	/* Centrér via flex — immunt over for Astras .ast-article-single margin-regler */
	display: flex !important; flex-direction: column !important; align-items: center !important;
	max-width: 100% !important; width: 100% !important;
	float: none !important;
	background: transparent !important; box-shadow: none !important;
	padding: 26px 0 !important;
}

/* Subtil baggrunds-graf bag artiklen — starter lavere i venstre, samme i hoejre */
.np-reading #content { position: relative; overflow: hidden; }
.np-reading #content::before {
	content: ""; position: absolute; top: 60px; left: 0; right: 0; height: 440px;
	z-index: 0; opacity: .5; pointer-events: none;
	background: no-repeat center top / 100% 100%
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 440' preserveAspectRatio='none'%3E%3Cpath d='M0 400 L240 355 L480 372 L720 258 L960 298 L1200 165 L1440 150' fill='none' stroke='%2312a150' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Artikel som hvidt kort (over grafen) — ÉN samlet indholdsbredde, alt flugter */
.np-article {
	max-width: 920px; margin: 0 auto; position: relative; z-index: 1;
	background: var(--np-bg); border: 1px solid var(--np-line);
	border-radius: 18px; box-shadow: var(--np-shadow-sm);
	padding: 32px clamp(20px, 4vw, 40px);
}

/* "Andre laeser ogsaa" + naeste/forrige flugter med artiklen (samme bredde) */
.np-related, .np-postnav { position: relative; z-index: 1; max-width: 920px; }
.np-related .np-card-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }

/* SIDER (ikke nyheder) er bredere — aktietabeller kan ikke vaere paa 920px. */
body.page.np-reading #content .ast-container { max-width: 1560px !important; }
body.page .np-article--page { max-width: 1500px; }

.np-article__cat {
	display: inline-block; margin-bottom: 14px;
	font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
	color: var(--np-up-ink);
}
.np-article__cat:hover { color: var(--np-accent-600); }

.np-article__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.14; margin: 0 0 16px; }
.np-article__dek {
	font-size: 19px; line-height: 1.55; color: var(--np-slate-600);
	margin: 0 0 24px; font-weight: 400;
}

.np-article__figure { margin: 0 0 6px; padding: 0; background: none; border: 0; box-shadow: none; }
.np-article__img {
	width: 100%; height: auto; display: block; border-radius: 12px;
	padding: 0; border: 0; background: none; box-shadow: none;
}
.np-article__figcap {
	display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
	margin: 12px 0 4px; padding: 0; background: none; border: 0;
}
.np-article__caption { font-size: 13px; color: var(--np-slate-400); line-height: 1.45; }
.np-article__credit { font-size: 12px; color: var(--np-slate-500, var(--np-slate-400)); white-space: nowrap; margin-left: auto; }

/* Byline: forfatter til venstre, handlinger til hoejre */
.np-article__byline {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin: 22px 0 26px; padding: 16px 0;
	border-top: 1px solid var(--np-line); border-bottom: 1px solid var(--np-line);
}
.np-article__author { display: flex; align-items: center; gap: 12px; }
.np-article__avatar-link { position: relative; display: inline-block; flex: none; line-height: 0; }
.np-article__avatar-link .np-online-dot { position: absolute; right: 1px; bottom: 1px; }
.np-article__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; }
.np-article__author-info { display: flex; flex-direction: column; line-height: 1.3; }
.np-article__author-name { font-weight: 600; color: var(--np-ink); font-size: 15px; }
.np-article__author-name:hover { color: var(--np-accent); }
.np-article__author-title { font-size: 13px; color: var(--np-slate-600); }
.np-article__date { font-size: 12.5px; color: var(--np-slate-400); margin-top: 1px; }

.np-article__actions { display: flex; gap: 8px; }
.np-action {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--np-bg-soft); color: var(--np-slate-600);
	border: 1px solid var(--np-line); border-radius: 8px;
	padding: 8px 12px; font-family: var(--np-font-sans); font-size: 13px; font-weight: 500;
	cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.np-action:hover { background: var(--np-bg-alt); color: var(--np-ink); border-color: var(--np-slate-400); }
.np-action.is-copied { color: var(--np-up-ink); border-color: var(--np-up); background: var(--np-up-soft); }
.np-action svg { flex: none; }

/* Artikel-broedtekst */
.np-article__body { font-size: 18px; line-height: 1.78; color: var(--np-ink); }
.np-article__body > p:first-of-type { font-size: 19px; }
.np-article__body p { margin: 0 0 1.35em; }
.np-article__body h2 { font-size: 26px; margin: 1.6em 0 .5em; }
.np-article__body h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.np-article__body ul, .np-article__body ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.np-article__body li { margin: 0 0 .5em; }
.np-article__body img { max-width: 100%; height: auto; border-radius: 10px; }
.np-article__body figcaption { font-size: 13px; color: var(--np-slate-400); margin-top: 6px; }
.np-article__body blockquote {
	border-left: 3px solid var(--np-up); margin: 1.5em 0; padding: .2em 0 .2em 1.2em;
	color: var(--np-slate-600); font-size: 1.05em; font-style: normal;
}
.np-article__body a { color: var(--np-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Tags / naevnte emner */
.np-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.np-article__tags-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--np-slate-400); margin-right: 2px; }
.np-tag {
	font-size: 13px; color: var(--np-slate-600);
	background: var(--np-bg-soft); border: 1px solid var(--np-line);
	border-radius: 999px; padding: 5px 12px;
}
.np-tag:hover { color: var(--np-accent); border-color: var(--np-up); }

/* "Andre laeser ogsaa" */
.np-related { max-width: 920px; margin: 44px auto 0; padding-top: 34px; border-top: 1px solid var(--np-line); }
.np-related__title { text-align: center; font-size: 24px; margin: 0 0 26px; }
.np-related__title span { position: relative; padding-bottom: 10px; }
.np-related__title span::after {
	content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: 44px; height: 3px; border-radius: 2px; background: var(--np-up);
}

/* Naeste / forrige */
.np-postnav { max-width: 920px; margin: 36px auto 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.np-postnav__link {
	display: flex; flex-direction: column; gap: 6px;
	padding: 16px 18px; border: 1px solid var(--np-line); border-radius: 12px;
	background: var(--np-bg); transition: box-shadow .18s ease, border-color .18s ease;
}
.np-postnav__link:hover { box-shadow: var(--np-shadow-sm); border-color: var(--np-slate-400); }
.np-postnav__link--next { text-align: right; }
.np-postnav__dir { font-size: 12.5px; font-weight: 600; color: var(--np-up-ink); text-transform: uppercase; letter-spacing: .03em; }
.np-postnav__title { font-family: var(--np-font-display); font-weight: 600; color: var(--np-ink); line-height: 1.3; }

@media (max-width: 640px) {
	.np-article__byline { align-items: flex-start; }
	.np-postnav { grid-template-columns: 1fr; }
	.np-postnav__link--next { text-align: left; }
}

/* ==========================================================================
   AFFILIATE-CTA'er (Nordnet / Saxo)
   ========================================================================== */
.np-cta { position: relative; overflow: hidden; margin: 38px 0; border-radius: 16px; }
.np-cta__body { position: relative; z-index: 2; padding: 26px 28px; }
.np-cta__label {
	display: inline-block; font-family: var(--np-font-sans);
	font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	margin-bottom: 10px; opacity: .92;
}
.np-cta__title { font-family: var(--np-font-display); font-size: 26px; line-height: 1.2; margin: 0 0 8px; color: inherit; }
.np-cta--nordnet .np-cta__title { color: #fff; }
.np-cta--saxo .np-cta__title { color: var(--np-ink); }
.np-cta__text { font-size: 15.5px; line-height: 1.55; margin: 0 0 18px; max-width: 52ch; }
.np-cta__btn {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--np-font-sans); font-weight: 700; font-size: 16px;
	padding: 14px 26px; border-radius: 10px; text-decoration: none;
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
	transition: transform .15s ease, filter .15s ease;
}
.np-cta__btn:hover { transform: translateY(-2px); filter: brightness(1.08); text-decoration: none; }
.np-cta__trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; opacity: .85; }
.np-cta__chart {
	position: absolute; right: -8px; bottom: -6px; width: 260px; height: auto;
	z-index: 1; opacity: .5; pointer-events: none;
}

/* Nordnet — moerk gradient + teal-graf + blaa knap */
.np-cta--nordnet { background: linear-gradient(135deg, #12161b 0%, #0c2b2a 100%); color: #fff; }
.np-cta--nordnet .np-cta__label { color: #2fe0cf; }
.np-cta--nordnet .np-cta__text { color: rgba(255,255,255,.8); }
.np-cta--nordnet .np-cta__btn { background: #4460f1; color: #fff; }
.np-cta--nordnet .np-cta__chart path { stroke: #2fe0cf; }

/* Saxo — lys blaa gradient */
.np-cta--saxo { background: linear-gradient(135deg, #eef2ff 0%, #dfe8ff 100%); color: var(--np-ink); border: 1px solid #d3ddff; }
.np-cta--saxo .np-cta__label { color: #1442f0; }
.np-cta--saxo .np-cta__text { color: var(--np-slate-600); }
.np-cta--saxo .np-cta__btn { background: #1442f0; color: #fff; }
.np-cta--saxo .np-cta__chart path { stroke: #1442f0; }

/* Dobbelt "kom i gang"-blok */
.np-cta-dual {
	margin: 42px 0 8px; padding: 26px 28px;
	border: 1px solid var(--np-line); border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}
.np-cta-dual__label { color: var(--np-slate-400); }
.np-cta-dual__title { text-align: center; font-family: var(--np-font-display); font-size: 23px; margin: 4px 0 4px; }
.np-cta-dual__sub { text-align: center; color: var(--np-slate-600); font-size: 14.5px; margin: 0 0 20px; }
.np-cta-dual__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.np-cta-dual__card {
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	padding: 22px 18px; border-radius: 14px;
}
.np-cta-dual__card--nordnet { background: linear-gradient(135deg, #12161b, #0c2b2a); }
.np-cta-dual__card--saxo { background: #fff; border: 1px solid #d3ddff; }
.np-cta-dual__brand { font-family: var(--np-font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.np-cta-dual__card--nordnet .np-cta-dual__brand { color: #2fe0cf; }
.np-cta-dual__card--saxo .np-cta-dual__brand { color: #1442f0; }
.np-cta-dual__card--nordnet .np-cta__btn { background: #4460f1; color: #fff; }
.np-cta-dual__card--saxo .np-cta__btn { background: #1442f0; color: #fff; }

@media (max-width: 560px) { .np-cta-dual__grid { grid-template-columns: 1fr; } }

/* Print: rent papir-udseende */
@media print {
	.site-header, #masthead, .np-ticker, .np-related, .np-postnav,
	.np-article__actions, .np-cta, .np-cta-dual,
	.site-footer, footer, .ast-scroll-to-top-wrapper { display: none !important; }
	.np-article { max-width: 100%; }
	.np-article__body { font-size: 12pt; color: #000; }
	.np-article__img { border-radius: 0; }
}
