/* Stensunds startsida. Laddas bara på startsidan. Måtten kommer från prototypen (https://stensund.se/web-2026/index.html). */
.stensund-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.stensund-eyebrow::before { content: ""; flex: none; inline-size: 3.5rem; block-size: 3px; background: var(--loft-farg-accent); }

/* ---------- Hero ---------- */
.stensund-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-block-size: min(92vh, 55rem);
	overflow: hidden;
	background: var(--loft-farg-mork);
	color: #fff;
	isolation: isolate;
}
.stensund-hero__bild { position: absolute; inset: 0; z-index: -2; }
.stensund-hero__bild img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 58% 50%; }
.stensund-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(88deg, rgb(20 20 32 / 0.86) 0%, rgb(24 24 36 / 0.6) 44%, rgb(24 24 30 / 0.12) 74%, rgb(24 24 30 / 0.3) 100%);
}
.stensund-hero__text { inline-size: 100%; padding-block: 9.375rem 2.5rem; }
.stensund-hero__eyebrow { margin-bottom: 1.625rem; color: #fff; }
.stensund-hero__rubrik {
	margin: 0;
	color: #fff;
	font-size: clamp(3.375rem, 9.4vw, 9.25rem);
	font-weight: 700;
	line-height: 0.88;
	letter-spacing: -0.045em;
	text-wrap: balance;
}
.stensund-hero__under { margin: 1.375rem 0 0; font-size: clamp(1.5rem, 3vw, 2.5rem); font-style: italic; font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.stensund-hero__ingress { margin: 1.875rem 0 0; max-inline-size: 44ch; color: #eae7e1; font-size: 1.25rem; line-height: 1.6; }
.stensund-hero__mer { display: none; }
@media (min-width: 48rem) { .stensund-hero__mer { display: inline; } }
.stensund-hero__lank {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2.125rem;
	padding-bottom: 0.375rem;
	border-bottom: 2px solid var(--loft-farg-accent);
	color: #fff;
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
	transition: gap var(--loft-overgang);
}
.stensund-hero__lank:hover { gap: 1.25rem; color: #fff; }
.stensund-hero__lista {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2.125rem;
	margin: 2rem 0 0;
	padding: 1rem var(--loft-kantmarginal);
	border-top: 1px solid rgb(255 255 255 / 0.22);
	background: rgb(20 20 28 / 0.34);
	backdrop-filter: blur(3px);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	list-style: none;
	text-transform: uppercase;
}
.stensund-hero__lista li { display: flex; align-items: center; gap: 0.75rem; }
.stensund-hero__lista li::before { content: ""; inline-size: 6px; block-size: 6px; background: var(--loft-farg-accent); }
@media (min-width: 80rem) { .stensund-hero__lista { padding-inline: max(var(--loft-kantmarginal), calc((100vw - var(--loft-bredd-innehall)) / 2)); } }
@media (max-width: 47.9375rem) { .stensund-hero__text { padding-block: 6rem 1rem; } }

/* ---------- Intro ---------- */
.stensund-intro { background: var(--loft-farg-yta); padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.stensund-intro__rutnat { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 60rem) { .stensund-intro__rutnat { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.stensund-intro__lead { margin: 0; font-size: clamp(1.625rem, 3.1vw, 2.5rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.03em; color: var(--loft-farg-mork); }
.stensund-intro__lead em { color: var(--loft-kurshero-kant, #313b8e); font-style: italic; }
.stensund-intro__text { display: flex; flex-direction: column; gap: 1.125rem; font-size: 1.125rem; line-height: 1.65; }
.stensund-intro__text p { margin: 0; }
.stensund-intro__text a, .stensund-mer a { font-weight: 700; }

/* ---------- Sektioner ---------- */
.stensund-sektion { padding-block: clamp(4rem, 8vw, 6.5rem); }
.stensund-sektion--liv { padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.stensund-huvud { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 0.5rem; }
.stensund-huvud h2 { margin: 0; font-size: clamp(1.875rem, 4vw, 3.125rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.stensund-huvud p { margin: 0; max-inline-size: 38ch; font-size: 1.0625rem; color: var(--loft-farg-text-dampad); }
.stensund-huvud a { font-size: 1rem; font-weight: 700; }

/* Utbildningslistan */
.stensund-lista { margin: 2.125rem 0 0; padding: 0; border-top: 2px solid var(--loft-farg-mork); list-style: none; }
.stensund-lista li { border-bottom: 1px solid var(--loft-farg-kant); }
.stensund-lista__rad {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 21rem) 2.125rem;
	gap: 1.75rem;
	align-items: center;
	padding: 1.875rem 0.5rem;
	color: inherit;
	text-decoration: none;
	transition: background var(--loft-overgang);
}
.stensund-lista__rad:hover { background: var(--loft-farg-yta); }
.stensund-lista__nr { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; color: var(--loft-farg-text-dampad); }
.stensund-lista__titel { display: block; font-size: clamp(1.625rem, 3.3vw, 2.625rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; transition: color var(--loft-overgang); }
.stensund-lista__rad:hover .stensund-lista__titel { color: var(--loft-farg-accent); }
.stensund-lista__meta { display: block; margin-top: 0.625rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--loft-farg-text-dampad); }
.stensund-lista__text { font-size: 1rem; line-height: 1.6; color: #4a463f; }
.stensund-lista__pil { justify-self: end; font-size: 1.375rem; transition: transform var(--loft-overgang), color var(--loft-overgang); }
.stensund-lista__rad:hover .stensund-lista__pil { transform: translateX(6px); color: var(--loft-farg-accent); }
.stensund-lista__bild { display: none; }
@media (max-width: 63.9375rem) {
	.stensund-lista__rad { grid-template-columns: 2.5rem minmax(0, 1fr) 1.625rem; gap: 0.5rem 1.25rem; }
	.stensund-lista__huvud { grid-column: 2; grid-row: 1; }
	.stensund-lista__pil { grid-column: 3; grid-row: 1; align-self: center; }
	.stensund-lista__text { grid-column: 2 / 3; grid-row: 2; font-size: 0.9375rem; }
}
@media (max-width: 44.9375rem) {
	.stensund-lista__rad { grid-template-columns: minmax(0, 1fr) 1.5rem; padding-block: 1.375rem; }
	.stensund-lista__nr { display: none; }
	.stensund-lista__huvud { grid-column: 1; }
	.stensund-lista__pil { grid-column: 2; }
	.stensund-lista__text { grid-column: 1 / 3; }
	.stensund-lista__bild { display: block; grid-column: 1 / 3; grid-row: 3; inline-size: 100%; aspect-ratio: 16 / 9; margin-top: 0.75rem; object-fit: cover; }
}

/* Jag vill */
.stensund-jagvill { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2.5rem; }
.stensund-jagvill__etikett { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--loft-farg-text-dampad); }
.stensund-jagvill__lank { padding: 0.625rem 1rem; border: 1.5px solid var(--loft-kurshero-kant, #313b8e); color: var(--loft-kurshero-kant, #313b8e); font-size: 0.9375rem; font-weight: 700; text-decoration: none; transition: background var(--loft-overgang), color var(--loft-overgang); }
.stensund-jagvill__lank:hover { background: var(--loft-kurshero-kant, #313b8e); color: #fff; }

/* Bildrutnät */
.stensund-rutnat { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 9.375rem; gap: 0.625rem; margin-top: 2.125rem; padding-inline: 0.625rem; }
.stensund-rutnat__bild { display: block; overflow: hidden; background: var(--loft-farg-yta); }
.stensund-rutnat__bild img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 0.5s ease; }
a.stensund-rutnat__bild:hover img { transform: scale(1.04); }
.stensund-rutnat__bild:nth-child(1) { grid-column: span 5; grid-row: span 3; }
.stensund-rutnat__bild:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.stensund-rutnat__bild:nth-child(3) { grid-column: span 4; grid-row: span 2; }
.stensund-rutnat__bild:nth-child(4) { grid-column: span 3; }
.stensund-rutnat__bild:nth-child(5) { grid-column: span 4; }
.stensund-rutnat__tips { display: none; margin: 1rem 0 0; font-size: 0.9375rem; color: var(--loft-farg-text-dampad); }
@media (max-width: 47.9375rem) {
	.stensund-rutnat { display: flex; gap: 0.5rem; overflow-x: auto; padding-inline: var(--loft-kantmarginal); scrollbar-width: none; scroll-snap-type: x proximity; }
	.stensund-rutnat__bild { flex: 0 0 74%; block-size: 15.625rem; scroll-snap-align: start; }
	.stensund-rutnat__tips { display: block; }
}

/* Facebook */
.stensund-fb-omslag { margin-top: clamp(3rem, 6vw, 4.5rem); }
.stensund-fb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 2.125rem 0 0; padding: 1.625rem 0 0; border-top: 2px solid var(--loft-farg-mork); list-style: none; }
.stensund-fb__inlagg { display: flex; flex-direction: column; block-size: 100%; gap: 0.75rem; color: inherit; text-decoration: none; }
.stensund-fb__inlagg img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--loft-farg-yta); }
.stensund-fb__meta { display: flex; align-items: center; gap: 0.5625rem; font-size: 0.75rem; font-weight: 700; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--loft-farg-text-dampad); }
.stensund-fb__meta::before {
	content: "";
	flex: none;
	inline-size: 0.8125rem;
	block-size: 0.8125rem;
	background: var(--loft-kurshero-kant, #313b8e);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 21v-8h2.7l.4-3.1h-3.1V7.9c0-.9.3-1.5 1.6-1.5h1.6V3.6c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.5-4 4.1v2.3H7.6V13h2.7v8h3.2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 21v-8h2.7l.4-3.1h-3.1V7.9c0-.9.3-1.5 1.6-1.5h1.6V3.6c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.5-4 4.1v2.3H7.6V13h2.7v8h3.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Inlägg från Facebook kan vara långa. Högst fyra rader, hela inlägget finns bakom länken. */
.stensund-fb__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-size: 1.0625rem; line-height: 1.55; white-space: pre-line; }
.stensund-fb__mer { margin-top: auto; font-size: 0.9375rem; font-weight: 700; color: var(--loft-kurshero-kant, #313b8e); }
a.stensund-fb__inlagg:hover .stensund-fb__mer { color: var(--loft-farg-accent); }
@media (max-width: 63.9375rem) { .stensund-fb { grid-template-columns: 1fr 1fr; } .stensund-fb li:nth-child(3) { display: none; } }
@media (max-width: 47.9375rem) { .stensund-fb { grid-template-columns: 1fr; gap: 1.625rem; } .stensund-fb li:nth-child(3) { display: block; } }

/* ---------- Citat ---------- */
.stensund-citat { background: #e9dfcd; padding-block: clamp(4rem, 7vw, 6rem); }
.stensund-citat__rutnat { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 60rem) { .stensund-citat__rutnat { grid-template-columns: minmax(0, 1fr) 17.5rem; } }
.stensund-citat__lista { position: relative; display: grid; }
.stensund-citat__q { grid-area: 1 / 1; margin: 0; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.stensund-citat__q[data-on="true"] { opacity: 1; pointer-events: auto; }
/* Utan skript visas alla citat under varandra. */
html:not(.har-js) .stensund-citat__q { grid-area: auto; opacity: 1; pointer-events: auto; margin-bottom: 2.5rem; }
.stensund-citat__q p { margin: 0; max-inline-size: 30ch; font-size: clamp(1.75rem, 4vw, 3.125rem); font-style: italic; font-weight: 300; line-height: 1.18; letter-spacing: -0.025em; color: var(--loft-farg-mork); }
.stensund-citat__q cite { display: block; margin-top: 1.625rem; font-size: 0.875rem; font-style: normal; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #5c574f; }
.stensund-citat__styr { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.stensund-citat__styr[hidden] { display: none; }
.stensund-citat__paus { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; border: 0; background: none; color: var(--loft-farg-mork); cursor: pointer; }
.stensund-citat__paus svg { inline-size: 0.75rem; block-size: 0.75rem; }
.stensund-citat__paus[aria-pressed="true"] svg rect:first-child { transform: translateX(2px) scaleX(0.01); }
.stensund-citat__prickar { display: flex; }
.stensund-citat__prickar button { display: grid; place-items: center; inline-size: 2.125rem; block-size: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.stensund-citat__prickar button::before { content: ""; inline-size: 1.625rem; block-size: 3px; background: rgb(28 28 27 / 0.3); }
.stensund-citat__prickar button[aria-selected="true"]::before { background: var(--loft-farg-accent); }
.stensund-citat__sida { padding-top: 1.125rem; border-top: 2px solid var(--loft-farg-mork); font-size: 1rem; line-height: 1.6; color: #4a463f; }
.stensund-citat__sida a { display: block; inline-size: fit-content; margin-top: 0.625rem; font-weight: 700; }

/* ---------- Aktuellt ---------- */
.stensund-kolumner { display: grid; gap: 3.5rem 4.5rem; align-items: start; }
@media (min-width: 60rem) { .stensund-kolumner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.stensund-kolrubrik { margin: 0 0 1.125rem; font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; }
.stensund-kolingress { margin: -0.5rem 0 1rem; font-size: 0.9375rem; color: var(--loft-farg-text-dampad); }
.stensund-nyheter, .stensund-datum { margin: 0; padding: 0; border-top: 2px solid var(--loft-farg-mork); list-style: none; }
.stensund-nyheter li { border-bottom: 1px solid var(--loft-farg-kant); }
.stensund-nyheter__rad { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-block: 1.625rem; color: inherit; text-decoration: none; }
@media (max-width: 47.9375rem) { .stensund-nyheter__rad { grid-template-columns: 1fr; gap: 0.375rem; } }
.stensund-nyheter__datum { font-size: 0.8125rem; font-weight: 700; line-height: 1.5; color: var(--loft-farg-text-dampad); }
.stensund-nyheter__titel { display: block; font-size: 1.4375rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; transition: color var(--loft-overgang); }
.stensund-nyheter__rad:hover .stensund-nyheter__titel { color: var(--loft-farg-accent); }
.stensund-nyheter__text { display: block; margin-top: 0.5rem; font-size: 1rem; line-height: 1.6; color: #4a463f; }
.stensund-mer { margin: 1.25rem 0 0; }
.stensund-datum li { display: grid; gap: 0.1875rem; padding-block: 1.25rem; border-bottom: 1px solid var(--loft-farg-kant); }
.stensund-datum__nar { font-size: 0.875rem; font-weight: 700; line-height: 1.4; color: var(--loft-farg-accent); }
.stensund-datum__vad { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--loft-farg-mork); }
.stensund-datum__text { font-size: 0.9375rem; line-height: 1.55; color: #4a463f; }

/* ---------- Två rutor ---------- */
.stensund-duo { display: grid; gap: 2px; background: var(--loft-farg-mork); }
@media (min-width: 48rem) { .stensund-duo { grid-template-columns: 1fr 1fr; } }
.stensund-ruta { position: relative; display: flex; align-items: flex-end; min-block-size: 28.75rem; overflow: hidden; color: #fff; isolation: isolate; }
.stensund-ruta > img { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 0.6s ease; }
.stensund-ruta:hover > img { transform: scale(1.05); }
.stensund-ruta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(18 18 26 / 0.9) 0%, rgb(18 18 26 / 0.62) 55%, rgb(18 18 26 / 0.18) 100%); }
.stensund-ruta__text { display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.75rem, 4vw, 2.75rem); }
.stensund-ruta .stensund-eyebrow { color: #f0c6c8; }
.stensund-ruta h2 { margin: 0; color: #fff; font-size: clamp(1.625rem, 2.8vw, 2.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.stensund-ruta p:not(.stensund-eyebrow) { max-inline-size: 36ch; margin: 0; font-size: 1.0625rem; line-height: 1.6; color: #e5e2dc; }
.stensund-ruta__lank { align-self: flex-start; margin-top: 0.375rem; padding-bottom: 0.25rem; border-bottom: 2px solid var(--loft-farg-accent); color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; }
.stensund-ruta__lank:hover { color: #fff; }

/* ---------- Besök ---------- */
.stensund-besok { padding-block: clamp(3.5rem, 6vw, 5.5rem); border-top: 3px solid var(--loft-farg-accent); background: var(--loft-farg-yta); }
.stensund-besok__rutnat { display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 60rem) { .stensund-besok__rutnat { grid-template-columns: 1fr 1fr; } .stensund-besok__knappar { grid-column: 2; } }
.stensund-besok h2 { max-inline-size: 22ch; margin: 0 0 1rem; font-size: clamp(1.75rem, 3.6vw, 2.875rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.stensund-besok p { max-inline-size: 44ch; margin: 0; font-size: 1.125rem; line-height: 1.65; color: #4a463f; }
.stensund-besok__rader { display: grid; grid-template-columns: 1fr 1fr; gap: 1.625rem 2rem; margin: 0; }
@media (max-width: 30rem) { .stensund-besok__rader { grid-template-columns: 1fr; } }
.stensund-besok__rader dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--loft-farg-text-dampad); }
.stensund-besok__rader dd { margin: 0.3125rem 0 0; font-size: 1.1875rem; font-weight: 700; color: var(--loft-farg-mork); overflow-wrap: anywhere; }
.stensund-besok__rader dd.liten { font-size: 1.0625rem; font-weight: 400; }
.stensund-besok__rader a { color: var(--loft-kurshero-kant, #313b8e); }
.stensund-besok__rader a:hover { color: var(--loft-farg-accent); }
.stensund-besok__knappar { display: flex; flex-wrap: wrap; gap: 0.75rem; }
