/* Jobba i Norge – en enda stilmall utan beroenden.
   Färger från norska flaggan: blå #00205B, röd #BA0C2F, vit.
   Typsnitt: Source Sans 3 (OFL), lagrat på egen server. */

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--blue: #00205b;
	--blue-2: #0a347f;
	--red: #ba0c2f;
	--red-dark: #960a26;
	--white: #fff;

	--bg: #fff;
	--tint: #f3f6fb;
	--card: #fff;
	--card-tint: #eaf0f8;
	--ink: #16213a;
	--muted: #525e76;
	--line: #dbe2ee;
	--link: #0b4ea2;
	--link-hover: var(--red);
	--accent: var(--red);
	--mark: #fff1b8;

	--radius: 12px;
	--wrap: 76rem;
	--prose: 44rem;
	--font: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--shadow: 0 1px 2px rgb(0 32 91 / 6%), 0 8px 24px rgb(0 32 91 / 8%);
	--icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 1.5h6v6M10.5 1.5 2 10' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0a1222;
		--tint: #0f1a30;
		--card: #13203a;
		--card-tint: #13203a;
		--ink: #e7ecf5;
		--muted: #a6b0c4;
		--line: #243352;
		--link: #8db4ff;
		--link-hover: #ff8a9a;
		--accent: #ff6b80;
		--mark: #4a3f12;
		--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
	}
}

/* --- Bas ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 1.125rem/1.65 var(--font);
	text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 700; margin: 2.75rem 0 0.9rem; }
h3 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.5rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
	position: absolute; left: 1rem; top: -4rem; z-index: 50;
	background: var(--white); color: var(--blue); padding: 0.6rem 0.9rem; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* Externa länkar (target="_blank" sätts vid bygget) får en ↗-ikon i länkens färg.
   Ett ordsammanbindningstecken (U+2060) gör att ikonen aldrig hamnar ensam på en ny rad. */
a[target="_blank"]::after {
	content: "\2060";
	padding-left: 0.84em;
	background-color: currentColor;
	opacity: 0.8;
	-webkit-mask: var(--icon-external) no-repeat right 0 center / 0.62em 0.62em;
	mask: var(--icon-external) no-repeat right 0 center / 0.62em 0.62em;
}

/* --- Knappar ---------------------------------------------------------- */

.knapp {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.8rem 1.35rem; border-radius: 8px; border: 2px solid var(--red);
	background: var(--red); color: var(--white); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
	text-decoration: none; transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.knapp:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-1px); }
.knapp--ljus { background: transparent; border-color: rgb(255 255 255 / 70%); }
.knapp--ljus:hover { background: rgb(255 255 255 / 12%); border-color: var(--white); }
.knapp--vit { background: var(--white); border-color: var(--white); color: var(--blue); }
.knapp--vit:hover { background: #e9eef8; border-color: #e9eef8; color: var(--blue); }

/* --- Sidhuvud (ligger ovanpå hero) ------------------------------------- */

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: var(--white); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.1rem; }
.brand {
	display: inline-flex; align-items: center; gap: 0.6rem;
	color: inherit; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em;
}
.brand:hover { color: inherit; }
.brand__mark { width: 2.1rem; height: 2.1rem; flex: none; border-radius: 8px; box-shadow: 0 0 0 1.5px rgb(255 255 255 / 55%); }
.brand__accent { color: #ff8fa0; }

.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; padding-block: 0.35rem; opacity: 0.92; }
.nav a:hover, .nav a[aria-current] { opacity: 1; box-shadow: inset 0 -3px 0 var(--red); }

