/*
Theme Name: L'Atelier Cuisine
Author: Votre nom
Author URI:
Description: Thème WordPress pour blog de recettes en français : diaporama « À la une », grille de recettes avec temps et portions, recherche, catégories, et une fiche recette complète (portions ajustables, impression, mode cuisine, notes en étoiles, données Google Recipe) remplie automatiquement à partir de l’article. Basé sur le thème « Online Recipes » de ThemeGrill (GPLv2 ou ultérieure).
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atelier-cuisine
Tags: food-and-drink, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, three-columns, sticky-post
*/

/* ---------- Fonts ---------- */
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("assets/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("assets/fonts/plus-jakarta-sans-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
/* ANCIENNES COULEURS (terracotta), pour revenir en arrière :
:root {
	--ac-bg: #faf6f1;
	--ac-surface: #ffffff;
	--ac-surface-alt: #f5ede5;
	--ac-ink: #2b201c;
	--ac-text: #4a3d37;
	--ac-muted: #7a6a62;
	--ac-border: #eadfd4;
	--ac-accent: #b8482a;
	--ac-accent-dark: #93361d;
	--ac-accent-soft: #fbece6;
	--ac-gold: #e0a43a;
	--ac-focus: #2d6cdf;
	--ac-radius: 16px;
	--ac-radius-sm: 10px;
	--ac-shadow: 0 1px 2px rgba(43, 32, 28, .05), 0 8px 24px rgba(43, 32, 28, .06);
	--ac-shadow-lg: 0 18px 44px rgba(43, 32, 28, .12);
	--ac-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ac-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--ac-max: 1200px;
	--ac-narrow: 780px;
	--ac-gutter: clamp(16px, 3vw, 28px);
}
*/
:root {
	--ac-bg: #f7f5ee;
	--ac-surface: #ffffff;
	--ac-surface-alt: #efeadf;
	--ac-ink: #1f2a22;
	--ac-text: #3a463d;
	--ac-muted: #5f6e63;
	--ac-border: #dfe3d6;
	--ac-accent: #2f6b3a;
	--ac-accent-dark: #1f4d29;
	--ac-accent-soft: #e9f1ea;
	--ac-gold: #d9a441;
	--ac-focus: #2d6cdf;
	--ac-radius: 16px;
	--ac-radius-sm: 10px;
	--ac-shadow: 0 1px 2px rgba(31, 42, 34, .05), 0 8px 24px rgba(31, 42, 34, .06);
	--ac-shadow-lg: 0 18px 44px rgba(31, 42, 34, .12);
	--ac-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ac-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--ac-max: 1200px;
	--ac-narrow: 780px;
	--ac-gutter: clamp(16px, 3vw, 28px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ac-bg); color: var(--ac-text); font: 400 1.0625rem/1.7 var(--ac-font); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--ac-accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ac-accent); }
:focus-visible { outline: 3px solid var(--ac-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--ac-font-head); color: var(--ac-ink); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; clip-path: none; z-index: 10000; background: var(--ac-surface); color: var(--ac-ink); padding: 10px 16px; border-radius: 8px; box-shadow: var(--ac-shadow-lg); }
.container { width: 100%; max-width: calc(var(--ac-max) + 2 * var(--ac-gutter)); margin: 0 auto; padding: 0 var(--ac-gutter); }
.container--narrow { max-width: calc(var(--ac-narrow) + 2 * var(--ac-gutter)); }
.ac-icon { flex: 0 0 auto; }

