/* ================================================================
   WORLD NORDIC — Aurora design system
   Grön norrsken #00E0A4 · Violett #7C5CFF · Natt #070B14
   ================================================================ */
:root {
	--green: #00E0A4;
	--green-soft: #6BF0CB;
	--violet: #7C5CFF;
	--violet-soft: #A996FF;
	--aurora: linear-gradient(120deg, #00E0A4 0%, #3FB8D9 45%, #7C5CFF 100%);

	--bg: #070B14;
	--bg-soft: #0B1120;
	--surface: #111827;
	--glass: rgba(17, 24, 39, 0.62);
	--line: rgba(124, 92, 255, 0.18);
	--line-soft: rgba(255, 255, 255, 0.07);

	--text: #E8F1F5;
	--text-soft: #B4C2D3;
	--muted: #7D8BA1;

	--radius: 14px;
	--radius-lg: 22px;
	--pill: 999px;
	--shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
	--glow: 0 0 40px rgba(0, 224, 164, 0.16);

	--font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--section-py: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-soft); }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.2; color: var(--text); margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1em; color: var(--text-soft); }

.wn-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wn-narrow { max-width: 820px; }
.wn-center { text-align: center; }
.wn-grad { background: var(--aurora); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wn-accent { color: var(--green); }
.wn-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--green); color: #04110C; padding: 10px 16px; border-radius: 8px; }
.wn-skip:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.wn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-weight: 700; font-size: 1rem; color: #04110C;
	background: var(--aurora); border-radius: var(--pill); padding: 14px 30px;
	box-shadow: 0 8px 26px rgba(0, 224, 164, 0.28);
	transition: transform .2s, box-shadow .2s, filter .2s; white-space: nowrap;
}
.wn-btn:hover { color: #04110C; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 34px rgba(124, 92, 255, 0.35); }
.wn-btn-sm { padding: 9px 20px; font-size: .85rem; }
.wn-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 600; color: var(--text); border: 1.5px solid var(--line);
	border-radius: var(--pill); padding: 12px 28px; transition: all .2s; white-space: nowrap;
}
.wn-btn-ghost:hover { color: var(--green); border-color: var(--green); background: rgba(0, 224, 164, .06); }
.wn-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.wn-topbar { background: #05080F; border-bottom: 1px solid var(--line-soft); font-size: .74rem; color: var(--muted); }
.wn-topbar-inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 8px 20px; }
.wn-sep { color: rgba(124, 92, 255, .35); }

/* ---------- Header ---------- */
.wn-header { position: sticky; top: 0; z-index: 200; background: rgba(7, 11, 20, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line-soft); }
.wn-header.is-scrolled { background: rgba(7, 11, 20, .98); }
.wn-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.wn-logo { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.wn-logo:hover { color: var(--text); }
.wn-logo-mark { width: 36px; height: 36px; }
.wn-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.wn-logo-name { font-weight: 800; font-size: .95rem; color: #fff; }
.wn-logo-sub { font-size: .58rem; font-weight: 700; letter-spacing: .22em; color: var(--green); text-transform: uppercase; margin-top: 2px; }
.wn-nav-links { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.wn-nav-links a { display: block; color: var(--text-soft); font-size: .86rem; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: all .2s; }
.wn-nav-links a:hover, .wn-nav-links .current-menu-item a { color: #fff; background: rgba(255, 255, 255, .06); }
.wn-nav-cta { display: flex; align-items: center; gap: 12px; }
.wn-link-trial { font-size: .82rem; font-weight: 600; color: var(--green); }
.wn-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; }
.wn-burger span { width: 22px; height: 2px; background: var(--text-soft); border-radius: 2px; }
.wn-mobile { padding: 10px 20px 22px; border-top: 1px solid var(--line-soft); background: rgba(7, 11, 20, .98); }
.wn-mobile .wn-nav-links { flex-direction: column; margin-bottom: 14px; }
.wn-mobile .wn-btn { width: 100%; }

/* ---------- Page hero ---------- */
.wn-main { min-height: 50vh; }
.wn-page-hero { position: relative; padding: 70px 0 54px; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.wn-page-hero::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 60% 70% at 10% 0%, rgba(0, 224, 164, .14) 0%, transparent 65%),
		radial-gradient(ellipse 55% 70% at 95% 10%, rgba(124, 92, 255, .18) 0%, transparent 65%);
}
.wn-page-hero > .wn-container { position: relative; z-index: 1; }
.wn-page-hero-sm { padding: 50px 0 36px; }
.wn-page-hero p, .wn-lead { font-size: 1.08rem; max-width: 680px; }
.wn-eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); background: rgba(0, 224, 164, .08); border: 1px solid rgba(0, 224, 164, .25); border-radius: var(--pill); padding: 5px 16px; margin-bottom: 18px; }
.wn-breadcrumbs, .rank-math-breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.wn-breadcrumbs a, .rank-math-breadcrumb a { color: var(--text-soft); }
.rank-math-breadcrumb p { margin: 0; color: var(--muted); }
.wn-pillar-link { margin-top: 18px; font-size: .92rem; color: var(--text-soft); }
.wn-pillar-link a { font-weight: 700; }