.nav-toggle {
	display: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 8px;
	background: rgb(255 255 255 / 12%); color: var(--white); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 1.3rem; height: 2px; margin: auto; background: currentColor; border-radius: 2px;
	position: relative; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
[data-open="true"] .nav-toggle__bars { background: transparent; }
[data-open="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
[data-open="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 59.99rem) {
	.js .nav-toggle { display: block; }
	.js .nav { display: none; }
	.js [data-open="true"] { background: var(--blue); box-shadow: 0 12px 30px rgb(0 0 0 / 30%); }
	.js [data-open="true"] .site-header__inner { flex-wrap: wrap; }
	.js [data-open="true"] .nav { display: block; flex-basis: 100%; padding-bottom: 1rem; }
	.js [data-open="true"] .nav ul { flex-direction: column; gap: 0; }
	.js [data-open="true"] .nav a { display: block; padding: 0.8rem 0; border-top: 1px solid rgb(255 255 255 / 15%); box-shadow: none; }
	.js [data-open="true"] .nav a[aria-current] { color: #ff8fa0; }
}

.status-banner {
	position: relative; z-index: 21; background: #ffe7a3; color: #3d2e00;
	font-size: 0.9rem; padding-block: 0.45rem;
}

/* --- Hero ------------------------------------------------------------- */

.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: linear-gradient(120deg, var(--blue) 0%, var(--blue-2) 100%);
	color: var(--white);
	padding: clamp(7rem, 5rem + 6vw, 9.5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
}
/* Utan foto: ett diskret nordiskt kors som motiv i högra halvan, bredvid texten. */
@media (min-width: 60rem) {
	.hero:not(.hero--bild)::before {
		content: ""; position: absolute; z-index: -1; inset: 0 0 0 58%;
		background:
			linear-gradient(90deg, transparent 22%, rgb(255 255 255 / 6%) 22%, rgb(255 255 255 / 6%) 36%, transparent 36%),
			linear-gradient(0deg, transparent 40%, rgb(255 255 255 / 6%) 40%, rgb(255 255 255 / 6%) 56%, transparent 56%);
	}
}
/* Flaggfärgad kant: vit och röd rand under den blå heron. */
.hero::after {
	content: ""; position: absolute; inset: auto 0 0; height: 9px;
	background: linear-gradient(to bottom, var(--white) 0 3px, var(--red) 3px);
}
.hero--bild { background: var(--blue); }
.hero--bild picture, .hero__bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__bild { object-fit: cover; object-position: center 55%; }
.hero--bild .hero__inner::before {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background:
		linear-gradient(95deg, rgb(0 32 91 / 94%) 0%, rgb(0 32 91 / 82%) 40%, rgb(0 32 91 / 35%) 80%, rgb(0 32 91 / 20%) 100%),
		linear-gradient(to top, rgb(0 32 91 / 55%), transparent 45%);
}
.hero__inner { position: static; }
.hero--hem { min-height: min(46rem, 88vh); display: flex; align-items: center; }
.hero--hem .hero__inner { padding-block: 1rem 2rem; }

.hero h1 {
	max-width: 22ch; margin: 0 0 1rem;
	font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em;
	text-shadow: 0 2px 24px rgb(0 20 60 / 35%);
}
.hero__lead { max-width: 40rem; margin: 0 0 1.5rem; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); line-height: 1.55; color: rgb(255 255 255 / 92%); }
.hero__meta { margin: 0; font-size: 0.95rem; color: rgb(255 255 255 / 75%); }
.hero__knappar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.5rem; }
.hero__foto {
	position: absolute; right: 1rem; bottom: 1rem; margin: 0; max-width: calc(100% - 2rem);
	font-size: 0.72rem; color: rgb(255 255 255 / 70%); text-align: right;
}
.hero__foto a { color: inherit; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: 0.95rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.35rem; opacity: 0.7; }
.crumbs a { color: rgb(255 255 255 / 85%); }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: rgb(255 255 255 / 70%); }

/* --- Sektioner ------------------------------------------------------- */

