/* Recepty bez mlieka: archív, karta a detail receptu. Paleta "Blue Bell" (#2b9dd6), border-radius 0. */


.bm-recept-page {
	--bm-ink: #0d2230;
	--bm-text: #33475a;
	--bm-muted: #6b7f90;
	--bm-line: #dbe9f2;
	--bm-surface: #ffffff;
	--bm-soft: var(--bm-50);
	--bm-gap: clamp(16px, 3vw, 32px);
	color: var(--bm-text);
	width: 100%;
}

.bm-recept-page *,
.bm-recept-page *::before,
.bm-recept-page *::after {
	border-radius: 0 !important;
}

.bm-recept-page a { color: var(--bm-primary-dark); }
.bm-recept-page a:hover { color: var(--bm-700); }

/* Astra: plná šírka, bez bielej "karty" okolo obsahu */
.ast-separate-container .bm-recept-page .bm-recept,
.ast-separate-container .bm-recept-page { background: transparent; padding: 0; }

/* ---------- Spoločné ---------- */

.bm-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	font-size: 13px;
	color: var(--bm-muted);
}
.bm-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--bm-200); }
.bm-breadcrumbs a { color: var(--bm-muted); text-decoration: none; }
.bm-breadcrumbs a:hover { color: var(--bm-primary-dark); }

.bm-label {
	display: inline-block;
	padding: 5px 10px;
	background: var(--bm-100);
	color: var(--bm-700) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	margin: 0 0 14px;
}

.bm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border: 2px solid var(--bm-primary);
	background: transparent;
	color: var(--bm-primary-dark);
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.bm-btn--primary { background: var(--bm-primary); color: #fff !important; }
.bm-btn--primary:hover,
.bm-btn--primary:focus { background: var(--bm-primary-dark); border-color: var(--bm-primary-dark); }
.bm-btn--ghost:hover,
.bm-btn--ghost:focus { background: var(--bm-50); }
.bm-btn:focus-visible { outline: 3px solid var(--bm-300); outline-offset: 2px; }

.bm-section-title {
	font-size: clamp(22px, 2.4vw, 28px);
	color: var(--bm-ink);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--bm-primary);
	display: inline-block;
}
.bm-section-title small { font-size: 14px; color: var(--bm-muted); font-weight: 400; }

.bm-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 200px;
	background:
		repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.12) 18px 36px),
		linear-gradient(135deg, var(--bm-300), var(--bm-600));
	color: #fff;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-size: 14px;
}