/* ---------- Buttons, pills ---------- */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .9375rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.ac-btn--solid { background: var(--ac-accent); color: #fff; }
.ac-btn--solid:hover { background: var(--ac-accent-dark); color: #fff; }
.ac-btn--ghost { background: var(--ac-surface); color: var(--ac-ink); border-color: var(--ac-border); }
.ac-btn--ghost:hover, .ac-btn--ghost[aria-pressed="true"] { border-color: var(--ac-accent); color: var(--ac-accent-dark); background: var(--ac-accent-soft); }
.kicker { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-accent-dark); text-decoration: none; margin: 0 0 8px; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--ac-accent-soft); color: var(--ac-accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.pill:hover { background: var(--ac-accent); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--ac-border); box-shadow: 0 2px 14px rgba(31, 42, 34, .05); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.site-branding .custom-logo-link { flex: 0 0 auto; }
.site-branding .custom-logo { width: auto; max-height: 52px; }
.site-title { font-family: var(--ac-font-head); font-size: 1.55rem; font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.site-title a { color: var(--ac-ink); text-decoration: none; }
.site-description { margin: 3px 0 0; font-size: .8rem; color: var(--ac-muted); line-height: 1.3; }
.main-nav { min-width: 0; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.primary-menu li { position: relative; }
.primary-menu a { display: block; padding: 10px 14px; border-radius: var(--ac-radius-sm); color: var(--ac-ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.primary-menu a:hover { background: var(--ac-surface-alt); color: var(--ac-accent-dark); }
.primary-menu .current-menu-item > a, .primary-menu .current-cat > a, .primary-menu .current-menu-ancestor > a, .primary-menu .current-post-ancestor > a { color: var(--ac-accent-dark); box-shadow: inset 0 -2px 0 var(--ac-accent); border-radius: var(--ac-radius-sm) var(--ac-radius-sm) 0 0; }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: var(--ac-radius-sm); box-shadow: var(--ac-shadow-lg); z-index: 5; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ac-ink); cursor: pointer; }
.icon-btn:hover { background: var(--ac-surface-alt); }
.icon-btn .ac-icon { width: 21px; height: 21px; }
.menu-toggle, .menu-toggle__cb { display: none; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 22px; height: 2px; background: var(--ac-ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -7px; }
.menu-toggle__icon::after { top: 7px; }
.header-search { border-top: 1px solid var(--ac-border); background: var(--ac-surface); padding: 14px 0; }
.mobile-search { display: none; }

@media (max-width: 960px) {
	.site-header__inner { flex-wrap: wrap; gap: 8px; min-height: 64px; }
	.menu-toggle { display: inline-flex; }
	.main-nav { order: 3; flex: 1 0 100%; display: none; padding-bottom: 12px; }
	.menu-toggle__cb:checked ~ .main-nav { display: block; }
	.menu-toggle__cb:checked ~ .header-actions .menu-toggle__icon { background: transparent; }
	.menu-toggle__cb:checked ~ .header-actions .menu-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
	.menu-toggle__cb:checked ~ .header-actions .menu-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }
	.primary-menu { flex-direction: column; }
	.primary-menu a { padding: 12px; border-bottom: 1px solid var(--ac-border); border-radius: 0; }
	.primary-menu .current-menu-item > a, .primary-menu .current-cat > a { box-shadow: inset 3px 0 0 var(--ac-accent); border-radius: 0; }
	.primary-menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; }
	.site-description { display: none; }
	.mobile-search { display: block; margin: 18px 0 0; }
	[data-search-toggle] { display: none; }
}

/* ---------- Search form ---------- */
.search-form { position: relative; display: flex; align-items: center; gap: 8px; background: var(--ac-surface); border: 1.5px solid var(--ac-border); border-radius: 999px; padding: 5px 5px 5px 16px; max-width: 760px; margin: 0 auto; }
.search-form:focus-within { border-color: var(--ac-accent); }
.search-form > .ac-icon { color: var(--ac-muted); }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 4px; font-size: 1rem; outline: none; }
.search-form .ac-btn { min-height: 40px; padding: 8px 18px; }
@media (max-width: 480px) { .search-form { padding-left: 12px; } .search-form .ac-btn { padding: 8px 12px; font-size: .85rem; } .search-form__input { font-size: .95rem; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin: 22px 0 6px; font-size: .84rem; color: var(--ac-muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--ac-border); }
.breadcrumbs a { color: var(--ac-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ac-accent-dark); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ac-ink); }

/* ---------- Section titles ---------- */
.section-title { display: flex; align-items: center; gap: 18px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 0 0 26px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--ac-border); }
.section-title span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ac-accent); margin-right: 12px; vertical-align: middle; transform: translateY(-3px); }