.band { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.band--tint { background: var(--tint); }
.eyebrow {
	margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
}
.eyebrow--ljus { color: #ffb3bf; }
.band__title { margin: 0 0 1.75rem; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 700; max-width: 32ch; }
.band__lead { color: var(--muted); max-width: 36rem; }

.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) {
	.split { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; }
	.split--jamn { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
}

.cta { text-align: center; max-width: 40rem; }
.cta h2 { margin-top: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.cta p { color: var(--muted); }
.band--cta { border-top: 1px solid var(--line); }

/* --- Kort ------------------------------------------------------------ */

.kort-grid {
	display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}
.kort {
	position: relative; display: flex; flex-direction: column; gap: 0.4rem;
	padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--radius);
	background: var(--card); box-shadow: var(--shadow); border-top: 4px solid var(--blue);
	transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.kort:hover { transform: translateY(-3px); border-top-color: var(--red); }
.kort__ikon { display: inline-flex; width: 2.6rem; height: 2.6rem; color: var(--accent); margin-bottom: 0.35rem; }
.kort__ikon svg { width: 100%; height: 100%; }
.kort__titel { margin: 0; font-size: 1.3rem; }
.kort__titel a { color: var(--ink); text-decoration: none; }
.kort__titel a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.kort:hover .kort__titel a { color: var(--link); }
.kort p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.pill {
	align-self: flex-start; margin-top: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
	padding: 0.1rem 0.55rem; border-radius: 99px; background: #fde2e7; color: var(--red-dark);
}

/* --- Faktapanel och lönetabell (startsidan) -------------------------- */

.fakta-panel {
	position: relative; padding: 2rem 1.75rem; border-radius: var(--radius);
	background: linear-gradient(160deg, var(--blue) 0%, var(--blue-2) 100%); color: var(--white);
	box-shadow: var(--shadow); border-top: 6px solid var(--red);
}
@media (min-width: 60rem) { .fakta-panel { position: sticky; top: 2rem; } }
.fakta-panel h2 { margin: 0 0 1.25rem; font-size: 1.6rem; }
.fakta-panel dl { margin: 0 0 1.75rem; display: grid; gap: 1rem; }
.fakta-panel dl div { padding-bottom: 1rem; border-bottom: 1px solid rgb(255 255 255 / 15%); }
.fakta-panel dt { font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.fakta-panel dd { margin: 0.2rem 0 0; color: rgb(255 255 255 / 80%); font-size: 1rem; line-height: 1.45; }

.lonetabell { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 1.02rem; }
.lonetabell th, .lonetabell td { padding: 0.8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.lonetabell th { background: var(--blue); color: var(--white); font-weight: 600; }
.lonetabell .num { text-align: right; font-variant-numeric: tabular-nums; }
.lonetabell .summa td { font-weight: 700; border-bottom: 0; }

/* --- Innehållssidor --------------------------------------------------- */

.page-body { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 4.5rem; display: grid; gap: 2.5rem; }
.page { min-width: 0; max-width: var(--prose); }
@media (min-width: 70rem) {
	.page-body--toc { grid-template-columns: minmax(0, var(--prose)) 15.5rem; justify-content: space-between; column-gap: 4rem; }
}

.toc { order: -1; font-size: 0.98rem; }
.toc__title { margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--line); }
.toc li a { display: block; padding: 0.3rem 0 0.3rem 1rem; margin-left: -3px; border-left: 3px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc li a:hover { color: var(--link); border-left-color: var(--red); }
@media (max-width: 69.99rem) {
	.toc { padding: 1.1rem 1.25rem; background: var(--tint); border-radius: var(--radius); }
	.toc ol { border-left: 0; }
	.toc li a { padding-left: 0; margin-left: 0; border-left: 0; }
}
@media (min-width: 70rem) {
	.toc { order: 0; position: sticky; top: 2rem; align-self: start; }
}

.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { font-weight: 700; }
.prose h2 { padding-top: 0.25rem; }
.prose h2::before { content: ""; display: block; width: 2.5rem; height: 4px; margin-bottom: 0.8rem; border-radius: 2px; background: var(--red); }

.prose table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--blue); color: var(--white); font-weight: 600; }
.prose thead th:first-child { border-top-left-radius: 8px; }
.prose thead th:last-child { border-top-right-radius: 8px; }
.prose tbody tr:nth-child(even) { background: var(--tint); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }

.note {
	margin: 1.75rem 0; padding: 1.1rem 1.35rem; border-radius: var(--radius);
	background: var(--card-tint); border-left: 5px solid var(--blue);
}
.note--warning { background: #fdecef; border-left-color: var(--red); }
@media (prefers-color-scheme: dark) {
	.note { border-left-color: var(--link); }
	.note--warning { background: #2a1520; border-left-color: var(--accent); }
}
.note > :last-child { margin-bottom: 0; }

mark.unverified { background: var(--red); color: #fff; padding: 0 0.3rem; border-radius: 3px; font-weight: 600; }

.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.sources h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.sources ul { margin: 0; padding-left: 1.1rem; }
.sources li + li { margin-top: 0.25rem; }

/* --- Brief (bara dev) ------------------------------------------------- */

.brief {
	margin: 0 0 2rem; padding: 1rem 1.25rem; font-size: 0.95rem;
	border: 2px dashed var(--red); border-radius: var(--radius); background: var(--card);
}
.brief__label { margin: 0 0 0.5rem; font-weight: 700; color: var(--accent); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.brief p, .brief ul { margin: 0 0 0.5rem; }

/* --- Ordlista --------------------------------------------------------- */

.ordsok {
	position: sticky; top: 0; z-index: 5; margin: 0 0 1.5rem; padding: 1rem 0 0.75rem;
	background: var(--bg); border-bottom: 1px solid var(--line);
}
.ordsok label[for] { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.ordsok input[type="search"] {
	width: 100%; font: inherit; padding: 0.65rem 0.9rem; color: var(--ink);
	background: var(--card); border: 2px solid var(--line); border-radius: 8px;
}
.ordsok input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(0 32 91 / 15%); }
.ordsok__val { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; font-size: 0.98rem; }
.ordsok__val input { accent-color: var(--red); }
.ordsok__status { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--muted); min-height: 1.3em; }
.ordtabell td:first-child { white-space: nowrap; }
.badge {
	display: inline-block; margin-left: 0.3rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em;
	text-transform: uppercase; padding: 0.05rem 0.45rem; border-radius: 99px;
	background: #fde2e7; color: var(--red-dark); vertical-align: 0.12em;
}

/* --- Sidfot ----------------------------------------------------------- */

.site-footer { background: var(--blue); color: rgb(255 255 255 / 85%); border-top: 6px solid var(--red); font-size: 1rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #071633; } }
.site-footer__grid {
	display: grid; gap: 2.5rem; padding-block: 4rem 3rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
@media (min-width: 60rem) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 0.9rem; }
.site-footer__about p { margin: 0; max-width: 24rem; line-height: 1.6; }
.site-footer__heading { margin: 0 0 0.8rem; font-size: 1.1rem; color: var(--white); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { color: rgb(255 255 255 / 85%); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__bottom { background: rgb(0 0 0 / 18%); font-size: 0.88rem; color: rgb(255 255 255 / 70%); }
.site-footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.1rem; }
.site-footer__bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
	html { scroll-behavior: auto; }
}
