/* =========================================================================
   Nossebro – tema för Nossebroregionens Företagare
   Färger, typsnitt och grafiska element enligt Grafisk profilhandbok.
   ========================================================================= */

/* ---- Typsnitt (självhostade, SIL Open Font License) ------------------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-latin.woff2") format("woff2");
	font-weight: 700 800;
	font-stretch: 75% 100%;
	font-display: swap;
}
@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-latin.woff2") format("woff2");
	font-weight: 400 600;
	font-display: swap;
}

/* ---- Designtokens ------------------------------------------------------ */
:root {
	--nrf-morkbla: #183a56;
	--nrf-rod: #b23640;
	--nrf-orange: #f5a45a;
	--nrf-orange-mork: #de814f;
	--nrf-morkgron: #789b70;
	--nrf-ljusgron: #e3efdf;
	--nrf-ljusbla: #c6e5ef;
	--nrf-beige: #f1e6cd;
	--nrf-svart: #111111;
	--nrf-vit: #ffffff;
	--nrf-text: #111111;
	--nrf-text-muted: #4b5563;

	--nrf-font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--nrf-font-heading: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;

	--nrf-gutter: clamp(16px, 4vw, 40px);
	--nrf-content: 1120px;
	--nrf-wide: 1320px;
	--nrf-narrow: 780px;
	--nrf-section: clamp(3rem, 7vw, 6rem);
	--nrf-radius: 28px;
	--nrf-radius-sm: 12px;
	--nrf-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Bas --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
	margin: 0;
	background: var(--nrf-vit);
	color: var(--nrf-text);
	font-family: var(--nrf-font-body);
	font-size: 1.125rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--nrf-morkbla); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nrf-rod); }
