/* ============================================================
   SKAFFERIET – MENUSKABELONEN
   Bruges både i editoren og på siden, så man skriver i det,
   gæsten ser. Rammerne kommer fra blokstilene i editoren.
   ============================================================ */

.is-style-skaf-menuafsnit,
.is-style-skaf-tilvalg {
	counter-reset: skaf-ret;
	margin-top: 32px;
	margin-bottom: 32px;
	padding: 24px;
	border: 1px solid #e6e5df;
	border-radius: 14px;
	background: #faf9f5;
}
.is-style-skaf-menuafsnit > h2,
.is-style-skaf-tilvalg > h2 {
	margin-top: 0;
	margin-bottom: 4px;
	font-size: 26px;
}

/* En ret: en række med et lille nummer foran, så man kan sige »forret 2«. */
.is-style-skaf-ret,
.is-style-skaf-ret-vegetar {
	position: relative;
	counter-increment: skaf-ret;
	padding: 16px 0 16px 44px;
	border-top: 1px solid #e6e5df;
}
h2 + .is-style-skaf-ret,
h2 + .is-style-skaf-ret-vegetar {
	border-top: 0;
}
.is-style-skaf-menuafsnit > .is-style-skaf-ret::before,
.is-style-skaf-menuafsnit > .is-style-skaf-ret-vegetar::before {
	content: counter(skaf-ret);
	position: absolute;
	left: 0;
	top: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e4efe8;
	color: #38684e;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}
.is-style-skaf-tilvalg > .is-style-skaf-ret,
.is-style-skaf-tilvalg > .is-style-skaf-ret-vegetar {
	padding-left: 0;
}
/* Højere vægt end temaets og sidens afstande, så linjerne i en ret står tæt. */
.wp-block-group.is-style-skaf-ret,
.wp-block-group.is-style-skaf-ret-vegetar {
	margin-top: 0;
	margin-bottom: 0;
}
.wp-block-group.is-style-skaf-ret > *,
.wp-block-group.is-style-skaf-ret-vegetar > * {
	margin-top: 0;
	margin-bottom: 4px;
}
.is-style-skaf-ret > p:first-child,
.is-style-skaf-ret-vegetar > p:first-child {
	font-weight: 600;
	color: #1c1c1c;
}

/* Vegetar: et lille mærke ved rettens navn. */
.is-style-skaf-ret-vegetar > p:first-child::after {
	content: "Vegetar";
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e4efe8;
	color: #38684e;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: 2px;
	white-space: nowrap;
}

/* Pris eller tillæg: et lille skilt under retten. */
p.is-style-skaf-tillaeg,
.wp-block-group.is-style-skaf-ret > p.is-style-skaf-tillaeg,
.wp-block-group.is-style-skaf-ret-vegetar > p.is-style-skaf-tillaeg {
	display: inline-block;
	margin: 6px 0 0;
	padding: 3px 12px;
	border: 1px solid #e6e5df;
	border-radius: 999px;
	background: #fff;
	color: #38684e;
	font-size: 14px;
	font-weight: 600;
}

/* Serveres med: det, der følger med alle retter i afsnittet. */
.wp-block-group p.is-style-skaf-serveres {
	margin: 8px 0 0;
	padding-top: 14px;
	border-top: 1px dashed #d8d6cc;
	color: #3d3c37;
	font-size: 15px;
}

/* Hapser: en enkel liste i rammen. */
ul.is-style-skaf-hapsere {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}
ul.is-style-skaf-hapsere li {
	padding: 10px 0;
	border-top: 1px solid #e6e5df;
}
ul.is-style-skaf-hapsere li:first-child {
	border-top: 0;
}

@media (max-width: 599px) {
	.is-style-skaf-menuafsnit,
	.is-style-skaf-tilvalg {
		padding: 18px;
	}
}

/* Fra menubyggeren: vegetar i en liste og en note under en ret. */
.skaf-vegetar {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e4efe8;
	color: #38684e;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: 2px;
}
.wp-block-group.is-style-skaf-ret > p.skaf-note,
.wp-block-group.is-style-skaf-ret-vegetar > p.skaf-note {
	margin-top: 4px;
	color: #6b6a64;
	font-size: 14px;
	font-style: italic;
}
.skaf .skaf-afsnit > h2:first-child {
	margin-top: 0;
}