/* ---------- Sections ---------- */
.wn-section { padding: var(--section-py) 0; }
.wn-section-alt { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.wn-h2-center { text-align: center; margin-bottom: 36px; }

/* ---------- Blog filter + grid ---------- */
.wn-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.wn-filter a { font-size: .84rem; font-weight: 600; color: var(--text-soft); padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--pill); transition: all .2s; }
.wn-filter a:hover, .wn-filter a.is-active { color: #04110C; background: var(--aurora); border-color: transparent; }
.wn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wn-card { background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
.wn-card:hover { transform: translateY(-5px); border-color: rgba(0, 224, 164, .35); box-shadow: var(--shadow), var(--glow); }
.wn-card-img { position: relative; display: block; aspect-ratio: 16/9; background: var(--surface); overflow: hidden; }
.wn-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.wn-card:hover .wn-card-img img { transform: scale(1.05); }
.wn-card-ph { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 100%, rgba(0, 224, 164, .35), transparent 60%), radial-gradient(ellipse at 90% 0%, rgba(124, 92, 255, .4), transparent 60%), var(--surface); }
.wn-tag { position: absolute; left: 14px; bottom: 12px; font-size: .68rem; font-weight: 700; color: #04110C; background: var(--green); border-radius: var(--pill); padding: 3px 11px; }
.wn-tag-static { position: static; display: inline-block; margin-bottom: 14px; }
.wn-tag-static:hover { color: #04110C; }
.wn-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wn-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .76rem; color: var(--muted); }
.wn-card-title { font-size: 1.05rem; margin: 2px 0 0; }
.wn-card-title a { color: var(--text); }
.wn-card:hover .wn-card-title a { color: var(--green); }
.wn-card-excerpt { font-size: .86rem; margin: 0; }
.wn-pagination { margin-top: 40px; }
.wn-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.wn-pagination .page-numbers { min-width: 42px; padding: 9px 14px; text-align: center; border: 1px solid var(--line); border-radius: 10px; color: var(--text-soft); font-weight: 600; }
.wn-pagination .page-numbers.current, .wn-pagination .page-numbers:hover { background: var(--aurora); color: #04110C; border-color: transparent; }
.wn-empty { text-align: center; padding: 40px 0; }

/* ---------- Article ---------- */
.wn-article-hero { padding-bottom: 40px; }
.wn-featured { margin: 36px auto 0; }
.wn-featured img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); }
.wn-prose { padding-top: 40px; padding-bottom: 20px; font-size: 1.04rem; }
.wn-prose h2 { margin-top: 1.8em; }
.wn-prose h3 { margin-top: 1.5em; }
.wn-prose p, .wn-prose li { color: var(--text-soft); }
.wn-prose strong { color: var(--text); }
.wn-prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 224, 164, .45); }
.wn-prose ul, .wn-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.wn-prose li { margin-bottom: .4em; }
.wn-prose img { border-radius: var(--radius); margin: 1.5em 0; }
.wn-prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 3px solid var(--green); background: var(--glass); border-radius: 0 var(--radius) var(--radius) 0; }
.wn-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92rem; display: block; overflow-x: auto; }
.wn-prose th, .wn-prose td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.wn-prose th { color: var(--text); background: rgba(124, 92, 255, .1); }
.wn-prose details { background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.wn-prose summary { cursor: pointer; font-weight: 700; color: var(--text); }
.wn-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 30px 0 10px; padding: 30px 32px; border-radius: var(--radius-lg); border: 1px solid rgba(0, 224, 164, .3); background: linear-gradient(135deg, rgba(0, 224, 164, .1), rgba(124, 92, 255, .14)); }
.wn-cta-box h2 { font-size: 1.35rem; margin-bottom: 6px; }
.wn-cta-box p { margin: 0; }

