/*
 * Default recipe card. Inherits the theme's fonts and text color; themes can
 * restyle it by overriding these custom properties on .mtc-card, or replace
 * the template entirely (mtc-recipe/card.php in the theme).
 */
.mtc-card {
	--mtc-accent: #a3322a;
	--mtc-accent-soft: #f6e9e6;
	--mtc-line: rgba(0, 0, 0, 0.12);
	--mtc-muted: rgba(0, 0, 0, 0.6);
	--mtc-surface: rgba(0, 0, 0, 0.03);
	--mtc-radius: 10px;
	container-type: inline-size;
	margin: 2.5em 0;
	padding: 1.5em;
	border: 1px solid var(--mtc-line);
	border-top: 4px solid var(--mtc-accent);
	border-radius: var(--mtc-radius);
	line-height: 1.55;
}
.mtc-card h2, .mtc-card h3, .mtc-card h4 { margin: 0; line-height: 1.25; }
.mtc-card__kicker { margin: 0 0 0.25em; color: var(--mtc-accent); font-size: 0.8em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.mtc-card__title { font-size: 1.6em; }
.mtc-card__summary { margin: 0.5em 0 0; color: var(--mtc-muted); }
.mtc-card__actions { margin-top: 0.75em; font-size: 0.9em; }

.mtc-card__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; margin: 1.25em 0 0; padding: 0; overflow: hidden; background: var(--mtc-line); border: 1px solid var(--mtc-line); border-radius: var(--mtc-radius); }
.mtc-card__stat { margin: 0; padding: 0.7em 0.9em; background: #fff; }
.mtc-card__stat dt { margin: 0; color: var(--mtc-muted); font-size: 0.75em; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.mtc-card__stat dd { margin: 0.1em 0 0; font-size: 1.15em; font-weight: 700; font-variant-numeric: tabular-nums; }

.mtc-card__facts { display: flex; flex-wrap: wrap; gap: 0.35em 1.5em; margin: 1em 0 0; padding: 0; font-size: 0.9em; }
.mtc-card__facts div { display: flex; gap: 0.4em; }
.mtc-card__facts dt { margin: 0; color: var(--mtc-muted); }
.mtc-card__facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* One column: ingredients, then steps. Side by side, the short ingredient list left a tall empty column. */
.mtc-card__body { display: grid; gap: 1.75em; margin-top: 1.5em; }
.mtc-card__body h3, .mtc-card__tips h3, .mtc-card__video h3, .mtc-card__share h3 { margin-bottom: 0.5em; font-size: 1.2em; }
.mtc-card .mtc-card__body h4 { margin: 1em 0 0.35em; color: var(--mtc-accent); font-size: 1em; }

/* Themes often indent and bullet content lists; the card sets its own. */
.mtc-card .mtc-card__ingredients ul, .mtc-card .mtc-card__steps ol, .mtc-card .mtc-card__tips ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.mtc-card .mtc-card__ingredients li, .mtc-card .mtc-card__steps li, .mtc-card .mtc-card__tips li { list-style: none; }
.mtc-card .mtc-card__ingredients li { margin: 0; padding: 0.35em 0; border-bottom: 1px solid var(--mtc-line); }
.mtc-card__ingredients label { display: flex; gap: 0.6em; align-items: baseline; cursor: pointer; }
.mtc-card__check { flex: none; accent-color: var(--mtc-accent); }
.mtc-card__check:checked + span { color: var(--mtc-muted); text-decoration: line-through; }
.mtc-card__optional { color: var(--mtc-muted); }

.mtc-card .mtc-card__steps li { position: relative; margin: 0 0 0.9em; padding: 0 0 0 2.4em; }
.mtc-card .mtc-card__steps li::before { content: attr(data-n); position: absolute; left: 0; top: 0.05em; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--mtc-accent); color: #fff; font-size: 0.85em; font-weight: 700; line-height: 1.7em; text-align: center; }
.mtc-card__chips { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.35em; }
.mtc-card__chip { padding: 0.05em 0.6em; border-radius: 999px; background: var(--mtc-accent-soft); color: var(--mtc-accent); font-size: 0.8em; font-weight: 600; }

.mtc-card__tips, .mtc-card__video { margin-top: 1.5em; padding-top: 1.25em; border-top: 1px solid var(--mtc-line); }
.mtc-card .mtc-card__tips li { margin: 0 0 0.6em; padding: 0.6em 0.8em; border-radius: 6px; background: var(--mtc-surface); }
.mtc-card__tips strong { margin-right: 0.3em; color: var(--mtc-accent); }
.mtc-card__embed iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

/* Share bar: plain links styled as buttons. */
.mtc-card__share { margin-top: 1.5em; padding-top: 1.25em; border-top: 1px solid var(--mtc-line); }
.mtc-card .mtc-card__share-list { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0 !important; padding: 0 !important; list-style: none; }
.mtc-card .mtc-share { margin: 0; list-style: none; }
.mtc-card .mtc-share[hidden] { display: none; }
.mtc-card .mtc-share a, .mtc-card .mtc-share button { display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.5em; padding: 0.45em 1em; border: 1px solid var(--mtc-line); border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: 0.9em; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; box-shadow: none; }
.mtc-card .mtc-share a:hover, .mtc-card .mtc-share button:hover, .mtc-card .mtc-share a:focus-visible, .mtc-card .mtc-share button:focus-visible { border-color: currentColor; }
.mtc-card .mtc-share--pinterest a { border-color: #e60023; background: #e60023; color: #fff; }
.mtc-card .mtc-share--facebook a { border-color: #1877f2; background: #1877f2; color: #fff; }
.mtc-card .mtc-share--pinterest a:hover, .mtc-card .mtc-share--facebook a:hover { filter: brightness(0.92); }
.mtc-card .mtc-share--pinterest a::before { content: "P"; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: #fff; color: #e60023; font-size: 0.85em; font-weight: 800; }
.mtc-card .mtc-share--facebook a::before { content: "f"; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: #fff; color: #1877f2; font-size: 0.85em; font-weight: 800; }
.mtc-card .mtc-share svg { width: 1em; height: 1em; }

@media (max-width: 480px) {
	.mtc-card { padding: 1em; }
	.mtc-card__stats { grid-template-columns: repeat(2, 1fr); }
}
@media print {
	.mtc-card { border: 0; padding: 0; }
	.mtc-card__check, .mtc-card__actions, .mtc-card__video, .mtc-card__share { display: none; }
}