/* ---------- Featured slider ---------- */
.featured { position: relative; margin: 28px 0 54px; background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: calc(var(--ac-radius) + 6px); box-shadow: var(--ac-shadow); overflow: hidden; }
.featured__slide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.featured__slide[hidden] { display: none; }
.featured__slide.is-active { animation: ac-fade .45s ease; }
@keyframes ac-fade { from { opacity: .3; } to { opacity: 1; } }
.featured__media { display: block; position: relative; min-width: 0; min-height: 440px; overflow: hidden; background: var(--ac-surface-alt); }
.featured__media img, .featured__media .ac-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured__body { position: relative; padding: clamp(24px, 4vw, 52px) clamp(22px, 4vw, 56px) 64px; display: flex; flex-direction: column; justify-content: center; }
.featured__count { position: absolute; top: 22px; right: 26px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--ac-muted); }
.featured__title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: 0 0 14px; }
.featured__title a { color: var(--ac-ink); text-decoration: none; }
.featured__title a:hover { color: var(--ac-accent-dark); }
.featured__excerpt { color: var(--ac-text); margin-bottom: 20px; }
.featured__body .ac-btn { align-self: flex-start; margin-top: 22px; }
.featured__nav { position: absolute; bottom: 18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ac-border); background: var(--ac-surface); color: var(--ac-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--ac-shadow); }
.featured__nav:hover { border-color: var(--ac-accent); color: var(--ac-accent-dark); }
.featured__nav--prev { right: 76px; }
.featured__nav--next { right: 24px; }
.featured__dots { position: absolute; bottom: 34px; left: calc(52.4% + clamp(22px, 4vw, 56px)); display: flex; gap: 8px; }
.featured__dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--ac-border); cursor: pointer; }
.featured__dot.is-active { background: var(--ac-accent); width: 26px; border-radius: 99px; }
@media (max-width: 860px) {
	.featured__slide { grid-template-columns: 1fr; }
	.featured__media { aspect-ratio: 4 / 3; }
	.featured__body { padding: 22px 22px 74px; }
	.featured__count { top: -48px; right: auto; left: 16px; background: rgba(255,255,255,.92); padding: 5px 10px; border-radius: 99px; color: var(--ac-ink); }
	.featured__dots { left: 22px; bottom: 34px; }
}

/* ---------- Facts (prep, cook…) ---------- */
.facts { margin: 0; display: grid; gap: 8px 14px; }
.facts__item { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.facts dt { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-muted); white-space: nowrap; }
.facts dd { margin: 0; font-size: .8rem; font-weight: 700; color: var(--ac-ink); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 0; border-top: 1px solid var(--ac-border); border-bottom: 1px solid var(--ac-border); }
.facts--grid .facts__item, .facts--header .facts__item { flex-direction: column; gap: 2px; }
.facts--grid dd, .facts--header dd { text-align: left; font-size: .95rem; }
.facts--card { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 14px; margin-top: auto; border-top: 1px dashed var(--ac-border); }
.facts--card .facts__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts--header { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); max-width: 620px; margin: 22px auto 0; padding: 16px 18px; background: var(--ac-bg); border-radius: var(--ac-radius-sm); text-align: left; }