/* ---------- Footer ---------- */
.wn-footer { background: #04070D; border-top: 1px solid var(--line-soft); padding-top: 60px; margin-top: 0; }
.wn-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--line-soft); }
.wn-footer-brand p { font-size: .86rem; margin: 16px 0 18px; max-width: 320px; }
.wn-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.wn-badges span { font-size: .7rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); border-radius: 6px; padding: 4px 10px; }
.wn-footer-col h4 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.wn-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wn-footer-col a { font-size: .87rem; color: var(--text-soft); }
.wn-footer-col a:hover { color: var(--green); }
.wn-contact { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wn-contact small { display: block; font-size: .72rem; color: var(--muted); }
.wn-contact b { font-size: .86rem; color: var(--text); font-weight: 600; }
.wn-contact-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wn-wa { background: rgba(37, 211, 102, .14); }
.wn-mail { background: rgba(124, 92, 255, .14); }
.wn-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 22px; padding-bottom: 26px; }
.wn-footer-bottom p { margin: 0; font-size: .78rem; color: var(--muted); }
.wn-legal, .wn-legal ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.wn-legal a { font-size: .78rem; color: var(--muted); }
.wn-legal a:hover { color: var(--green); }
.wn-float-wa { position: fixed; right: 22px; bottom: 22px; z-index: 300; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(37, 211, 102, .4); transition: transform .2s; }
.wn-float-wa:hover { transform: scale(1.1); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.wn-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
	.wn-nav-main, .wn-link-trial { display: none; }
	.wn-burger { display: flex; }
	.wn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	:root { --section-py: 56px; }
	.wn-hide-sm { display: none; }
	.wn-grid { grid-template-columns: 1fr; }
	.wn-footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.wn-nav-cta .wn-btn-sm { display: none; }
	.wn-cta-box { padding: 24px 20px; }
	.wn-cta-box .wn-actions, .wn-cta-box .wn-btn, .wn-cta-box .wn-btn-ghost { width: 100%; }
	.wn-float-wa { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   World Nordic — artikelmall v1.2 (laddas bara på inlägg)
   ========================================================== */

/* ---------- Hero med utvald bild ---------- */
.wn-art-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: linear-gradient(135deg, #070B14, #0B1430); }
.wn-art-hero.has-img { min-height: 460px; display: flex; align-items: flex-end; }
.wn-art-hero-media { position: absolute; inset: 0; }
.wn-art-hero .wn-art-hero-img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 60%; display: block; border-radius: 0; margin: 0; }
.wn-art-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 11, 20, .97) 0%, rgba(7, 11, 20, .78) 38%, rgba(7, 11, 20, .40) 75%, rgba(7, 11, 20, .30) 100%); }
.wn-art-hero-content { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 46px; max-width: 1180px; }
.wn-art-hero h1 { max-width: 860px; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.wn-art-hero .rank-math-breadcrumb, .wn-art-hero .wn-breadcrumbs { color: var(--text-soft); }
.wn-art-hero .rank-math-breadcrumb a, .wn-art-hero .wn-breadcrumbs a { color: var(--text); }
.wn-art-meta { color: var(--text-soft); font-size: .82rem; }

/* ---------- Två kolumner ---------- */
.wn-art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 44px; padding-bottom: 60px; max-width: 1180px; align-items: start; }
.wn-art-main { min-width: 0; }
.wn-art-body { padding-top: 10px; }
.wn-art-body h2 { scroll-margin-top: 110px; }
.wn-art-body figure { margin: 1.8em 0; }
.wn-art-body figure img { width: 100%; margin: 0; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); }
.wn-art-body figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: left; }