:focus-visible { outline: 3px solid var(--nrf-orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--nrf-font-heading);
	font-weight: 800;
	font-optical-sizing: auto;
	line-height: 1.1;
	margin: 0 0 .5em;
	color: inherit;
	text-wrap: balance;
	overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
strong { font-weight: 600; }
figure { margin: 0; }
hr { border: 0; border-top: 2px solid var(--nrf-morkbla); margin: 2rem 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	border: 0; white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; padding: .6em 1em; margin: 0;
	clip: auto; clip-path: none;
	background: var(--nrf-svart); color: #fff; border-radius: 999px;
}

/* ---- Layoutverktyg ----------------------------------------------------- */
.nrf-container {
	width: 100%;
	max-width: calc(var(--nrf-content) + 2 * var(--nrf-gutter));
	margin-inline: auto;
	padding-inline: var(--nrf-gutter);
}
.nrf-container--narrow { max-width: calc(var(--nrf-narrow) + 2 * var(--nrf-gutter)); }
.nrf-section { padding-block: var(--nrf-section); }
.nrf-section--tight { padding-block: calc(var(--nrf-section) / 2); }
.nrf-center { text-align: center; }
.nrf-small { font-size: .95rem; }
.nrf-ingress { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 62ch; margin-inline: auto; }
.nrf-eyebrow { font-weight: 600; font-size: 1rem; letter-spacing: .01em; margin-bottom: .75rem; color: var(--nrf-morkbla); }
.nrf-section__title { text-align: center; color: var(--nrf-morkbla); margin-bottom: 2rem; }
.nrf-section__title--large { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
.nrf-buttons-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* Bakgrundsfärger (samma klasser som blockredigeraren använder). */
.has-morkbla-background-color { background-color: var(--nrf-morkbla); color: #fff; }
.has-rod-background-color { background-color: var(--nrf-rod); color: #fff; }
.has-orange-background-color { background-color: var(--nrf-orange); }
.has-orange-mork-background-color { background-color: var(--nrf-orange-mork); color: #fff; }
.has-morkgron-background-color { background-color: var(--nrf-morkgron); color: #fff; }
.has-ljusgron-background-color { background-color: var(--nrf-ljusgron); }
.has-ljusbla-background-color { background-color: var(--nrf-ljusbla); }
.has-beige-background-color { background-color: var(--nrf-beige); }
.has-svart-background-color { background-color: var(--nrf-svart); color: #fff; }
.has-vit-background-color { background-color: var(--nrf-vit); }
.has-morkbla-color { color: var(--nrf-morkbla); }
.has-rod-color { color: var(--nrf-rod); }
.has-orange-color { color: var(--nrf-orange); }
.has-orange-mork-color { color: var(--nrf-orange-mork); }
.has-morkgron-color { color: var(--nrf-morkgron); }
.has-svart-color { color: var(--nrf-svart); }
.has-vit-color { color: var(--nrf-vit); }

/* ---- Knappar (svart, rund – "funktionella element i svart") ------------ */
.nrf-btn,
.wp-block-button__link {
	display: inline-block;
	background: var(--nrf-svart);
	color: #fff !important;
	font-family: var(--nrf-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.2;
	padding: .8em 1.7em;
	border-radius: 999px;
	border: 0;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s var(--nrf-ease), background .2s;
}
.nrf-btn:hover, .nrf-btn:focus-visible,
.wp-block-button__link:hover { background: var(--nrf-morkbla); transform: translateY(-2px); }
.nrf-btn--small { font-size: .9rem; padding: .65em 1.4em; }
.nrf-btn--red { background: var(--nrf-rod); }
.nrf-textlink { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.nrf-textlink .nrf-icon { width: 1.1em; height: 1.1em; }
.wp-block-buttons.nrf-buttons { margin-top: 1.5rem; }

.nrf-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---- Sidhuvud ---------------------------------------------------------- */
.nrf-header {
	position: relative;
	z-index: 50;
	background: var(--nrf-vit);
	border-bottom: 1px solid rgba(24, 58, 86, .08);
}
.nrf-header__inner {
	max-width: calc(var(--nrf-wide) + 2 * var(--nrf-gutter));
	margin-inline: auto;
	padding: .9rem var(--nrf-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 84px;
}
.nrf-logo { display: inline-flex; align-items: center; color: var(--nrf-morkbla); line-height: 0; }
.nrf-logo svg { height: 58px; width: auto; }
.nrf-logo img { height: 58px; width: auto; }
.nrf-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); flex-wrap: wrap; }
.nrf-nav__list a {
	font-family: var(--nrf-font-body);
	font-weight: 500;
	font-size: 1rem;
	color: var(--nrf-text);
	text-decoration: none;
	padding: .35em 0;
	border-bottom: 2px solid transparent;
	transition: border-color .2s, color .2s;
}
.nrf-nav__list a:hover,
.nrf-nav__list .current-menu-item > a,
.nrf-nav__list .current_page_parent > a,
.nrf-nav__list .current-menu-ancestor > a { border-bottom-color: var(--nrf-morkbla); }
.nrf-nav__list .nrf-cta { margin-left: clamp(.25rem, 2vw, 1.5rem); }
.nrf-nav__list .nrf-cta a { color: var(--nrf-rod); font-weight: 600; }
.nrf-nav__list .nrf-cta a:hover { border-bottom-color: var(--nrf-rod); }

.nrf-nav-toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	background: none;
	border: 0;
	padding: .5rem;
	font: inherit;
	font-weight: 600;
	color: var(--nrf-morkbla);
	cursor: pointer;
}
.nrf-nav-toggle__bars {
	position: relative;
	display: block;
	width: 24px; height: 2px;
	background: currentColor;
	transition: background .2s;
}
.nrf-nav-toggle__bars::before, .nrf-nav-toggle__bars::after {
	content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; transition: transform .25s var(--nrf-ease);
}
.nrf-nav-toggle__bars::before { top: -7px; }
.nrf-nav-toggle__bars::after { top: 7px; }
.nrf-nav-toggle[aria-expanded="true"] .nrf-nav-toggle__bars { background: transparent; }
.nrf-nav-toggle[aria-expanded="true"] .nrf-nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nrf-nav-toggle[aria-expanded="true"] .nrf-nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nrf-nav-toggle { display: inline-flex; }
	.nrf-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--nrf-vit);
		border-bottom: 1px solid rgba(24, 58, 86, .1);
		box-shadow: 0 16px 32px rgba(24, 58, 86, .08);
		display: none;
	}
	.nrf-nav.is-open { display: block; }
	.nrf-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--nrf-gutter) 1rem; }
	.nrf-nav__list li { border-top: 1px solid rgba(24, 58, 86, .08); }
	.nrf-nav__list a { display: block; padding: .9em 0; border-bottom: 0; font-size: 1.1rem; }
	.nrf-nav__list .nrf-cta { margin-left: 0; }
}

/* ---- Hero -------------------------------------------------------------- */
.nrf-hero {
	text-align: center;
	padding-block: clamp(3rem, 8vw, 6.5rem);
}
.nrf-hero__title, .wp-block-group.nrf-hero h1 { color: var(--nrf-rod); margin-bottom: .6em; }
.nrf-hero__title:has(+ .nrf-hero__subtitle) { margin-bottom: .3em; }
.nrf-hero__subtitle { font-family: var(--nrf-font-heading); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; color: var(--nrf-morkbla); margin: 0 auto 1.25rem; max-width: 34ch; text-wrap: balance; }
.wp-block-group.nrf-hero > * { max-width: var(--nrf-narrow); }
.wp-block-group.nrf-hero > * + * { margin-block-start: 0; }
.wp-block-group.nrf-hero .nrf-buttons { margin-top: 1.25rem; }
.nrf-hero .nrf-btn { margin-top: .5rem; }

/* Siktet – hörnmarkeringar runt hero-innehållet. */
.nrf-hero__frame { position: relative; padding-block: 2.5rem; }
.nrf-siktet { position: absolute; inset: 0; pointer-events: none; color: var(--nrf-morkgron); }
.nrf-siktet__c { position: absolute; width: clamp(40px, 6vw, 64px); height: auto; }
.nrf-siktet__c--tl { top: 0; left: 0; }
.nrf-siktet__c--tr { top: 0; right: 0; transform: rotate(90deg); }
.nrf-siktet__c--br { bottom: 0; right: 0; transform: rotate(180deg); }
.nrf-siktet__c--bl { bottom: 0; left: 0; transform: rotate(270deg); }
@media (max-width: 700px) {
	.nrf-hero__frame { padding-inline: 2.5rem; }
}

/* ---- Sidinnehåll från blockredigeraren -------------------------------- */
.entry-content { padding-inline: var(--nrf-gutter); }
.entry-content > * { max-width: var(--nrf-content); margin-inline: auto; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content > .alignwide { max-width: var(--nrf-wide); }
.entry-content > .alignfull {
	max-width: none;
	margin-inline: calc(-1 * var(--nrf-gutter));
	margin-top: 0;
	margin-bottom: 0;
}
.entry-content > :not(.alignfull) + :not(.alignfull) { margin-top: 1.5rem; }
.entry-content > :not(.alignfull):first-child { margin-top: var(--nrf-section); }
.entry-content > :not(.alignfull):last-child { margin-bottom: var(--nrf-section); }
.entry-content > .alignfull + :not(.alignfull) { margin-top: var(--nrf-section); }
.entry-content > :not(.alignfull) + .alignfull { margin-top: var(--nrf-section); }
.entry-content--narrow > * { max-width: var(--nrf-narrow); }
.entry-content-inline > * + * { margin-top: 1rem; }

/* Fullbreddssektioner (Grupp-block med klass nrf-section). */
.wp-block-group.nrf-section { padding-block: var(--nrf-section); padding-inline: var(--nrf-gutter); }
.wp-block-group.nrf-section--tight { padding-block: calc(var(--nrf-section) / 2); }
.wp-block-group.nrf-hero { padding-inline: var(--nrf-gutter); }
.wp-block-group.nrf-section > h2:first-child,
.wp-block-group.nrf-section > h3:first-child { margin-bottom: .75rem; }
.wp-block-group.nrf-section > .nrf-ingress { margin-inline: auto; }
.wp-block-group.nrf-section > .wp-block-columns { margin-top: 2.5rem; }
.wp-block-group.nrf-section > .nrf-buttons { margin-top: 1.5rem; }

/* Kolumner */
.wp-block-columns { gap: clamp(1.5rem, 4vw, 3.5rem); }
.wp-block-column > h3 + p { margin-top: 0; }
.wp-block-column > p + h3 { margin-top: 1.75rem; }
.wp-block-column > .nrf-buttons { margin-top: .75rem; }
.wp-block-column > .wp-block-heading.has-text-align-center + p { text-align: center; }
@media (max-width: 781px) {
	.wp-block-columns { flex-direction: column; }
	.wp-block-column { flex-basis: auto !important; }
}

/* Tabell (medlemsavgift) */
.wp-block-table.nrf-table { max-width: 640px; margin-inline: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.wp-block-table th, .wp-block-table td { padding: .6em .75em; text-align: left; border-bottom: 1px solid rgba(24, 58, 86, .15); }
.wp-block-table th { font-weight: 600; color: var(--nrf-morkbla); }

/* Länklista (resurser) */
.wp-block-list.nrf-linklist { list-style: none; padding: 0; }
.nrf-linklist li { padding: .35em 0; }
.nrf-linklist a { text-decoration: none; font-weight: 500; }
.nrf-linklist a:hover { text-decoration: underline; }

/* Galleri */
.wp-block-gallery.nrf-gallery { gap: 1rem; }
.wp-block-gallery.nrf-gallery img { aspect-ratio: 1; object-fit: cover; }
.wp-block-image img { border-radius: 0; }

/* ---- Startsidans plattor ---------------------------------------------- */
.wp-block-group.nrf-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	padding: 0;
}
.nrf-tiles > * { margin: 0 !important; max-width: none; aspect-ratio: 1 / 1; min-width: 0; }
.wp-block-group.nrf-tile {
	display: grid;
	place-items: center;
	position: relative;
	padding: var(--nrf-gutter);
	transition: background .3s;
}
.wp-block-group.nrf-tile:hover { background-color: #b9dfeb; }
.nrf-tile h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.25rem); color: var(--nrf-morkbla); }
.nrf-tile h2 a { color: inherit; text-decoration: none; }
.nrf-tile h2 a::after { content: ""; position: absolute; inset: 0; }
.nrf-tile-img { height: 100%; overflow: hidden; }
.nrf-tile-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
	.wp-block-group.nrf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Evenemang --------------------------------------------------------- */
.nrf-event-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: .35rem;
	text-align: center;
	aspect-ratio: 1 / 1;
	width: 100%;
	background: var(--nrf-orange-mork);
	color: #fff;
	border-radius: var(--nrf-radius);
	padding: 1.25rem 1rem;
	text-decoration: none;
	transition: transform .25s var(--nrf-ease), box-shadow .25s;
}
.nrf-event-card:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(222, 129, 79, .35); }
.nrf-event-card__label, .nrf-event-card__place { font-size: .95rem; line-height: 1.3; opacity: .95; }
.nrf-event-card__date {
	font-family: var(--nrf-font-heading);
	font-weight: 800;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1;
	letter-spacing: -.01em;
	margin-block: .15em;
}
.nrf-events { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.nrf-events .nrf-event-card { width: min(200px, 42vw); }
.nrf-events-block__title { text-align: center; color: var(--nrf-morkbla); margin-bottom: 2rem; }

.nrf-event-list { display: grid; gap: 0; }
.nrf-event-row {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
	padding-block: 2.5rem;
}
.nrf-event-row + .nrf-event-row { border-top: 2px solid rgba(24, 58, 86, .12); }
.nrf-event-row__title { font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--nrf-morkbla); margin-bottom: .35em; }
.nrf-event-row__title a { color: inherit; text-decoration: none; }
.nrf-event-row__title a:hover { color: var(--nrf-rod); }
.nrf-event-row__sub { font-family: var(--nrf-font-heading); font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--nrf-morkbla); margin: -.1em 0 .6em; }
.nrf-event-row__meta { font-weight: 500; font-size: 1.1rem; color: var(--nrf-morkbla); margin-bottom: 1rem; }
.nrf-notis { display: inline-block; font-weight: 600; color: var(--nrf-rod); margin-left: .75rem; }
.nrf-hero .nrf-notis { display: block; margin: .25rem 0 0; }
.nrf-event-closed { display: inline-block; font-weight: 600; color: var(--nrf-text-muted); }
.nrf-event-row__actions { margin-bottom: 1.25rem; }
.nrf-event-row__excerpt { font-size: 1rem; margin: 0; max-width: 60ch; }
@media (max-width: 640px) {
	.nrf-event-row { grid-template-columns: 1fr; }
	.nrf-event-row .nrf-event-card { max-width: 220px; }
}

