/*
 * Adaptações do CSS do protótipo v2 (assets/css/main.css, cópia inalterada) ao WordPress.
 * Principal diferença: a cor de cada receita vem do campo "cor" (--accent em linha),
 * em vez de classes por receita (.recipe-card--alecrim), para o catálogo crescer sem CSS novo.
 */

/* Cor da receita (--accent definido no atributo style). */
.recipe-hero[style*="--accent"], .recipe-card[style*="--accent"] { background: var(--accent); }
.other-recipes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.other-recipe[style*="--accent"] { background: var(--accent); }
.theme-recipe .site-header:not(.is-scrolled):not(.is-open) { color: #fff; }

/* Menus gerados pelo WordPress dentro do layout do protótipo. */
.site-nav__list .current-menu-item > a, .site-nav__list .current_page_item > a { text-decoration: underline; text-underline-offset: .3em; }
.site-footer ul.menu { list-style: none; margin: 0; padding: 0; }

/* Barra de administração (sessão iniciada): o header fixo desce. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Ficha técnica. */
.recipe-sheet .nutrition { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
.recipe-sheet .nutrition caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
.recipe-sheet .nutrition th, .recipe-sheet .nutrition td { padding: .4em 0; border-bottom: 1px solid rgba(59, 43, 37, .15); text-align: left; }
.recipe-sheet .nutrition td { text-align: right; }

/* Conteúdo do editor. */
.entry-content > * + * { margin-top: 1em; }
.entry-content img { max-width: 100%; height: auto; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto !important; height: auto !important; clip: auto !important; z-index: 100; background: #fff; padding: 8px 12px; }

/* Formulário do Contact Form 7 com o estilo .form do protótipo. */
.form-wrap .wpcf7-form { display: grid; gap: 14px; }
.form-wrap .wpcf7-form input:not([type="submit"]), .form-wrap .wpcf7-form textarea, .form-wrap .wpcf7-form select { width: 100%; }
