/* BatchCooked front-end styles. Everything is scoped to .bc-wrap. */

.bc-wrap {
	--bc-ink: #14211e;
	--bc-spinach: #1f4d3f;
	--bc-spinach-deep: #143429;
	--bc-chalk: #f1f6f3;
	--bc-line: #d3dfd9;
	--bc-muted: #52645d;
	--bc-saffron: #f2b632;
	--bc-ice: #2d6aa3;
	--bc-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
	--bc-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;

	color: var(--bc-ink);
	font-family: var(--bc-serif);
	font-size: 1.0625rem;
	line-height: 1.65;
	margin: 2rem 0;
}
.bc-wrap *, .bc-wrap *::before, .bc-wrap *::after { box-sizing: border-box; }
.bc-wrap a { color: inherit; }
.bc-wrap :focus-visible { outline: 3px solid var(--bc-ice); outline-offset: 2px; }
.bc-wrap .bc-sr {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Headings ---------- */
.bc-wrap .bc-h2,
.bc-wrap .bc-h3,
.bc-wrap .bc-group,
.bc-wrap .bc-hero-title,
.bc-wrap .bc-card-title {
	font-family: var(--bc-sans);
	color: inherit;
	letter-spacing: -0.015em;
	text-transform: none;
}
.bc-wrap .bc-h2 { font-size: 1.65rem; line-height: 1.15; font-weight: 800; margin: 0 0 1rem; }
.bc-wrap .bc-h3 { font-size: 1.2rem; line-height: 1.2; font-weight: 800; margin: 0 0 .5rem; }
.bc-wrap .bc-group { font-size: 1.05rem; font-weight: 800; margin: 1.5rem 0 .25rem; }

/* ---------- Buttons and links ---------- */
.bc-wrap .bc-btn {
	display: inline-block;
	font: 700 .95rem/1 var(--bc-sans);
	padding: .8rem 1.1rem;
	border: 2px solid var(--bc-ink);
	background: transparent;
	color: var(--bc-ink);
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
}
.bc-wrap .bc-btn:hover { background: var(--bc-ink); color: #fff; }
.bc-wrap .bc-link {
	font: 700 .9rem/1.2 var(--bc-sans);
	background: none; border: 0; padding: 0;
	color: var(--bc-spinach);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.bc-wrap .bc-link:hover { color: var(--bc-ink); }

/* ---------- Chips ---------- */
.bc-wrap .bc-chip {
	display: inline-block;
	font: 600 .9rem/1 var(--bc-sans);
	padding: .5rem .85rem;
	border: 1.5px solid var(--bc-line);
	border-radius: 999px;
	text-decoration: none;
	color: var(--bc-ink);
	background: #fff;
}
.bc-wrap .bc-chip:hover { border-color: var(--bc-spinach); }
.bc-wrap .bc-chip[aria-current="true"] { background: var(--bc-spinach); border-color: var(--bc-spinach); color: #fff; }
.bc-wrap .bc-chip-ice[aria-current="true"] { background: var(--bc-ice); border-color: var(--bc-ice); }
.bc-wrap .bc-chip-ice:hover { border-color: var(--bc-ice); }

/* ---------- Browse page ---------- */
.bc-wrap .bc-hero {
	background: var(--bc-spinach);
	color: #fff;
	border-radius: 6px;
	padding: clamp(1.5rem, 5vw, 3.25rem);
	margin-bottom: 1.5rem;
}
.bc-wrap .bc-hero-title {
	font-size: clamp(2.1rem, 6vw, 3.6rem);
	line-height: 1.02;
	font-weight: 800;
	margin: 0 0 .6rem;
	color: #fff;
}
.bc-wrap .bc-hero-intro { max-width: 34rem; margin: 0 0 1.5rem; font-size: 1.15rem; color: #e4efe9; }
.bc-wrap .bc-search { display: flex; gap: .5rem; max-width: 34rem; }
.bc-wrap .bc-search input[type="search"] {
	flex: 1; min-width: 0;
	font: 400 1rem var(--bc-sans);
	padding: .85rem 1rem;
	border: 2px solid #fff;
	border-radius: 3px;
	background: #fff;
	color: var(--bc-ink);
	margin: 0;
}
.bc-wrap .bc-search button {
	font: 800 1rem var(--bc-sans);
	padding: .85rem 1.25rem;
	background: var(--bc-saffron);
	color: var(--bc-ink);
	border: 2px solid var(--bc-saffron);
	border-radius: 3px;
	cursor: pointer;
}
.bc-wrap .bc-search button:hover { background: #fff; border-color: #fff; }

.bc-wrap .bc-filters { margin-bottom: 1.25rem; }
.bc-wrap .bc-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.bc-wrap .bc-filter-name { font: 700 .9rem var(--bc-sans); color: var(--bc-muted); min-width: 3.5rem; }
.bc-wrap .bc-count { font: 600 .95rem var(--bc-sans); color: var(--bc-muted); margin: 1.5rem 0 1rem; display: flex; gap: 1rem; align-items: baseline; }

.bc-wrap .bc-empty { background: var(--bc-chalk); padding: 2rem; border-radius: 4px; text-align: center; }

/* ---------- Cards and grid ---------- */
.bc-wrap .bc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 2rem 1.5rem;
}
.bc-wrap .bc-card-media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 4px;
	background: var(--bc-chalk);
}
.bc-wrap .bc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.bc-wrap .bc-card-blank {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: var(--bc-spinach); background: var(--bc-chalk);
}
.bc-wrap .bc-badge {
	position: absolute; left: .6rem; bottom: .6rem;
	font: 700 .8rem/1 var(--bc-sans);
	background: var(--bc-ice); color: #fff;
	padding: .35rem .6rem;
	border-radius: 3px;
}
.bc-wrap .bc-card-body { padding-top: .75rem; }
.bc-wrap .bc-card-course { font: 700 .85rem var(--bc-sans); color: var(--bc-spinach); margin: 0 0 .15rem; }
.bc-wrap .bc-card-title { font-size: 1.2rem; line-height: 1.25; font-weight: 800; margin: 0 0 .4rem; }
.bc-wrap .bc-card-title a { text-decoration: none; }
.bc-wrap .bc-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bc-wrap .bc-card-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; font: 400 .9rem var(--bc-sans); color: var(--bc-muted); }

.bc-wrap .bc-pagination { margin-top: 2.5rem; }
.bc-wrap .bc-pagination ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.bc-wrap .bc-pagination a,
.bc-wrap .bc-pagination span {
	display: inline-block; font: 700 .95rem var(--bc-sans);
	padding: .55rem .9rem; border: 1.5px solid var(--bc-line); border-radius: 3px;
	text-decoration: none; color: var(--bc-ink);
}
.bc-wrap .bc-pagination a:hover { border-color: var(--bc-spinach); }
.bc-wrap .bc-pagination .current { background: var(--bc-spinach); border-color: var(--bc-spinach); color: #fff; }

/* ---------- Single recipe ---------- */
.bc-wrap.bc-recipe { container-type: inline-size; margin-top: 2.5rem; }

.bc-wrap .bc-facts {
	display: flex; flex-wrap: wrap; gap: 1rem 2.25rem;
	margin: 0 0 1.75rem; padding: 1rem 0;
	border-top: 3px solid var(--bc-ink);
	border-bottom: 1px solid var(--bc-line);
}
.bc-wrap .bc-fact { margin: 0; }
.bc-wrap .bc-fact dt { font: 600 .85rem var(--bc-sans); color: var(--bc-muted); margin: 0; }
.bc-wrap .bc-fact dd { font: 800 1.15rem/1.3 var(--bc-sans); margin: 0; }

/* The storage label: styled like tape on a meal prep lid. */
.bc-wrap .bc-label {
	background: var(--bc-saffron);
	color: var(--bc-ink);
	padding: 1.5rem 1.75rem;
	margin: 0 0 2.5rem;
	border-radius: 3px;
	outline: 2px dashed rgba(20, 33, 30, .55);
	outline-offset: -10px;
	transform: rotate(-.5deg);
}
.bc-wrap .bc-label-title { font: 800 1.1rem var(--bc-sans); margin: 0 0 .75rem; }
.bc-wrap .bc-label-grid { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: flex-end; }
.bc-wrap .bc-keep { display: flex; align-items: baseline; gap: .5rem; }
.bc-wrap .bc-keep-num { font: 800 clamp(2.4rem, 8vw, 3.4rem)/1 var(--bc-sans); letter-spacing: -.03em; }
.bc-wrap .bc-keep-unit { font: 700 1rem/1.2 var(--bc-sans); }
.bc-wrap .bc-reheat { flex: 1 1 14rem; font-family: var(--bc-sans); line-height: 1.4; }
.bc-wrap .bc-reheat strong { display: block; font-weight: 800; }

.bc-wrap .bc-cols { display: grid; gap: 2.5rem; }
@container (min-width: 700px) {
	.bc-wrap .bc-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; }
	.bc-wrap .bc-col-ings { position: sticky; top: 1.5rem; align-self: start; }
}

/* Servings stepper */
.bc-wrap .bc-servings {
	display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
	margin: 0 0 1rem;
}
.bc-wrap .bc-step {
	width: 2.5rem; height: 2.5rem;
	font: 700 1.3rem/1 var(--bc-sans);
	border: 2px solid var(--bc-ink); border-radius: 50%;
	background: #fff; color: var(--bc-ink);
	cursor: pointer; padding: 0;
}
.bc-wrap .bc-step:hover { background: var(--bc-ink); color: #fff; }
.bc-wrap .bc-servings-val { font: 700 1rem var(--bc-sans); min-width: 6.5rem; text-align: center; }
.bc-wrap .bc-servings-num { font-weight: 800; }

/* Ingredients */
.bc-wrap .bc-ings { list-style: none; margin: 0; padding: 0; }
.bc-wrap .bc-ing { margin: 0; border-bottom: 1px solid var(--bc-line); }
.bc-wrap .bc-ing label { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; cursor: pointer; }
.bc-wrap .bc-ing input { margin: .4rem 0 0; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--bc-spinach); }
.bc-wrap .bc-qty { font-weight: 700; }
.bc-wrap .bc-ing input:checked + .bc-ing-text { text-decoration: line-through; color: var(--bc-muted); }

/* Method */
.bc-wrap .bc-method { list-style: none; counter-reset: bc-step; margin: 0; padding: 0; }
.bc-wrap .bc-method li {
	counter-increment: bc-step;
	position: relative;
	margin: 0 0 1.25rem;
	padding-left: 3rem;
	max-width: 42rem;
}
.bc-wrap .bc-method li::before {
	content: counter(bc-step);
	position: absolute; left: 0; top: .05rem;
	width: 2rem; height: 2rem;
	display: flex; align-items: center; justify-content: center;
	font: 800 .95rem var(--bc-sans);
	background: var(--bc-spinach); color: #fff;
	border-radius: 50%;
}

.bc-wrap .bc-notes { background: var(--bc-chalk); border-left: 4px solid var(--bc-spinach); padding: 1.25rem 1.5rem; margin: 2.5rem 0 0; max-width: 46rem; }
.bc-wrap .bc-notes p:last-child { margin-bottom: 0; }

.bc-wrap .bc-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.bc-wrap .bc-actions { margin: 1.5rem 0 0; }
.bc-wrap .bc-related { margin-top: 3.5rem; padding-top: 2rem; border-top: 3px solid var(--bc-ink); }

@media (max-width: 480px) {
	.bc-wrap .bc-search { flex-direction: column; }
	.bc-wrap .bc-label { transform: none; }
}

/* ---------- Printing ---------- */
body.bc-print { margin: 0; padding: 1.5rem; background: #fff; }
.bc-print .bc-print-title { font: 800 2rem/1.1 "Avenir Next", "Segoe UI", Arial, sans-serif; margin: 0 0 1rem; }
.bc-print .bc-wrap.bc-recipe { margin: 0; }
.bc-print .bc-cols { grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.bc-print .bc-col-ings { position: static; }
.bc-print .bc-label { transform: none; }
@media print {
	.bc-wrap .bc-label { transform: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.bc-wrap .bc-method li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.bc-wrap .bc-method li, .bc-wrap .bc-ing { break-inside: avoid; }
	.bc-wrap .bc-noprint { display: none !important; }
}