.nrf-past-list { list-style: none; padding: 0; margin: 0; }
.nrf-past-list li { display: flex; gap: 1rem; padding: .75em 0; border-bottom: 1px solid rgba(24, 58, 86, .12); }
.nrf-past-list__date { flex: none; width: 4.5rem; font-weight: 600; color: var(--nrf-orange-mork); }
.nrf-past-list a { text-decoration: none; }

/* Evenemangssida – Linjen som vertikal röd linje */
.nrf-event-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
}
.nrf-event-details__col { border-left: 4px solid var(--nrf-rod); padding-left: 1.25rem; }
.nrf-event-details__col--content { grid-column: span 1; }
.nrf-event-details__h, .nrf-event-details__col h2 { font-size: 1.25rem; font-weight: 700; color: var(--nrf-morkbla); margin-bottom: .75rem; }
.nrf-event-details__guests { list-style: none; padding: 0; margin: 0; }
.nrf-event-details__guests li + li { margin-top: .75em; }
.nrf-event-details__col ul { padding-left: 1.2em; }
@media (min-width: 900px) {
	.nrf-event-details { grid-template-columns: 1fr 1fr 1.3fr; }
}

/* ---- Företag ----------------------------------------------------------- */
.nrf-company-grid {
	display: grid;
	align-items: start;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
	margin-bottom: 2.5rem;
}
.nrf-company-card { display: block; text-decoration: none; color: inherit; }
/* Bilderna visas i sin helhet: ingen beskärning och ingen inzoomning. */
.nrf-company-card__img { display: block; }
.nrf-company-card__img img { width: 100%; height: auto; transition: opacity .2s; }
.nrf-company-card:hover .nrf-company-card__img img { opacity: .9; }
.nrf-company-card:hover .nrf-company-card__name { color: var(--nrf-rod); }
.nrf-company-card__placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; padding: 12%; background: var(--nrf-ljusgron); color: var(--nrf-morkbla); }
.nrf-company-card__placeholder svg { opacity: .35; }
.nrf-company-card__placeholder svg { width: 100%; height: auto; }
.nrf-company-card__name {
	display: block;
	transition: color .2s;
	margin-top: .85rem;
	text-align: center;
	font-family: var(--nrf-font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--nrf-orange-mork);
}
@media (max-width: 640px) {
	.nrf-company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nrf-company-card__name { font-size: 1.05rem; }
}