/* ---------- Recipe grid & cards ---------- */
.recipe-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1000px) { .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 600px) { .recipe-grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--ac-shadow-lg); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--ac-surface-alt); overflow: hidden; }
.card__image, .card__image img, .card__image .ac-placeholder, .card__image .ac-placeholder img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__image img { transition: transform .5s; }
.card:hover .card__image img { transform: scale(1.04); }
.card__date { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(31, 42, 34, .78); color: #fff; font-size: .72rem; font-weight: 700; }
.card__cat { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 99px; background: var(--ac-accent); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.card__cat:hover { background: var(--ac-accent-dark); color: #fff; }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.card__title { font-size: 1.22rem; margin: 0 0 8px; }
.card__title a { color: var(--ac-ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__cat, .card__date { z-index: 2; }
.card__title a:hover { color: var(--ac-accent-dark); }
.card__excerpt { font-size: .9rem; line-height: 1.6; color: var(--ac-muted); margin: 0 0 14px; }

/* ---------- Pagination ---------- */
.pagination { margin: 42px 0 10px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 99px; background: var(--ac-surface); border: 1px solid var(--ac-border); color: var(--ac-ink); font-weight: 700; text-decoration: none; }
.page-numbers:hover { border-color: var(--ac-accent); color: var(--ac-accent-dark); }
.page-numbers.current { background: var(--ac-ink); border-color: var(--ac-ink); color: #fff; }
.page-numbers.dots { border: 0; background: transparent; }

/* ---------- Category showcase ---------- */
.latest { margin-bottom: 64px; }
.cat-showcase { padding: 58px 0 66px; background: var(--ac-surface); border-top: 1px solid var(--ac-border); }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.cat-card a { display: block; position: relative; border-radius: var(--ac-radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--ac-surface-alt); text-decoration: none; box-shadow: var(--ac-shadow); }
.cat-card__media, .cat-card__media img, .cat-card__media .ac-placeholder img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card a:hover img { transform: scale(1.06); }
.cat-card__body { position: absolute; inset: auto 0 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(20, 32, 24, .82)); color: #fff; display: flex; flex-direction: column; }
.cat-card__name { font-family: var(--ac-font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.cat-card__count { font-size: .8rem; opacity: .9; }

/* ---------- Archive ---------- */
.archive-header { text-align: center; max-width: 780px; margin: 14px auto 38px; }
.archive-title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 12px; }
.archive-description { color: var(--ac-text); }
.archive-description p:last-child { margin-bottom: 0; }
.archive-count { margin: 12px 0 0; font-size: .85rem; font-weight: 700; color: var(--ac-muted); }
.archive-search { margin-top: 20px; }
.empty-state { text-align: center; padding: 50px 20px 70px; }

/* ---------- Single recipe ---------- */
.single-recipe { margin-bottom: 30px; }
.entry-header { max-width: 860px; margin: 18px auto 30px; padding: clamp(24px, 4vw, 40px) clamp(18px, 4vw, 44px); background: var(--ac-surface); border: 1px solid var(--ac-border); border-top: 4px solid var(--ac-accent); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); text-align: center; width: calc(100% - 2 * var(--ac-gutter)); }
.entry-title { font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 14px 0 12px; }
.entry-lead { font-size: 1.08rem; color: var(--ac-text); max-width: 640px; margin: 0 auto 14px; }
.entry-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: .86rem; color: var(--ac-muted); }
.entry-meta a { color: var(--ac-ink); text-decoration: none; font-weight: 600; }
.entry-meta__author { display: inline-flex; align-items: center; gap: 8px; }
.entry-meta__author img { border-radius: 50%; }
.entry-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; }
.entry-rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ac-ink); }
.ac-stars { color: var(--ac-border); letter-spacing: 1px; }
.ac-star.is-full { color: var(--ac-gold); }
.ac-star.is-half { background: linear-gradient(90deg, var(--ac-gold) 50%, var(--ac-border) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.share { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ac-border); }
.share__label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-muted); margin-right: 4px; }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share__link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--ac-border); background: var(--ac-surface); color: var(--ac-ink); font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.share__link:hover { border-color: var(--ac-accent); color: var(--ac-accent-dark); }
.share__link .ac-icon { width: 16px; height: 16px; }
.share__link--pinterest { background: #e60023; border-color: #e60023; color: #fff; }
.share__link--pinterest:hover { background: #b8001c; border-color: #b8001c; color: #fff; }
.entry-image { max-width: 980px; margin: 0 auto 34px; padding: 0 var(--ac-gutter); }
.entry-image img { width: 100%; border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.entry-wrap { max-width: calc(var(--ac-narrow) + 2 * var(--ac-gutter)); margin: 0 auto; padding: 0 var(--ac-gutter); }

/* Table of contents */
.toc { margin: 0 0 34px; background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: var(--ac-radius); padding: 6px 22px; }
.toc summary { cursor: pointer; padding: 12px 0; font-family: var(--ac-font-head); font-size: 1.15rem; font-weight: 700; color: var(--ac-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-family: var(--ac-font); font-size: 1.4rem; color: var(--ac-accent); }
.toc[open] summary::after { content: "−"; }
.toc ol { margin: 0 0 16px; padding-left: 22px; columns: 2 280px; column-gap: 32px; }
.toc li { margin: 0 0 8px; break-inside: avoid; font-size: .93rem; }
.toc li::marker { color: var(--ac-accent); font-weight: 700; }
.toc a { color: var(--ac-text); text-decoration: none; }
.toc a:hover { color: var(--ac-accent-dark); text-decoration: underline; }
.toc__recipe a { font-weight: 700; color: var(--ac-accent-dark); }

/* Article content */
.entry-content { font-size: 1.0625rem; }
.entry-content h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 1.9em 0 .6em; }
.entry-content h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 1.1rem; margin: 1.4em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--ac-accent); }
.entry-content img, .entry-content .wp-block-image img { border-radius: var(--ac-radius-sm); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--ac-muted); text-align: center; margin-top: 8px; }
.entry-content blockquote { margin: 1.8em 0; padding: 18px 24px; border-left: 4px solid var(--ac-accent); background: var(--ac-accent-soft); border-radius: 0 var(--ac-radius-sm) var(--ac-radius-sm) 0; font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--ac-border); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--ac-surface-alt); }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 900px) { .entry-content .alignwide { margin-left: 0; margin-right: 0; } }
.page-links { margin: 24px 0; font-weight: 700; }