.bm-stars {
	position: relative;
	display: inline-block;
	width: 5.4em;
	height: 1.1em;
	vertical-align: -0.15em;
	background: linear-gradient(90deg, var(--bm-100) 0 100%);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 0l3.1 7 7.6.7-5.8 5 1.8 7.4L12 16.3 5.3 20.1l1.8-7.4-5.8-5L8.9 7z'/%3E%3C/svg%3E") repeat-x left center / 1.08em 1.08em;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 0l3.1 7 7.6.7-5.8 5 1.8 7.4L12 16.3 5.3 20.1l1.8-7.4-5.8-5L8.9 7z'/%3E%3C/svg%3E") repeat-x left center / 1.08em 1.08em;
}
.bm-stars__fill { position: absolute; inset: 0 auto 0 0; background: #f5a623; }

.bm-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.bm-badge {
	padding: 6px 12px;
	border: 1px solid var(--bm-200);
	background: var(--bm-surface);
	color: var(--bm-700);
	font-size: 13px;
	font-weight: 600;
}
.bm-badge--primary { background: var(--bm-primary); border-color: var(--bm-primary); color: #fff; }

.bm-ad { margin: 0 0 28px; }

/* ---------- Archív ---------- */

.bm-archive__hero {
	position: relative;
	padding: clamp(28px, 5vw, 56px);
	margin-bottom: 24px;
	background: var(--bm-900);
	color: #e6f3fa;
	overflow: hidden;
}
.bm-archive__hero::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 260px;
	height: 260px;
	border: 40px solid var(--bm-primary);
	opacity: .35;
	transform: rotate(18deg);
	pointer-events: none;
}
.bm-archive__hero > * { position: relative; z-index: 1; }
.bm-archive__hero .bm-label { background: var(--bm-primary); color: #fff !important; }
.bm-archive__title { color: #fff; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 14px; max-width: 18ch; }
.bm-archive__intro { max-width: 62ch; font-size: 17px; color: var(--bm-100); }
.bm-archive__intro p:last-child { margin-bottom: 0; }

.bm-filter {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 0;
	margin-top: 28px;
	max-width: 760px;
}
.bm-filter__search,
.bm-filter__select {
	height: 52px;
	border: 0 !important;
	padding: 0 16px !important;
	font-size: 16px;
	background: #fff;
	color: var(--bm-ink);
	margin: 0;
}
.bm-filter__select { border-left: 1px solid var(--bm-line) !important; min-width: 190px; }
/* Astra dáva vyhľadávaciemu poľu vlastnú výšku a vzhľad, prebijeme ich. */
.bm-recept-page input.bm-filter__search[type="search"] {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	height: 52px !important;
	min-height: 52px;
	line-height: 52px;
	width: 100%;
}
.bm-filter .bm-btn { min-height: 52px; border: 0; }

.bm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.bm-chips--small { margin-bottom: 28px; }
.bm-chips__label { font-size: 13px; color: var(--bm-muted); font-weight: 600; margin-right: 4px; }
.bm-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--bm-line);
	background: var(--bm-surface);
	color: var(--bm-ink) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s, background-color .15s;
}
.bm-chips--small .bm-chip { padding: 6px 12px; font-size: 13px; }
.bm-chip span { color: var(--bm-muted); font-weight: 400; font-size: 12px; }
.bm-chip:hover { border-color: var(--bm-primary); }
.bm-chip.is-active { background: var(--bm-primary); border-color: var(--bm-primary); color: #fff !important; }
.bm-chip.is-active span { color: var(--bm-100); }

.bm-archive__count { font-size: 14px; color: var(--bm-muted); margin: 0 0 16px; }

.bm-grid { display: grid; gap: var(--bm-gap); }
.bm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bm-grid__ad { grid-column: 1 / -1; }

.bm-card {
	display: flex;
	flex-direction: column;
	background: var(--bm-surface);
	border: 1px solid var(--bm-line);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bm-card:hover { transform: translateY(-3px); border-color: var(--bm-200); box-shadow: 0 14px 30px -18px rgba(13, 63, 86, .45); }
.bm-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bm-50); }
.bm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bm-card:hover .bm-card__media img { transform: scale(1.04); }
.bm-card__media .bm-placeholder { min-height: 0; }
.bm-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.bm-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-primary-dark); }
.bm-card__title { font-size: 19px; line-height: 1.3; margin: 0; }
.bm-card__title a { color: var(--bm-ink) !important; text-decoration: none; }
.bm-card__title a:hover { color: var(--bm-primary-dark) !important; }
.bm-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--bm-muted); }
.bm-card__meta li + li::before { content: "•"; margin-right: 14px; color: var(--bm-200); }
.bm-card__author { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--bm-line); font-size: 13px; color: var(--bm-muted); }

.bm-pagination { margin: 40px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--bm-line);
	background: var(--bm-surface);
	color: var(--bm-ink);
	font-weight: 600;
	text-decoration: none;
}
.bm-pagination .page-numbers.current,
.bm-pagination .page-numbers:hover { background: var(--bm-primary); border-color: var(--bm-primary); color: #fff; }

.bm-empty { padding: 48px 24px; text-align: center; background: var(--bm-50); border: 1px dashed var(--bm-200); }

/* ---------- Detail receptu ---------- */

.bm-recept__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: var(--bm-gap);
	align-items: center;
	margin-bottom: var(--bm-gap);
}
.bm-recept__title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; color: var(--bm-ink); margin: 0 0 16px; letter-spacing: -.01em; }
.bm-recept__lead { font-size: 18px; line-height: 1.6; margin: 0 0 20px; color: var(--bm-text); }
.bm-recept__byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--bm-muted); margin-bottom: 18px; }
.bm-recept__byline strong { color: var(--bm-ink); }
.bm-recept__avatar { width: 40px; height: 40px; object-fit: cover; }
.bm-dot { width: 4px; height: 4px; background: var(--bm-200); }
.bm-recept__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.bm-recept__hero-media { position: relative; padding: 0 16px 16px 0; }
.bm-recept__hero-media::before {
	content: "";
	position: absolute;
	inset: 16px 0 0 16px;
	background: var(--bm-100);
	z-index: 0;
}
.bm-recept__image-note {
	position: absolute;
	z-index: 2;
	left: 10px;
	bottom: 26px;
	padding: 4px 8px;
	background: rgba(8, 31, 43, .7);
	color: #fff;
	font-size: 11px;
	letter-spacing: .04em;
}
.bm-recept__image { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }

.bm-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	margin: 0 0 var(--bm-gap);
	border-top: 3px solid var(--bm-primary);
	background: var(--bm-50);
}
.bm-fact { padding: 16px 20px; border-right: 1px solid var(--bm-line); }
.bm-fact:last-child { border-right: 0; }
.bm-fact dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-muted); margin: 0 0 4px; }
.bm-fact dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--bm-ink); }
.bm-fact__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px !important; }
.bm-fact__rating span:last-child { font-weight: 500; color: var(--bm-muted); }

.bm-recept__intro { max-width: 760px; font-size: 17px; line-height: 1.75; margin: 0 0 var(--bm-gap); }
.bm-recept__intro h2 { font-size: 24px; color: var(--bm-ink); margin-top: 1.6em; }

.bm-recept__body {
	display: grid;
	grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
	gap: calc(var(--bm-gap) * 1.5);
	align-items: start;
	scroll-margin-top: 90px;
	margin-bottom: calc(var(--bm-gap) * 1.5);
}

.bm-panel { background: var(--bm-surface); border: 1px solid var(--bm-line); border-top: 4px solid var(--bm-primary); }
.bm-ingredients { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
.admin-bar .bm-ingredients { top: 56px; }
.bm-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--bm-line); background: var(--bm-50); }
.bm-panel__title { font-size: 22px; margin: 0; color: var(--bm-ink); }
.bm-panel__meta { margin: 0; font-size: 14px; color: var(--bm-muted); }

.bm-servings { display: inline-flex; align-items: center; border: 1px solid var(--bm-200); background: #fff; }
.bm-recept-page .bm-servings__btn {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bm-primary-dark);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.bm-recept-page .bm-servings__btn:hover,
.bm-recept-page .bm-servings__btn:focus { background: var(--bm-primary); color: #fff; }
.bm-servings__value { min-width: 28px; text-align: center; font-weight: 800; color: var(--bm-ink); }
.bm-servings__label { padding-right: 8px; font-size: 13px; color: var(--bm-muted); }

.bm-ing-list { list-style: none; margin: 0; padding: 8px 0; }
.bm-ing-list__section { padding: 16px 20px 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-primary-dark); }
.bm-ing label { display: flex; gap: 12px; padding: 10px 20px; cursor: pointer; line-height: 1.45; margin: 0; }
.bm-ing label:hover { background: var(--bm-50); }
.bm-ing__check { position: absolute; opacity: 0; pointer-events: none; }
.bm-ing__box { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--bm-300); background: #fff; transition: background-color .15s, border-color .15s; }
.bm-ing__check:focus-visible + .bm-ing__box { outline: 3px solid var(--bm-300); outline-offset: 2px; }
.bm-ing__check:checked + .bm-ing__box {
	background: var(--bm-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E") center / 14px no-repeat;
	border-color: var(--bm-primary);
}
.bm-ing__check:checked ~ .bm-ing__text { color: var(--bm-muted); text-decoration: line-through; }
.bm-ing__qty { color: var(--bm-ink); margin-right: 2px; }
.bm-ing__note { display: block; font-size: 13px; color: var(--bm-muted); }
.bm-ing__sub { display: block; font-size: 13px; color: var(--bm-600); }

.bm-step-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.bm-step-list__section h3 { font-size: 20px; color: var(--bm-ink); margin: 28px 0 12px; }
.bm-step {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid var(--bm-line);
	cursor: pointer;
	transition: opacity .2s;
}
.bm-step:first-child { padding-top: 4px; }
.bm-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--bm-primary);
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.bm-step__content { font-size: 17px; line-height: 1.7; }
.bm-step__content p:last-child { margin-bottom: 0; }
.bm-step__image { margin: 16px 0 0; }
.bm-step__image img { width: 100%; max-width: 560px; height: auto; display: block; }
.bm-step.is-done { opacity: .5; }
.bm-step.is-done .bm-step__num { background: var(--bm-800); }

.bm-notes { margin-top: 28px; padding: 22px 24px; background: var(--bm-50); border-left: 4px solid var(--bm-primary); }
.bm-notes h3 { margin: 0 0 10px; font-size: 18px; color: var(--bm-ink); }
.bm-notes p:last-child { margin-bottom: 0; }

.bm-video, .bm-gallery, .bm-nutrition, .bm-related { margin-bottom: calc(var(--bm-gap) * 1.5); }
.bm-video__frame { position: relative; aspect-ratio: 16 / 9; }
.bm-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.bm-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.bm-gallery__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.bm-nutrition table { width: 100%; max-width: 520px; border-collapse: collapse; border: 0; margin: 0; }
.bm-nutrition th, .bm-nutrition td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--bm-line); text-align: left; font-size: 15px; }
.bm-nutrition td { text-align: right; font-weight: 700; color: var(--bm-ink); }