/* Hitta företag – sök och branscher */
.nrf-finder { padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.nrf-finder__title { color: var(--nrf-morkbla); margin-bottom: 1.25rem; }
.nrf-search {
	display: flex;
	align-items: center;
	max-width: 460px;
	margin: 0 auto 1.75rem;
	background: #fff;
	border-radius: 999px;
	padding: .3rem .3rem .3rem 1.25rem;
	box-shadow: 0 2px 12px rgba(24, 58, 86, .08);
}
.nrf-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 1rem;
	padding: .5em 0;
	color: var(--nrf-text);
}
.nrf-search__input:focus { outline: none; }
.nrf-search__input::placeholder { color: #6b7280; }
.nrf-search__btn {
	flex: none;
	width: 42px; height: 42px;
	display: grid; place-items: center;
	border: 0; border-radius: 50%;
	background: var(--nrf-svart); color: #fff;
	cursor: pointer;
}
.nrf-search__btn:hover { background: var(--nrf-morkbla); }
.nrf-chips { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.nrf-chips--left { justify-content: flex-start; margin-bottom: 1rem; }
.nrf-chip {
	display: inline-block;
	background: var(--nrf-morkbla);
	color: #fff;
	font-size: .9rem;
	font-weight: 500;
	padding: .45em 1.1em;
	border-radius: 999px;
	text-decoration: none;
	transition: background .2s, transform .2s var(--nrf-ease);
}
.nrf-chip:hover { background: var(--nrf-rod); color: #fff; transform: translateY(-1px); }
.nrf-chip.is-active { background: var(--nrf-rod); }
.nrf-chip--small { font-size: .8rem; padding: .35em .9em; }

/* Företagssida */
.nrf-company-hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.nrf-company-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 5vw, 4.5rem);
	align-items: center;
}
.nrf-company-hero__img img { width: 100%; height: auto; }
.nrf-company-hero__img .nrf-company-card__placeholder { background: rgba(255, 255, 255, .5); }
.nrf-company-hero__title { color: var(--nrf-morkbla); font-size: clamp(2rem, 3.5vw, 2.75rem); }
.nrf-company-hero__text p:last-child { margin-bottom: 0; }
.nrf-company-hero__body > p:last-child { margin-top: 1.25rem; margin-bottom: 0; }
@media (max-width: 760px) {
	.nrf-company-hero__grid { grid-template-columns: 1fr; }
	.nrf-company-hero__img { max-width: 480px; }
}

.nrf-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.nrf-gallery-grid__item img { width: 100%; height: auto; }
@media (max-width: 640px) {
	.nrf-gallery-grid { grid-template-columns: 1fr; }
}

.nrf-contact { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.nrf-contact__grid { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.nrf-contact__aside { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.nrf-contact__logo { background: #fff; border-radius: var(--nrf-radius-sm); padding: .75rem; line-height: 0; }
.nrf-contact__logo img { width: auto; height: auto; max-width: 140px; max-height: 110px; }
.nrf-contact__title { color: var(--nrf-morkbla); font-size: 1.75rem; margin-bottom: 1rem; }
.nrf-contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.nrf-contact__list li { display: flex; align-items: flex-start; gap: .6rem; }
.nrf-contact__list .nrf-icon { color: var(--nrf-morkbla); margin-top: .2em; }
.nrf-contact__label { font-weight: 600; }
.nrf-contact__list a { text-decoration: none; }
.nrf-contact__list a:hover { text-decoration: underline; }
.nrf-social { list-style: none; padding: 0; margin: 0; display: flex; gap: .85rem; }
.nrf-social__link {
	display: grid; place-items: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--nrf-svart); color: #fff;
	transition: background .2s, transform .2s var(--nrf-ease);
}
.nrf-social__link:hover { background: var(--nrf-morkbla); color: #fff; transform: translateY(-2px); }
.nrf-social__link .nrf-icon { width: 24px; height: 24px; }

/* ---- "Därför finns vi" med Vågen -------------------------------------- */
.nrf-why {
	position: relative;
	overflow: hidden;
	background: var(--nrf-ljusbla);
	padding: var(--nrf-section) var(--nrf-gutter);
	isolation: isolate;
}
.nrf-wave { position: absolute; display: block; pointer-events: none; z-index: 0; }
.nrf-wave--why {
	top: 0; right: 0;
	width: 58%; height: 100%;
	color: var(--nrf-morkbla);
	transform: scaleX(-1);
}
.nrf-why__inner {
	position: relative;
	z-index: 1;
	max-width: var(--nrf-content);
	margin-inline: auto;
}
.nrf-why__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.75rem clamp(1.5rem, 4vw, 3rem);
	max-width: 620px;
	margin-bottom: 2.5rem;
}
.nrf-why__item h3 { color: var(--nrf-morkbla); font-size: 1.25rem; margin-bottom: .3em; }
.nrf-why__item p { font-size: 1rem; margin: 0; }
.nrf-why__title { color: var(--nrf-morkbla); margin-bottom: 1rem; }
@media (max-width: 900px) {
	.nrf-wave--why { width: 45%; }
	.nrf-why__grid { max-width: 55%; }
}
@media (max-width: 640px) {
	.nrf-why { padding-bottom: calc(var(--nrf-section) + 18vw); }
	.nrf-wave--why { top: auto; bottom: 0; width: 100%; height: 30vw; transform: scaleX(-1); }
	.nrf-why__grid { max-width: none; grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---- Sidfot ------------------------------------------------------------ */
.nrf-footer {
	position: relative;
	overflow: hidden;
	background: var(--nrf-ljusgron);
	isolation: isolate;
	margin-top: 0;
}
.nrf-wave--footer {
	top: 0; left: 0;
	width: 34%; height: 100%;
	color: var(--nrf-morkbla);
	transform: scaleY(-1);
}
.nrf-footer__inner {
	position: relative; z-index: 1;
	max-width: calc(var(--nrf-wide) + 2 * var(--nrf-gutter));
	margin-inline: auto;
	padding: clamp(3rem, 7vw, 5.5rem) var(--nrf-gutter);
	display: grid;
	grid-template-columns: minmax(0, .55fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 2rem;
}
.nrf-footer__brand { justify-self: center; }
.nrf-logo--footer svg { height: clamp(64px, 8vw, 96px); }
.nrf-footer__contact { justify-self: center; text-align: center; }
.nrf-footer__h { font-size: 1.15rem; font-weight: 700; color: var(--nrf-rod); margin: 0 0 .25em; }
.nrf-footer__contact p { margin: 0 0 1.25rem; }
.nrf-footer__contact p:last-child { margin-bottom: 0; }
.nrf-footer__contact a { color: var(--nrf-text); text-decoration: none; }
.nrf-footer__contact a:hover { color: var(--nrf-rod); text-decoration: underline; }
.nrf-footer__bottom {
	position: relative; z-index: 1;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem;
	padding: 1rem var(--nrf-gutter) 1.25rem;
	font-size: .85rem;
	color: var(--nrf-text-muted);
}
.nrf-footer__bottom p { margin: 0; }
.nrf-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.nrf-footer__menu a { color: inherit; text-decoration: none; }
@media (max-width: 760px) {
	.nrf-footer__inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; padding-top: calc(3rem + 10vw); }
	.nrf-footer__spacer { display: none; }
	.nrf-wave--footer { width: 100%; height: 22vw; }
}

/* ---- Inläggslistor & paginering --------------------------------------- */
.nrf-post-list { display: grid; gap: 2rem; }
.nrf-post-item__title { font-size: 1.6rem; margin-bottom: .25em; }
.nrf-post-item__title a { text-decoration: none; color: var(--nrf-morkbla); }
.nrf-post-item__excerpt p { margin: 0; }
.pagination, .nrf-pagination { margin-top: 2.5rem; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
	display: inline-block; min-width: 2.5em; padding: .5em .8em;
	border-radius: 999px; text-decoration: none; font-weight: 500;
	background: var(--nrf-ljusgron); color: var(--nrf-morkbla);
}
.pagination .page-numbers.current { background: var(--nrf-morkbla); color: #fff; }
.pagination .page-numbers:hover { background: var(--nrf-ljusbla); }

/* ---- Blockredigeraren -------------------------------------------------- */
.editor-styles-wrapper { font-family: var(--nrf-font-body); }
.editor-styles-wrapper .wp-block-group.nrf-tiles { gap: 0; }

/* ---- Fotorader med företagsbilder ([nrf_foretagsbilder]) ---------------- */
.nrf-photo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 2rem);
	align-items: center;
}
.nrf-photo-grid__item { display: block; line-height: 0; }
.nrf-photo-grid__item img { width: 100%; height: auto; transition: opacity .2s; }
.nrf-photo-grid__item:hover img { opacity: .9; }
@media (max-width: 640px) {
	.nrf-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Ojämnt antal bilder: dölj den sista hellre än att lämna en halv rad. */
	.nrf-photo-grid > .nrf-photo-grid__item:last-child:nth-child(odd) { display: none; }
}

/* ---- Sektioner med extra luft (nrf-section--luft) ----------------------- */
.wp-block-group.nrf-section--luft { padding-inline: clamp(1.5rem, 9vw, 9rem); }
.wp-block-group.nrf-section--luft > * { max-width: 860px; }
.wp-block-group.nrf-section--luft > .nrf-ingress { max-width: 62ch; }
.wp-block-group.nrf-section--luft .wp-block-columns { column-gap: clamp(2.5rem, 8vw, 7rem); row-gap: 2.5rem; }
.wp-block-group.nrf-section--luft .wp-block-column > p { max-width: 38ch; }
.wp-block-group.nrf-section--luft .wp-block-column > p.has-text-align-center { margin-inline: auto; }

/* ---- Styrelsen (Om oss) ------------------------------------------------- */
.wp-block-group.nrf-styrelse > .nrf-ingress { margin-bottom: 2.5rem; }
.wp-block-group.nrf-board {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem clamp(1.5rem, 4vw, 3rem);
	margin: 0 auto;
	text-align: center;
}
.wp-block-group.nrf-board--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 430px; }
.wp-block-group.nrf-board--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 645px; }
.nrf-board__rubrik.wp-block-heading { font-size: 1.15rem; margin: 3rem 0 1.25rem; }
/* WordPress lägger marginal ovanför block nr 2, 3 … i en grupp – inte i ett rutnät. */
.wp-block-group.nrf-board > .nrf-person,
.wp-block-group.nrf-person > * { margin: 0; }
.nrf-person img { width: 100%; height: auto; margin-bottom: .9rem; }
.wp-block-group.nrf-person > .nrf-person__roll { font-size: 1rem; font-weight: 600; color: var(--nrf-morkbla); margin-bottom: .25rem; }
.nrf-person__namn { font-family: var(--nrf-font-heading); font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--nrf-text); }
@media (max-width: 700px) {
	.wp-block-group.nrf-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
