/* VGE Recipes. Colors follow the site's Bricks "mean" palette; override the
   custom properties in Bricks (e.g. on the template wrapper) to restyle. */
/* Sizes use em, not rem: the Bricks theme sets a 10px root font size. */
:root {
	--vge-bg: #05272e;
	--vge-bg-deep: #021114;
	--vge-fg: #ffffff;
	--vge-muted: rgba(255, 255, 255, 0.72);
	--vge-accent: #fe8702;
	--vge-accent-deep: #b35900;
	--vge-radius: 12px;
}

.vge-recipe {
	background: var(--vge-bg);
	color: var(--vge-fg);
	border: 1px solid rgba(254, 135, 2, 0.35);
	border-radius: var(--vge-radius);
	padding: clamp(16px, 4vw, 40px);
	scroll-margin-top: 120px; /* sticky header */
}
.vge-recipe h2, .vge-recipe h3, .vge-recipe h4 { color: var(--vge-fg); margin: 0 0 0.5em; }
.vge-recipe__title { font-size: clamp(1.6em, 4vw, 2.4em); }
.vge-recipe__ingame { color: var(--vge-accent); font-style: italic; margin: -0.25em 0 0.75em; }
.vge-recipe__summary { color: var(--vge-muted); max-width: 70ch; }

.vge-recipe__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }
.vge-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--vge-accent); color: var(--vge-bg-deep);
	border: 0; border-radius: 6px; padding: 0.6em 1.1em;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.vge-btn:hover, .vge-btn:focus-visible { background: var(--vge-accent-deep); color: var(--vge-fg); }
.vge-btn--print { background: transparent; color: var(--vge-accent); box-shadow: inset 0 0 0 2px var(--vge-accent); }

.vge-recipe__meta {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px;
	margin: 1.25em 0; padding: 0;
}
.vge-recipe__meta > div { background: var(--vge-bg-deep); border-radius: 8px; padding: 10px 14px; }
.vge-recipe__meta dt { color: var(--vge-accent); font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.06em; }
.vge-recipe__meta dd { margin: 0; font-weight: 700; font-size: 1.1em; }

.vge-recipe__section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 1.5em; }
.vge-scaler { display: inline-flex; align-items: center; gap: 8px; color: var(--vge-muted); }
.vge-scaler__value { color: var(--vge-fg); font-weight: 700; min-width: 2ch; text-align: center; }
.vge-scaler__btn {
	display: inline-flex; align-items: center; justify-content: center; padding: 0;
	width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--vge-accent);
	background: transparent; color: var(--vge-accent); font: inherit; font-size: 1.2em; font-weight: 700; cursor: pointer; line-height: 1;
}
.vge-scaler__btn:hover, .vge-scaler__btn:focus-visible { background: var(--vge-accent); color: var(--vge-bg-deep); }

.vge-recipe .vge-recipe__subhead { color: var(--vge-accent); font-size: 1.1em; margin-top: 1em; }
.vge-recipe__ing-list { list-style: none; padding: 0; margin: 0.5em 0; }
.vge-recipe__ing-list li { padding: 0.45em 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.15); }
.vge-amount, .vge-unit { font-weight: 700; color: var(--vge-accent); }
.vge-note { color: var(--vge-muted); }

.vge-recipe__steps { margin-top: 1.5em; }
.vge-recipe__step-list { counter-reset: none; padding-left: 1.6em; margin: 0.5em 0; }
.vge-recipe__step-list li { margin: 0 0 1em; padding-left: 0.3em; scroll-margin-top: 120px; }
.vge-recipe__step-list li::marker { color: var(--vge-accent); font-weight: 700; }
.vge-recipe__step-list p { margin: 0 0 0.4em; }
.vge-recipe__step-img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 0.5em 0; }
.vge-recipe__watch { color: var(--vge-accent); font-size: 0.9em; }

.vge-recipe__notes { margin-top: 1.5em; background: var(--vge-bg-deep); border-left: 4px solid var(--vge-accent); border-radius: 8px; padding: 12px 16px; }
.vge-recipe__notes p:last-child { margin-bottom: 0; }

.vge-recipe__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--vge-radius); overflow: hidden; background: #000; }
.vge-recipe__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vge-recipe__episode ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.vge-recipe__episode a { display: block; color: inherit; text-decoration: none; }
.vge-recipe__episode img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.vge-recipe__episode span { display: block; margin-top: 8px; font-weight: 700; font-size: 18px; line-height: 1.3; }

.vge-recipe__recap { background: var(--vge-bg); border-left: 4px solid var(--vge-accent); border-radius: var(--vge-radius); padding: clamp(16px, 3vw, 28px); color: var(--vge-fg); }
.vge-recipe__recap h2 { color: var(--vge-accent); margin: 0 0 0.5em; font-size: 1.4em; }
.vge-recipe__recap p:last-child { margin-bottom: 0; }

.vge-recipe__credit { margin: 1.5em 0 0; padding-top: 1em; border-top: 1px solid rgba(255, 255, 255, 0.15); color: var(--vge-muted); font-size: 0.85em; }
.vge-recipe__credit cite { font-style: italic; }
.vge-recipe__credit a { color: var(--vge-accent); font-weight: 700; }
.vge-recipe__credit small { font-size: 0.85em; opacity: 0.8; }

/* Recipe search */
.vge-search { margin: 0 0 8px; }
.vge-search .vge-search__input {
	color: var(--vge-fg) !important; background: var(--vge-bg) !important; /* the theme styles inputs dark-on-light */
	width: 100%; box-sizing: border-box; padding: 14px 18px; font: inherit; font-size: 1.1em;
	color: var(--vge-fg); background: var(--vge-bg); border: 2px solid rgba(254, 135, 2, 0.45); border-radius: var(--vge-radius); outline: none;
}
.vge-search .vge-search__input:focus { border-color: var(--vge-accent); box-shadow: 0 0 0 3px rgba(254, 135, 2, 0.25); }
.vge-search .vge-search__input::placeholder { color: var(--vge-muted); }
.vge-search__status { color: var(--vge-muted); margin: 10px 2px 0; min-height: 1.2em; }
.vge-search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 16px; }
.vge-search__results:empty { display: none; }
.vge-card { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; background: var(--vge-bg); border-radius: var(--vge-radius); overflow: hidden; color: var(--vge-fg); text-decoration: none; }
.vge-card:hover, .vge-card:focus-visible { outline: 2px solid var(--vge-accent); }
.vge-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vge-card__title { padding: 0 16px; font-weight: 700; font-size: 20px; line-height: 1.3; }
.vge-card__meta { padding: 0 16px; color: var(--vge-accent); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media print {
	body * { visibility: hidden; }
	.vge-recipe, .vge-recipe * { visibility: visible; }
	.vge-recipe {
		position: absolute; left: 0; top: 0; width: 100%;
		background: #fff !important; color: #000 !important; border: 0; padding: 0;
		--vge-fg: #000; --vge-muted: #333; --vge-accent: #000; --vge-bg-deep: #fff;
	}
	.vge-recipe__actions, .vge-scaler, .vge-recipe__watch { display: none !important; }
	.vge-recipe__meta > div { border: 1px solid #ccc; }
	.vge-recipe__step-img { max-width: 40%; }
}
