/* Vitae Sana Recetas — uses the theme's color presets with fallbacks. */
:root {
	--vs-green: var(--wp--preset--color--primary, #2f7d4a);
	--vs-orange: var(--wp--preset--color--accent, #d9692a);
	--vs-ink: var(--wp--preset--color--contrast, #1f2a1f);
	--vs-paper: var(--wp--preset--color--base, #fffdf8);
	--vs-soft: var(--wp--preset--color--soft, #f4efe4);
	--vs-line: var(--wp--preset--color--line, #e4dccb);
	--vs-radius: 14px;
}

.vs-lead { font-size: 1.2em; line-height: 1.5; margin: 0 0 .75em; }
.vs-meta { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 1em; padding: 0; }
.vs-chip {
	display: inline-flex; align-items: center; gap: .3em;
	font-size: .82rem; line-height: 1; padding: .45em .75em; border-radius: 999px;
	background: var(--vs-soft); color: var(--vs-ink); text-decoration: none; border: 1px solid var(--vs-line);
}
.vs-chip--diet { background: color-mix(in srgb, var(--vs-green) 12%, var(--vs-paper)); border-color: color-mix(in srgb, var(--vs-green) 30%, var(--vs-paper)); }
a.vs-chip:hover { border-color: var(--vs-green); }

.vs-actions { display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 1.5em; }
.vs-btn {
	display: inline-block; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
	padding: .65em 1.2em; border-radius: 999px; border: 2px solid var(--vs-green);
	background: var(--vs-green); color: #fff; text-decoration: none;
}
.vs-btn:hover { filter: brightness(1.08); }
.vs-btn--ghost { background: transparent; color: var(--vs-green); }

.vs-video { margin: 0 0 2em; }
.vs-video__play, .vs-video iframe {
	display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
	border-radius: var(--vs-radius); overflow: hidden; background: #000; cursor: pointer;
}
.vs-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-video__icon {
	position: absolute; inset: 50% auto auto 50%; width: 76px; height: 54px; transform: translate(-50%, -50%);
	background: #e62117; border-radius: 14px; box-shadow: 0 6px 20px rgb(0 0 0 / .35);
}
.vs-video__icon::after {
	content: ""; position: absolute; inset: 50% auto auto 54%; transform: translate(-50%, -50%);
	border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff;
}
.vs-video__play:hover .vs-video__icon { background: #c4170f; }
.vs-video figcaption { font-size: .85rem; margin-top: .5em; opacity: .8; }

.vs-intro { margin-bottom: 2em; }

/* Ads: labelled and with reserved height to avoid layout shift */
.vs-ad { margin: 2em 0; min-height: 280px; text-align: center; }
.vs-ad__label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; margin-bottom: .4em; }

.vs-card {
	background: var(--vs-soft); border: 1px solid var(--vs-line); border-radius: var(--vs-radius);
	padding: clamp(1.1rem, 4vw, 2.2rem); margin: 2.5em 0; scroll-margin-top: 1rem;
}
.vs-card h2 { margin-top: 0; }
.vs-card h3 { margin: 0 0 .6em; font-size: 1.25rem; }
.vs-card h4 { margin: 1em 0 .4em; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--vs-green); }

.vs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6em; margin: 0 0 1.6em; }
.vs-facts div { background: var(--vs-paper); border: 1px solid var(--vs-line); border-radius: 10px; padding: .6em .8em; }
.vs-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.vs-facts dd { margin: .15em 0 0; font-weight: 700; }

.vs-card__cols { display: grid; gap: 2em; }
@media (min-width: 760px) { .vs-card__cols { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }

.vs-ingredients ul { list-style: none; margin: 0; padding: 0; }
.vs-ingredients li { padding: .45em 0; border-bottom: 1px dashed var(--vs-line); }
.vs-ingredients label { display: flex; gap: .6em; align-items: flex-start; cursor: pointer; }
.vs-ingredients input { margin-top: .3em; accent-color: var(--vs-green); width: 1.05em; height: 1.05em; flex: none; }
.vs-ingredients input:checked + span { text-decoration: line-through; opacity: .55; }

.vs-steps ol { margin: 0; padding: 0; list-style: none; }
.vs-steps li { position: relative; padding: .2em 0 1em 2.6em; counter-increment: vs-step; scroll-margin-top: 1rem; }
.vs-steps li::before {
	content: counter(vs-step); position: absolute; left: 0; top: 0;
	width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center;
	background: var(--vs-green); color: #fff; font-weight: 700; font-size: .85rem;
}
.vs-more-steps { margin: .2em 0 0; }
.vs-more-steps > summary {
	display: inline-flex; align-items: center; gap: .5em; cursor: pointer; list-style: none;
	font-weight: 700; color: var(--vs-green); padding: .55em 1.1em; margin: 0 0 1em 2.6em;
	border: 2px solid var(--vs-green); border-radius: 999px; background: var(--vs-paper);
}
.vs-more-steps > summary::-webkit-details-marker { display: none; }
.vs-more-steps > summary::after { content: "▾"; transition: transform .2s; }
.vs-more-steps[open] > summary::after { transform: rotate(180deg); }
.vs-more-steps[open] > summary { font-size: 0; padding: 0; border: 0; margin: 0; }
.vs-more-steps[open] > summary::after { content: none; }
.vs-ts { font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--vs-orange); text-decoration: none; margin-left: .3em; }
.vs-ts:hover { text-decoration: underline; }

.vs-notes, .vs-equipment, .vs-nutrition { margin-top: 1.8em; }
.vs-notes ul, .vs-equipment ul { margin: 0; padding-left: 1.2em; }
.vs-notes li, .vs-equipment li { margin-bottom: .4em; }
.vs-disclaimer { margin: 1.6em 0 0; font-size: .85rem; padding: .8em 1em; border-left: 3px solid var(--vs-orange); background: var(--vs-paper); border-radius: 0 8px 8px 0; }

/* Recipe grids (archives, home) */
.vs-grid .wp-block-post { background: var(--vs-paper); border: 1px solid var(--vs-line); border-radius: var(--vs-radius); overflow: hidden; display: flex; flex-direction: column; }
.vs-grid .wp-block-post-featured-image { margin: 0; }
.vs-grid .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.vs-grid .vs-card-body { padding: 1rem 1.1rem 1.2rem; }
.vs-grid .wp-block-post-title { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .4em; }
.vs-grid .wp-block-post-title a { text-decoration: none; }
.vs-grid .wp-block-post-excerpt { font-size: .92rem; margin: 0 0 .6em; }
.vs-grid .wp-block-post-excerpt__excerpt { margin: 0; }
.vs-grid .vs-meta { margin: 0; }

@media print {
	header, footer, .vs-actions, .vs-video, .vs-ts, .wp-block-template-part, .vs-intro { display: none !important; }
	.vs-card { border: 0; background: none; padding: 0; margin: 0; }
	.vs-ingredients input, .vs-more-steps > summary, .vs-ad { display: none !important; }
}