.bm-rate {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px 32px;
	margin-bottom: 24px;
	background: var(--bm-900);
	color: #fff;
}
.bm-rate__title { color: #fff; margin: 0; font-size: 22px; }
.bm-rate__stars { display: flex; flex-direction: row-reverse; gap: 4px; }
.bm-recept-page .bm-rate__stars button {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--bm-700);
	background: transparent;
	color: var(--bm-300);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.bm-recept-page .bm-rate__stars button:hover,
.bm-recept-page .bm-rate__stars button:hover ~ button,
.bm-recept-page .bm-rate__stars button.is-on { background: #f5a623; border-color: #f5a623; color: #fff; }
.bm-rate__stars[aria-disabled="true"] button { cursor: default; }
.bm-rate__msg { flex-basis: 100%; margin: 0; min-height: 1em; font-size: 14px; color: var(--bm-200); }

.bm-source { font-size: 14px; color: var(--bm-muted); margin: 0 0 var(--bm-gap); }


/* ---------- Responzívne ---------- */

@media (max-width: 1024px) {
	.bm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-recept__body { grid-template-columns: 1fr; }
	.bm-ingredients { position: static; max-height: none; }
}

@media (max-width: 768px) {
	.bm-recept__hero { grid-template-columns: 1fr; }
	.bm-recept__hero-media { order: -1; }
	.bm-recept__hero-media { padding: 0 10px 10px 0; }
	.bm-recept__hero-media::before { inset: 10px 0 0 10px; }
	.bm-filter { grid-template-columns: 1fr; gap: 8px; }
	.bm-filter__select { border-left: 0 !important; }
	.bm-fact { border-right: 0; border-bottom: 1px solid var(--bm-line); }
	.bm-step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
	.bm-step__num { width: 44px; height: 44px; font-size: 16px; }
	.bm-rate { padding: 22px; }
}

@media (max-width: 560px) {
	.bm-grid--3 { grid-template-columns: 1fr; }
	.bm-recept__actions .bm-btn { flex: 1 1 auto; }
}

/* ---------- Tlač ---------- */

@media print {
	.site-header, .site-footer, .ast-breadcrumbs-wrapper, .bm-breadcrumbs, .bm-recept__actions, .bm-ad, .bm-rate,
	.bm-related, .bm-servings__btn, .bm-gallery, .bm-video, .post-navigation, #comments, .adsbygoogle {
		display: none !important;
	}
	.bm-recept__hero { grid-template-columns: 1fr 200px; }
	.bm-recept__hero-media::before { display: none; }
	.bm-recept__body { grid-template-columns: 1fr; }
	.bm-ingredients { position: static; max-height: none; border: 1px solid #999; }
	.bm-step { break-inside: avoid; }
	.bm-step__num { background: none; color: #000; border: 2px solid #000; }
	.bm-recept-page { color: #000; }
}