/* ---------- Recipe card ---------- */
.recipe-card { margin: 46px 0 36px; background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: calc(var(--ac-radius) + 4px); box-shadow: var(--ac-shadow-lg); overflow: hidden; scroll-margin-top: 96px; }
.recipe-card__head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; padding: 26px; background: linear-gradient(180deg, var(--ac-accent-soft), var(--ac-surface)); border-bottom: 1px solid var(--ac-border); }
.recipe-card__image img { width: 220px; height: 220px; object-fit: cover; border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); }
.recipe-card__kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ac-accent-dark); }
.recipe-card__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 10px; }
.recipe-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 16px; }
.recipe-rating__stars { display: inline-flex; }
.recipe-rating__btn { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--ac-border); cursor: pointer; }
.recipe-rating__btn.is-on { color: var(--ac-gold); }
.recipe-rating__stars:hover .recipe-rating__btn { color: var(--ac-border); }
.recipe-rating__stars .recipe-rating__btn.is-hover { color: var(--ac-gold); }
.recipe-rating__summary { font-size: .85rem; color: var(--ac-muted); font-weight: 600; }
.recipe-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.recipe-card__status { margin: 10px 0 0; font-size: .85rem; color: var(--ac-accent-dark); font-weight: 600; min-height: 1.2em; }
.recipe-card__meta { margin: 0; display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ac-border); overflow: hidden; }
.recipe-card__meta-item { flex: 1 1 120px; padding: 16px 18px; border-right: 1px solid var(--ac-border); border-bottom: 1px solid var(--ac-border); margin: 0 -1px -1px 0; }
.recipe-card__meta-item--servings { flex-basis: 150px; }
.recipe-card__meta dt { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ac-muted); }
.recipe-card__meta dd { margin: 2px 0 0; font-weight: 700; color: var(--ac-ink); }
.recipe-card__meta-item--servings dd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.servings-ctl { display: inline-flex; align-items: center; border: 1px solid var(--ac-border); border-radius: 99px; overflow: hidden; }
.servings-ctl button { width: 34px; height: 34px; border: 0; background: var(--ac-surface-alt); font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--ac-ink); }
.servings-ctl button:hover { background: var(--ac-accent); color: #fff; }
.servings-ctl__value { min-width: 34px; text-align: center; font-weight: 800; }
.servings-ctl__unit { font-size: .8rem; font-weight: 600; color: var(--ac-muted); }
.recipe-card__body { padding: 8px 26px 26px; }
.recipe-card__section h3 { font-size: 1.3rem; margin: 22px 0 12px; display: flex; align-items: center; gap: 10px; }
.recipe-card__section h3::after { content: ""; flex: 1; height: 1px; background: var(--ac-border); }
.recipe-subtitle { font-family: var(--ac-font); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-accent-dark); margin: 16px 0 8px; }
.recipe-card__columns { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 34px; }
.recipe-equipment { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-equipment li { padding: 6px 12px; border-radius: 99px; background: var(--ac-surface-alt); font-size: .88rem; }
.recipe-ingredients { list-style: none; margin: 0; padding: 0; }
.recipe-ingredients li { border-bottom: 1px dashed var(--ac-border); }
.recipe-ingredients label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; cursor: pointer; font-size: .97rem; line-height: 1.45; }
.recipe-ingredients input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ac-accent); flex: 0 0 auto; }
.recipe-ingredients input:checked + span { text-decoration: line-through; color: var(--ac-muted); }
.recipe-ingredients .qty { color: var(--ac-ink); }
.recipe-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.recipe-steps[start] { counter-reset: step calc(attr(start integer, 1) - 1); }
.recipe-steps li { counter-increment: step; position: relative; padding: 4px 0 18px 50px; cursor: pointer; line-height: 1.6; border-radius: 8px; }
.recipe-steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--ac-accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .92rem; }
.recipe-steps li.is-done { color: var(--ac-muted); text-decoration: line-through; }
.recipe-steps li.is-done::before { content: "✓"; background: #6b8f5e; }
.recipe-steps__hint { font-size: .8rem; color: var(--ac-muted); margin: 0; }
.recipe-notes { margin: 0; padding: 16px 18px 16px 34px; background: #fff8e8; border-radius: var(--ac-radius-sm); border: 1px solid #f1e0b5; }
.recipe-notes li { margin-bottom: 6px; }
.recipe-card__video { margin: 22px 0 0; }
.recipe-card__source { display: none; }
@media (max-width: 720px) {
	.recipe-card__head { grid-template-columns: 1fr; padding: 20px; }
	.recipe-card__image img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
	.recipe-card__columns { grid-template-columns: 1fr; gap: 0; }
	.recipe-card__body { padding: 4px 20px 22px; }
	.recipe-card__meta-item { flex-basis: 40%; }
}

/* ---------- After the article ---------- */
.entry-tags { list-style: none; margin: 30px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a { display: inline-block; padding: 5px 12px; border-radius: 99px; background: var(--ac-surface); border: 1px solid var(--ac-border); font-size: .84rem; color: var(--ac-text); text-decoration: none; }
.entry-tags a:hover { border-color: var(--ac-accent); color: var(--ac-accent-dark); }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 30px 0; padding: 22px; background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: var(--ac-radius); }
.author-box__avatar { border-radius: 50%; flex: 0 0 auto; }
.author-box__label { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-muted); }
.author-box__name { margin: 2px 0 6px; font-family: var(--ac-font-head); font-size: 1.25rem; font-weight: 700; }
.author-box__name a { color: var(--ac-ink); text-decoration: none; }
.author-box__bio { margin: 0; font-size: .93rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.post-nav__link { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: var(--ac-radius); text-decoration: none; color: var(--ac-ink); }
.post-nav__link:hover { border-color: var(--ac-accent); }
.post-nav__link--next { flex-direction: row-reverse; text-align: right; }
.post-nav__thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--ac-surface-alt); }
.post-nav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-nav__text { display: flex; flex-direction: column; min-width: 0; }
.post-nav__label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ac-muted); }
.post-nav__title { font-family: var(--ac-font-head); font-weight: 700; line-height: 1.25; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.related { margin: 50px 0 60px; }

/* ---------- Comments ---------- */
.comments { margin: 20px 0 60px; padding-top: 26px; border-top: 1px solid var(--ac-border); }
.comments__title { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { margin: 0 0 16px; padding: 18px; background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: var(--ac-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; margin: 2px 0 10px; }
.comment-metadata a { color: var(--ac-muted); text-decoration: none; }
.reply a { font-size: .85rem; font-weight: 700; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--ac-border); border-radius: var(--ac-radius-sm); background: var(--ac-surface); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ac-accent); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; font-size: .88rem; }

/* ---------- Pages & 404 ---------- */
.page-article { margin: 10px 0 60px; }
.page-title { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 10px 0 24px; }
.page-article .entry-image { padding: 0; }
.error-404 { text-align: center; padding: 50px 0 60px; }
.error-404__code { font-family: var(--ac-font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--ac-accent); margin: 0; }
.error-404 .search-form { margin: 26px auto; }

/* ---------- Footer ---------- */
.site-footer { background: #1c2a20; color: #cfd6c8; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-top: 50px; padding-bottom: 36px; }
.site-footer__title { font-family: var(--ac-font-head); font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; }
.site-footer__title a { text-decoration: none; }
.site-footer__tagline { margin: 0 0 16px; font-size: .92rem; max-width: 420px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-menu a { text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-menu a:hover { text-decoration: underline; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social-links a:hover { background: var(--ac-accent); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.site-footer__bottom p { margin: 0; }
.back-to-top-link { text-decoration: none; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--ac-accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--ac-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ac-accent-dark); color: #fff; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--ac-muted); }
.sticky, .bypostauthor { outline: 0; }

/* ---------- Print: only the recipe card ---------- */
@media print {
	@page { margin: 14mm; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.site-header, .site-footer, .back-to-top, .breadcrumbs, .share, .toc, .entry-tags, .author-box, .post-nav, .related, .comments, .entry-actions, .recipe-card__actions, .recipe-rating__stars, .recipe-card__status, .recipe-steps__hint, .servings-ctl button, .recipe-ingredients input { display: none !important; }
	body.is-printing-recipe .single-recipe > *:not(.entry-wrap), body.is-printing-recipe .entry-wrap > *:not(.recipe-card) { display: none !important; }
	.recipe-card { box-shadow: none; border: 1px solid #ccc; margin: 0; }
	.recipe-card__head { background: none; grid-template-columns: 120px 1fr; }
	.recipe-card__image img { width: 120px; height: 120px; }
	.recipe-card__columns { grid-template-columns: 2fr 3fr; }
	.recipe-steps li::before { background: none; color: #000; border: 1px solid #000; }
	.recipe-card__source { display: block; text-align: center; font-size: 9pt; color: #555; padding: 8px; }
	a { color: #000; text-decoration: none; }
}

/* Slider fix: keep image inside its column, limit long titles */
.featured__slide { overflow: hidden; }
.featured__body { min-width: 0; }
.featured__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured__excerpt, .featured__body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) {
	.featured__media { min-height: 0; aspect-ratio: 4 / 3; }
}