/* ---------- Innehållsförteckning ---------- */
.wn-toc, .wn-side-toc { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.wn-toc { margin-bottom: 30px; }
.wn-toc-title { margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.wn-toc ol, .wn-side-toc ol { margin: 0; padding-left: 1.3em; }
.wn-toc li, .wn-side-toc li { margin: 0 0 7px; color: var(--muted); font-size: .92rem; }
.wn-toc a, .wn-side-toc a { color: var(--text-soft); text-decoration: none; }
.wn-toc a:hover, .wn-side-toc a:hover { color: var(--green); }

/* ---------- Sidokolumn ---------- */
.wn-art-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.wn-side-cta { border-radius: var(--radius-lg); padding: 24px; border: 1px solid rgba(0, 224, 164, .32); background: linear-gradient(160deg, rgba(0, 224, 164, .12), rgba(124, 92, 255, .16)); box-shadow: var(--glow); }
.wn-side-label { margin: 0 0 6px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.wn-side-title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; color: #fff; }
.wn-side-price { margin: 0 0 14px; color: var(--text-soft); }
.wn-side-price strong { font-size: 1.5rem; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wn-side-cta ul { list-style: none; margin: 0 0 18px; padding: 0; }
.wn-side-cta li { position: relative; padding-left: 20px; margin-bottom: 7px; font-size: .9rem; color: var(--text-soft); }
.wn-side-cta li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(0, 224, 164, .6); }
.wn-side-cta .wn-btn { width: 100%; justify-content: center; text-align: center; }
.wn-side-trial { display: block; margin-top: 12px; text-align: center; font-size: .86rem; font-weight: 600; }
.wn-side-toc { max-height: calc(100vh - 420px); overflow: auto; }

/* ---------- Dela + föregående/nästa ---------- */
.wn-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 34px 0 6px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: .88rem; color: var(--muted); }
.wn-share a, .wn-share button { padding: 7px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text-soft); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.wn-share a:hover, .wn-share button:hover { border-color: var(--green); color: var(--green); }
.wn-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.wn-post-nav a { display: block; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--glass); color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none; }
.wn-post-nav a span { display: block; margin-bottom: 4px; font-size: .74rem; color: var(--muted); font-weight: 500; }
.wn-post-nav-next { grid-column: 2; text-align: right; }
.wn-post-nav a:hover { border-color: var(--green); }

/* ---------- Rank Math FAQ-block ---------- */
.wn-art-body .rank-math-block { margin-top: 1em; }
.wn-art-body .rank-math-list-item { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; background: var(--glass); }
.wn-art-body .rank-math-question { margin: 0 0 8px; font-size: 1.05rem; color: var(--text); }
.wn-art-body .rank-math-answer p { margin: 0; }

/* ---------- Responsivt ---------- */
@media (max-width: 1024px) {
	.wn-art-layout { grid-template-columns: 1fr; gap: 30px; }
	.wn-art-side { position: static; }
	.wn-side-toc { display: none; }
}
@media (max-width: 600px) {
	.wn-art-hero.has-img { min-height: 360px; }
	.wn-art-hero-content { padding-top: 60px; padding-bottom: 30px; }
	.wn-art-layout { padding-top: 28px; }
	.wn-post-nav { grid-template-columns: 1fr; }
	.wn-post-nav-next { grid-column: auto; text-align: left; }
}

/* ---------- Artikel v1.2.1 — tabeller och sidokolumn ---------- */
.wn-art-body .wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.wn-art-body .wp-block-table table, .wn-art-body table { border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wn-art-body .wp-block-table th, .wn-art-body .wp-block-table td, .wn-art-body th, .wn-art-body td { border: 0; border-bottom: 1px solid var(--line-soft); }
.wn-art-body .wp-block-table thead { border-bottom: 1px solid var(--line); }
.wn-art-body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.wn-side-toc { max-height: max(240px, calc(100vh - 420px)); }
