/* Receptmallen (Christian 2026-10-24 "alla recept behöver ha mall, dom ska se ut så här"): stor rubrik med kursiv fortsättning,
   bilden till höger som tonar in i marmorn, ljus ingredienslåda och mörk "Gör så här"-ruta med guldsiffror och tipsruta. */
.lc-mall {
	/* Svart i stället för marinblått (Christian 2026-10-24 "fortfarande blått inne på recepten") */
	--mall-ink: #141414;
	--mall-guld: #8b6b3e;
	--mall-guld-ljus: #d8b675;
	--mall-kram: #f8f3ea;
	--mall-kram-linje: #e6dac6;
	--mall-natt: #0a0a0a;
	--mall-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--mall-text: 'Lora', Georgia, serif;
	position: relative;
	overflow: hidden;
	/* Samma bredd som en läsbar sida, inte hela skärmen (Christian 2026-10-24 "måste man ha recepten över hela skärmen?") */
	--mall-bredd: 1280px;
	padding-inline: max(24px, calc((100% - var(--mall-bredd)) / 2));
	padding-bottom: 32px;
	background:
		radial-gradient(1200px 600px at 15% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
		linear-gradient(180deg, #fbfaf8 0%, #f3f1ed 100%);
	color: var(--mall-ink);
}
.lc-mall__smulor { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 18px; font-size: 14px; color: #6b6458; }
.lc-mall__smulor a { color: inherit; }
.lc-mall__smulor a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lc-mall__smulor svg { display: block; opacity: .45; }
.lc-mall__smulor [aria-current] { color: var(--mall-ink); font-weight: 500; }

/* Toppen: texten till vänster, bilden till höger */
.lc-mall__topp {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
	gap: clamp(24px, 3vw, 48px);
	align-items: center;
	padding: 18px 0 30px;
}
.lc-mall__huvud { position: relative; z-index: 2; min-width: 0; }
.lc-mall__bild {
	position: relative;
	order: 2;
	aspect-ratio: 4 / 3;
	max-width: 100%;
	overflow: hidden;
	border-radius: 22px;
	box-shadow: 0 20px 44px rgba(26, 20, 10, .14);
}
.lc-mall__bild:empty { display: none; }
.lc-mall__topp:has(.lc-mall__bild:empty) { grid-template-columns: minmax(0, 1fr); }
.lc-mall__bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.lc-mall h1 { margin: 0; text-wrap: balance; }
.lc-mall__h1 {
	display: block;
	font-family: var(--mall-serif);
	font-weight: 800;
	/* Krymper när ett långt ord annars skulle brytas mitt i (0.62 em är ett brett tecken i Playfair 800) */
	font-size: min(clamp(44px, 5vw, 80px), calc(min(560px, 46vw, 100vw - 48px) / (var(--ord, 8) * .62)));
	line-height: .98;
	overflow-wrap: normal;
	hyphens: manual;
	letter-spacing: -.01em;
	color: var(--mall-ink);
}
.lc-mall__h2 {
	display: block;
	margin-top: 6px;
	font-family: var(--mall-serif);
	font-style: italic;
	font-weight: 500;
	font-size: min(clamp(30px, 3.2vw, 50px), calc(min(560px, 46vw, 100vw - 48px) / (var(--ord2, 8) * .5)));
	line-height: 1.05;
	overflow-wrap: normal;
	hyphens: manual;
	color: var(--mall-guld);
}
.lc-mall__under {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 22px 0 0;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: #2b2b2b;
}
.lc-mall__under::after { content: ''; flex: 0 0 48px; height: 1.5px; background: var(--mall-guld-ljus); }
.lc-mall__ingress { max-width: 440px; margin: 22px 0 0; font-size: 18px; line-height: 1.5; color: #1f2329; }
.lc-mall__fakta { display: flex; flex-wrap: nowrap; align-items: center; width: max-content; max-width: calc(100vw - 48px); margin: 28px 0 0; padding: 0; list-style: none; }
.lc-mall__fakta li { display: flex; align-items: center; gap: 12px; padding: 0 26px; border-left: 1.5px solid #cfc6b7; }
.lc-mall__fakta li:first-child { padding-left: 0; border-left: 0; }
.lc-mall__fakta svg { flex: none; color: var(--mall-ink); }
.lc-mall__fakta span { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.lc-mall__fakta b { font-size: 21px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.lc-mall__fakta small { margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #333; }
.lc-mall__fakta .lc-mall__niva { font-size: 17px; letter-spacing: .04em; }

/* Korten */
.lc-mall__kort {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
	gap: 18px;
	align-items: start;
	margin-top: 8px;
}
.lc-mall h2 { margin: 0; font-family: var(--mall-serif); font-weight: 700; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; }

.lc-mall__ingredienser {
	padding: 26px 34px 30px;
	border: 1.5px solid var(--mall-kram-linje);
	border-radius: 20px;
	background: var(--mall-kram);
	box-shadow: 0 18px 40px rgba(40, 30, 10, .10);
}
.lc-mall__ingredienser-topp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lc-mall__ingredienser h2 { color: var(--mall-ink); }
.lc-mall__portioner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 6px 5px 16px;
	border-radius: 999px;
	background: #efe2c9;
	font-size: 15px;
	color: var(--mall-ink);
}
.lc-mall__portioner span { margin-right: 6px; white-space: nowrap; }
.lc-mall__portioner button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
	color: var(--mall-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.lc-mall__portioner button:disabled { opacity: .4; cursor: default; }
/* Matlagningsläge: skjutreglage under fakta */
.lc-mall__laga {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-top: 22px;
	cursor: pointer;
	color: var(--mall-ink);
}
.lc-mall__laga input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lc-mall__laga-knapp {
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: #d9d4ca;
	transition: background .2s;
}
.lc-mall__laga-knapp::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.lc-mall__laga input:checked + .lc-mall__laga-knapp { background: var(--mall-ink); }
.lc-mall__laga input:checked + .lc-mall__laga-knapp::after { transform: translateX(20px); background: #d8b675; }
.lc-mall__laga input:focus-visible + .lc-mall__laga-knapp { outline: 2px solid #d8b675; outline-offset: 2px; }
.lc-mall__laga b { font-size: 17px; font-weight: 700; }
.lc-mall__laga small { font-size: 14px; opacity: .75; }
.lc-mall__lista { margin: 0; padding: 0; list-style: none; }
.lc-mall__lista li {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	align-items: center;
	gap: 0 14px;
	min-height: 52px;
	padding: 4px 0;
	border-bottom: 1px solid var(--mall-kram-linje);
	font-size: 16.5px;
	color: #1f2329;
}
.lc-mall__lista li:last-child { border-bottom: 0; }
.lc-mall__lista .lc-mall__grupp {
	display: block;
	min-height: 0;
	padding: 18px 0 6px;
	font-family: var(--mall-serif);
	font-style: italic;
	font-size: 19px;
	color: var(--mall-guld);
}
.lc-mall__ikon { display: grid; place-items: center; width: 48px; height: 40px; font-size: 28px; line-height: 1; }
.lc-mall__ikon img { width: 48px; height: 40px; object-fit: contain; }
.lc-mall__mangd { text-align: right; white-space: nowrap; }

.lc-mall__steg {
	padding: 26px 34px 30px;
	border-radius: 20px;
	background:
		radial-gradient(500px 300px at 90% 10%, rgba(216, 182, 117, .10), transparent 70%),
		radial-gradient(600px 400px at 0% 100%, rgba(216, 182, 117, .05), transparent 70%),
		var(--mall-natt);
	box-shadow: 0 20px 44px rgba(0, 0, 0, .28);
	color: #f4efe6;
}
.lc-mall__steg h2 { margin-bottom: 14px; color: var(--mall-guld-ljus); }
.lc-mall__steg ol { margin: 0; padding: 0; list-style: none; }
.lc-mall__steg li {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(216, 182, 117, .18);
	cursor: pointer;
}
.lc-mall__steg li:last-child { border-bottom: 0; }
.lc-mall__steg li b {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1.5px solid var(--mall-guld-ljus);
	border-radius: 50%;
	font-family: var(--mall-text);
	font-weight: 500;
	font-size: 15px;
	color: var(--mall-guld-ljus);
}
.lc-mall__steg li p { margin: 0; font-family: var(--mall-text); font-size: 16.5px; line-height: 1.5; color: #f4efe6; }
.lc-mall__steg li[data-done="1"] p { opacity: .45; text-decoration: line-through; text-decoration-color: rgba(216, 182, 117, .6); }
.lc-mall__steg li[data-done="1"] b { background: var(--mall-guld-ljus); color: var(--mall-natt); }
.lc-mall__tips {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	padding: 16px 22px;
	border: 1.5px solid rgba(216, 182, 117, .7);
	border-radius: 14px;
	color: var(--mall-guld-ljus);
}
.lc-mall__tips b { font-family: var(--mall-serif); font-style: italic; font-weight: 600; font-size: 28px; }
.lc-mall__tips p { margin: 0; font-size: 15px; line-height: 1.5; color: #f4efe6; }

/* Säkerhetsruta ovanför stegen (receptkontrollens fasta säkerhetstexter) */
.lc-mall__sakerhet {
	margin: 0 0 22px;
	padding: 14px 18px 14px 50px;
	position: relative;
	border-radius: 14px;
	background: #f6efe2;
	border: 1.5px solid #d8b675;
	color: #2f2a22;
}
.lc-mall__sakerhet::before {
	content: "i";
	position: absolute; left: 16px; top: 14px;
	width: 22px; height: 22px; border-radius: 50%;
	background: #a8843f; color: #fff;
	font: italic 700 14px/22px var(--mall-serif); text-align: center;
}
.lc-mall__sakerhet b { display: block; margin-bottom: 4px; font-family: var(--mall-text); font-size: 16px; font-weight: 700; color: #6b5323; }
.lc-mall__sakerhet ul { margin: 0; padding-left: 18px; list-style: disc; }
.lc-mall__sakerhet li { display: list-item; padding: 0; border: 0; cursor: default; margin: 4px 0 0; font-family: var(--mall-text); font-size: 15px; line-height: 1.5; color: #2f2a22; }

/* Handla receptet under korten */
.lc-mall__handla { position: relative; z-index: 2; max-width: 620px; margin-top: 22px; }
.lc-mall__handla .dalafisk-recipe__buy { border: 1.5px solid var(--mall-kram-linje); border-radius: 20px; background: var(--mall-kram); }

@media (max-width: 1100px) {
	.lc-mall__kort { grid-template-columns: 1fr; }
	.lc-mall__fakta li { gap: 8px; padding: 0 12px; }
	.lc-mall__fakta svg { width: 22px; height: 22px; }
	.lc-mall__fakta b, .lc-mall__fakta .lc-mall__niva { font-size: 15px; }
	.lc-mall__fakta small { font-size: 10.5px; }
	.lc-mall__handla { max-width: none; }
}
@media (max-width: 820px) {
	.lc-mall__topp { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
	.lc-mall__bild { order: 0; width: 100%; border-radius: 18px; }
	.lc-mall__fakta { flex-wrap: wrap; gap: 12px 20px; width: auto; max-width: none; }
	.lc-mall__fakta li, .lc-mall__fakta li:first-child { padding: 0; border-left: 0; white-space: nowrap; }
	.lc-mall__huvud { padding-top: 6px; }
	.lc-mall__under { gap: 12px; font-size: 12px; letter-spacing: .22em; }
	.lc-mall__under::after { flex-basis: 28px; }
	.lc-mall__ingredienser, .lc-mall__steg { padding: 22px 18px 24px; border-radius: 18px; }
	.lc-mall__lista li { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0 10px; font-size: 15.5px; }
	.lc-mall__ikon { width: 38px; font-size: 24px; }
	.lc-mall__steg li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
	.lc-mall__steg li b { width: 32px; height: 32px; font-size: 13.5px; }
	.lc-mall__steg li p { font-size: 15.5px; }
	.lc-mall__tips { grid-template-columns: auto minmax(0, 1fr); }
	.lc-mall__tips svg { display: none; }
}

/* Spara receptet och dela (Christian 2026-10-26) */
.lc-mall__spara { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.lc-mall__spara-knapp { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; color: var(--mall-ink); background: #fff; border: 1.5px solid var(--mall-ink); border-radius: 999px; cursor: pointer; }
.lc-mall__spara-knapp:hover { background: #f4f4f4; }
.lc-mall__spara-knapp[aria-pressed="true"] { color: #fff; background: var(--mall-ink); }
.lc-mall__spara-knapp[aria-pressed="true"] svg { fill: currentColor; }
.lc-mall__spara-knapp:disabled { opacity: .6; cursor: default; }
.lc-mall__spara-knapp:focus-visible { outline: 2px solid var(--mall-ink); outline-offset: 2px; }
.lc-mall__spara-info { margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
.lc-mall__spara-info a { color: var(--mall-ink); font-weight: 600; }

/* Upphovsrättsraden under stegen (Christian 2026-11-01) */
.lc-mall__upphov { margin: 28px 0 0; font-size: 12px; line-height: 1.5; color: #77736c; }
