/*
Theme Name: James Recipes
Theme URI: https://jamesrecipes.com
Author: James Recipes
Description: A fast, ad-ready recipe blog theme. Brand palette, multilingual (Polylang: FR, ES, RO, DE), table of contents, author box, related posts, ad slots ready for Ezoic or AdSense, ads.txt manager, contact form and a one-click setup that creates all legal pages.
Version: 1.3.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: james-recipes
Tags: blog, food-and-drink, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
	font-family: "Poppins";
	src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Poppins";
	src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Design tokens (James Recipes brand guide) ---------- */
:root {
	--jr-bg: #faf7ee;            /* Fond – propreté */
	--jr-surface: #ffffff;
	--jr-cream: #f3eddc;
	--jr-text: #3a2e22;          /* Texte – élégance */
	--jr-muted: #6b5d4f;
	--jr-border: #e8dfca;
	--jr-green: #1f2e1a;         /* Vert principal */
	--jr-green-hover: #33492b;
	--jr-leaf: #6fa34b;          /* Vert secondaire */
	--jr-yellow: #f4c430;        /* Accent – énergie */
	--jr-orange: #c76b2a;        /* Accent 2 – chaleur */
	--jr-accent: var(--jr-green);
	--jr-accent-dark: var(--jr-green-hover);
	--jr-link: #a9561c;          /* orange, darkened for readable links */
	--jr-olive: #4e7a32;         /* green, darkened for small text */
	--jr-olive-soft: #ebf2e1;
	--jr-radius: 16px;
	--jr-radius-sm: 10px;
	--jr-shadow: 0 1px 2px rgba(31, 46, 26, .06), 0 8px 24px rgba(31, 46, 26, .07);
	--jr-serif: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--jr-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--jr-wrap: 1200px;
	--jr-content: 720px;
	--jr-gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
	margin: 0;
	background: var(--jr-bg);
	color: var(--jr-text);
	font-family: var(--jr-sans);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--jr-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jr-orange); }
:focus-visible { outline: 3px solid var(--jr-yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--jr-serif);
	font-weight: 700;
	line-height: 1.2;
	color: var(--jr-text);
	margin: 1.6em 0 .5em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p, ul, ol, blockquote, figure, table { margin: 0 0 1.25em; }
hr { border: 0; border-top: 1px solid var(--jr-border); margin: 2.5em 0; }
blockquote {
	border-left: 4px solid var(--jr-yellow);
	background: var(--jr-cream);
	padding: 1em 1.25em;
	border-radius: 0 var(--jr-radius-sm) var(--jr-radius-sm) 0;
	font-style: italic;
}
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { border: 1px solid var(--jr-border); padding: .6em .8em; text-align: left; }
th { background: var(--jr-cream); }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--jr-cream); padding: 1em; overflow-x: auto; border-radius: var(--jr-radius-sm); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--jr-surface); clip: auto !important; clip-path: none; color: var(--jr-text);
	display: block; font-size: 1rem; height: auto; left: 10px; padding: 12px 20px; top: 10px; width: auto; z-index: 100000;
}
.jr-wrap { width: 100%; max-width: var(--jr-wrap); margin: 0 auto; padding: 0 var(--jr-gutter); }

/* ---------- Buttons ---------- */
.jr-btn, .wp-block-button__link, button[type="submit"], input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--jr-accent); color: #fff; border: 0; border-radius: 999px;
	padding: .75em 1.4em; font: 600 .95rem/1.2 var(--jr-sans); text-decoration: none; cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.jr-btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--jr-accent-dark); color: #fff; }
.jr-btn--yellow { background: var(--jr-yellow); color: var(--jr-green); }
.jr-btn--yellow:hover { background: #e6b51f; color: var(--jr-green); }
.jr-btn--ghost { background: transparent; color: var(--jr-text); border: 1.5px solid var(--jr-border); }
.jr-btn--ghost:hover { background: var(--jr-cream); color: var(--jr-text); }

/* ---------- Header ---------- */
.jr-topbar { background: var(--jr-green); color: #faf7ee; font-size: .8rem; text-align: center; padding: 6px var(--jr-gutter); letter-spacing: .02em; }
.jr-header { background: var(--jr-surface); border-bottom: 1px solid var(--jr-border); position: sticky; top: 0; z-index: 50; }
.admin-bar .jr-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .jr-header { top: 0; position: relative; } }
.jr-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.jr-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--jr-text); }
.jr-brand:hover { color: var(--jr-text); }
.jr-brand__mark { width: 40px; height: 40px; flex: 0 0 40px; }
.jr-brand__name { font-family: var(--jr-serif); font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -.02em; }
.jr-brand__name span { color: var(--jr-orange); }
.custom-logo { max-height: 52px; width: auto; }
.jr-brand__logo { height: 62px; width: auto; }
.jr-footer .jr-brand__logo { height: 64px; }
@media (max-width: 560px) { .jr-brand__logo { height: 44px; } }

.jr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: nowrap; }
.jr-nav a { display: block; padding: 10px 10px; color: var(--jr-text); text-decoration: none; font-weight: 550; font-size: .92rem; white-space: nowrap; border-radius: var(--jr-radius-sm); }
.jr-nav a:hover, .jr-nav .current-menu-item > a, .jr-nav .current-menu-parent > a { color: var(--jr-accent-dark); background: var(--jr-cream); }
.jr-nav li { position: relative; }
.jr-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius-sm); box-shadow: var(--jr-shadow); padding: 6px; flex-direction: column; z-index: 60; }
.jr-nav li:hover > .sub-menu, .jr-nav li:focus-within > .sub-menu { display: flex; }

.jr-header__actions { display: flex; align-items: center; gap: 6px; }
.jr-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--jr-text); cursor: pointer; }
.jr-icon-btn:hover { background: var(--jr-cream); }
.jr-icon-btn svg { width: 22px; height: 22px; }
.jr-menu-toggle { display: none; }

.jr-search-panel { display: none; border-top: 1px solid var(--jr-border); background: var(--jr-surface); padding: 14px 0; }
.jr-search-panel.is-open { display: block; }

@media (max-width: 1200px) {
	.jr-menu-toggle { display: inline-flex; }
	.jr-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--jr-surface); border-bottom: 1px solid var(--jr-border); box-shadow: var(--jr-shadow); padding: 8px var(--jr-gutter) 16px; max-height: calc(100vh - 80px); overflow-y: auto; }
	.jr-nav.is-open { display: block; }
	.jr-nav ul { flex-direction: column; flex-wrap: wrap; }
	.jr-nav a { white-space: normal; }
	.jr-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.jr-nav a { padding: 12px 8px; font-size: 1.05rem; }
}

/* ---------- Language switcher ---------- */
.jr-lang { position: relative; }
.jr-lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--jr-border); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--jr-green); background: var(--jr-surface); }
.jr-lang summary::-webkit-details-marker { display: none; }
.jr-lang summary::after { content: "▾"; font-size: .8rem; line-height: 1; margin-left: 1px; }
.jr-lang summary:hover { background: var(--jr-cream); }
.jr-lang img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; display: inline-block; }
.jr-lang ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; list-style: none; margin: 0; padding: 6px; background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius-sm); box-shadow: var(--jr-shadow); z-index: 70; }
.jr-lang li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--jr-text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.jr-lang li a:hover, .jr-lang li a[aria-current] { background: var(--jr-cream); color: var(--jr-green); font-weight: 700; }

/* ---------- Search form ---------- */
.jr-search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.jr-search-form input[type="search"] { flex: 1; min-width: 0; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; font: inherit; font-size: 1rem; color: var(--jr-text); background: var(--jr-surface);
	border: 1.5px solid var(--jr-border); border-radius: var(--jr-radius-sm); padding: .7em .9em;
}
input:focus, textarea:focus, select:focus { border-color: var(--jr-accent); outline: none; box-shadow: 0 0 0 3px rgba(244, 196, 48, .35); }
label { font-weight: 600; font-size: .95rem; }

/* ---------- Layout ---------- */
.jr-main { padding: 32px 0 64px; }
.jr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.jr-layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .jr-layout { grid-template-columns: minmax(0, 1fr); } }
.jr-content-col { min-width: 0; }
.jr-narrow { max-width: var(--jr-content); margin: 0 auto; }

/* ---------- Breadcrumbs & meta ---------- */
.jr-breadcrumbs { font-size: .85rem; color: var(--jr-muted); margin-bottom: 14px; }
.jr-breadcrumbs a { color: var(--jr-muted); text-decoration: none; }
.jr-breadcrumbs a:hover { color: var(--jr-accent-dark); text-decoration: underline; }
.jr-breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.jr-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jr-olive); text-decoration: none; }
a.jr-eyebrow:hover { color: var(--jr-accent-dark); }
.jr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--jr-muted); font-size: .9rem; }
.jr-meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--jr-text); font-weight: 600; text-decoration: none; }
.jr-meta__author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--jr-cream); }
.jr-meta .dot { opacity: .5; }

/* ---------- Single post ---------- */
.jr-post-header h1 { margin: .25em 0 .4em; }
.jr-post-excerpt { font-size: 1.15rem; color: var(--jr-muted); margin: 0 0 1em; }
.jr-post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.jr-featured { margin: 0 0 28px; border-radius: var(--jr-radius); overflow: hidden; background: var(--jr-cream); }
.jr-featured img { width: 100%; height: auto; }
.jr-featured figcaption { font-size: .85rem; color: var(--jr-muted); padding: 8px 12px; }

.entry-content > * { max-width: 100%; }
.entry-content h2 { scroll-margin-top: 100px; }
.entry-content h3 { scroll-margin-top: 100px; }
.entry-content img { border-radius: var(--jr-radius-sm); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: .85rem; color: var(--jr-muted); text-align: center; margin-top: 6px; }
.entry-content ul li, .entry-content ol li { margin-bottom: .4em; }
.entry-content ul li::marker { color: var(--jr-orange); }
.entry-content ol li::marker { color: var(--jr-orange); font-weight: 700; }
.entry-content .aligncenter { display: block; text-align: center; }
.entry-content .aligncenter img { margin-left: auto; margin-right: auto; }
.is-style-rounded img { border-radius: 9999px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--jr-muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }

/* Tip / note boxes (use the "Tip box" block style on a Group or Paragraph) */
.is-style-jr-tip, .jr-tip {
	background: var(--jr-olive-soft); border-left: 4px solid var(--jr-olive); border-radius: 0 var(--jr-radius-sm) var(--jr-radius-sm) 0;
	padding: 1em 1.25em;
}

/* Table of contents */
.jr-toc { background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius); padding: 18px 22px; margin: 0 0 28px; }
.jr-toc summary { font-family: var(--jr-serif); font-weight: 700; font-size: 1.15rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.jr-toc summary::-webkit-details-marker { display: none; }
.jr-toc summary::after { content: "+"; font-family: var(--jr-sans); color: var(--jr-orange); font-size: 1.4rem; line-height: 1; }
.jr-toc[open] summary::after { content: "\2212"; }
.jr-toc ol { margin: 12px 0 0; padding-left: 1.3em; font-size: .97rem; }
.jr-toc li { margin: 4px 0; }
.jr-toc a { text-decoration: none; color: var(--jr-text); }
.jr-toc a:hover { color: var(--jr-accent-dark); text-decoration: underline; }

/* Share */
.jr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--jr-border); border-bottom: 1px solid var(--jr-border); }
.jr-share__label { font-weight: 700; margin-right: 6px; }
.jr-share a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--jr-cream); color: var(--jr-text); text-decoration: none; font-size: .88rem; font-weight: 600; }
.jr-share a:hover { background: var(--jr-yellow); color: var(--jr-green); }
.jr-share svg { width: 16px; height: 16px; }

/* Tags */
.jr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.jr-tags a { font-size: .85rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--jr-border); color: var(--jr-muted); text-decoration: none; background: var(--jr-surface); }
.jr-tags a:hover { border-color: var(--jr-accent); color: var(--jr-accent-dark); }

/* Author box */
.jr-author-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius); padding: 24px; margin: 36px 0; }
.jr-author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--jr-cream); }
.jr-author-box h2 { font-size: 1.3rem; margin: 0 0 6px; }
.jr-author-box p { margin: 0 0 10px; color: var(--jr-muted); font-size: .98rem; }
.jr-author-box .jr-eyebrow { margin-bottom: 2px; }
@media (max-width: 560px) { .jr-author-box { grid-template-columns: 1fr; text-align: center; } .jr-author-box img { margin: 0 auto; } }

/* ---------- Cards & grids ---------- */
.jr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.jr-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.jr-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .jr-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .jr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 560px) { .jr-grid, .jr-grid--4, .jr-grid--2 { grid-template-columns: minmax(0, 1fr); } }

.jr-card { display: flex; flex-direction: column; background: var(--jr-surface); border-radius: var(--jr-radius); overflow: hidden; box-shadow: var(--jr-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.jr-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43, 33, 28, .06), 0 14px 32px rgba(43, 33, 28, .1); }
.jr-card__media { display: block; aspect-ratio: 3 / 2; background: var(--jr-cream); overflow: hidden; }
.jr-card__media img { width: 100%; height: 100%; object-fit: cover; }
.jr-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--jr-leaf); opacity: .6; }
.jr-card__placeholder svg { width: 56px; height: 56px; }
.jr-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.jr-card__title { font-size: 1.18rem; margin: 0; line-height: 1.3; }
.jr-card__title a { color: var(--jr-text); text-decoration: none; }
.jr-card__title a:hover { color: var(--jr-accent-dark); }
.jr-card__excerpt { font-size: .93rem; color: var(--jr-muted); margin: 0; line-height: 1.55; }
.jr-card__meta { margin-top: auto; padding-top: 6px; font-size: .8rem; color: var(--jr-muted); }
.jr-grid--4 .jr-card__title { font-size: 1.05rem; }

/* Section heading */
.jr-section { margin: 0 0 56px; }
.jr-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 12px; position: relative; }
.jr-section__head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 5px; border-radius: 99px; background: var(--jr-yellow); transform: rotate(-1deg); }
.jr-section__head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.jr-section__head a { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }

/* ---------- Home hero ---------- */
.jr-hero { background: var(--jr-cream); border-bottom: 1px solid var(--jr-border); padding: 56px 0; margin-bottom: 48px; }
.jr-hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.jr-hero h1 { margin: .2em 0 .35em; font-size: clamp(2.1rem, 4.6vw, 3.2rem); color: var(--jr-green); }
.jr-hero h1::after { content: ""; display: block; width: 140px; height: 7px; margin-top: 14px; border-radius: 99px; background: var(--jr-yellow); transform: rotate(-1.5deg); }
.jr-hero p { font-size: 1.15rem; color: var(--jr-muted); max-width: 34em; }
.jr-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.jr-hero__feature { position: relative; border-radius: var(--jr-radius); overflow: hidden; box-shadow: var(--jr-shadow); background: var(--jr-surface); }
.jr-hero__feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.jr-hero__feature-body { padding: 16px 20px 20px; }
.jr-hero__feature-body h2 { font-size: 1.35rem; margin: 4px 0 0; }
.jr-hero__feature-body h2 a { color: var(--jr-text); text-decoration: none; }
.jr-hero__art { display: flex; justify-content: center; }
.jr-hero__art svg { width: min(360px, 100%); height: auto; }
@media (max-width: 860px) { .jr-hero { padding: 36px 0; } .jr-hero__inner { grid-template-columns: 1fr; gap: 28px; } }

/* Category chips */
.jr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 48px; justify-content: center; }
.jr-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--jr-surface); border: 1px solid var(--jr-border); color: var(--jr-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.jr-chip:hover { border-color: var(--jr-green); background: var(--jr-yellow); color: var(--jr-green); }
.jr-chip small { color: var(--jr-muted); font-weight: 500; }

/* Archive header */
.jr-archive-head { background: var(--jr-cream); border-bottom: 1px solid var(--jr-border); padding: 40px 0 34px; margin-bottom: 40px; text-align: center; }
.jr-archive-head h1 { margin: .2em 0 .3em; }
.jr-archive-head p, .jr-archive-head .archive-description { color: var(--jr-muted); max-width: 640px; margin: 0 auto; }

/* Pagination */
.jr-pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 48px 0 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--jr-surface); border: 1px solid var(--jr-border); color: var(--jr-text); text-decoration: none; font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--jr-green); border-color: var(--jr-green); color: #fff; }
.page-numbers.dots { background: transparent; border: 0; }
.jr-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0; }
.jr-post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--jr-border); border-radius: var(--jr-radius-sm); text-decoration: none; color: var(--jr-text); background: var(--jr-surface); }
.jr-post-nav a:hover { border-color: var(--jr-accent); }
.jr-post-nav small { display: block; color: var(--jr-muted); font-size: .8rem; margin-bottom: 4px; }
.jr-post-nav .next { text-align: right; }
@media (max-width: 560px) { .jr-post-nav { grid-template-columns: 1fr; } .jr-post-nav .next { text-align: left; } }

/* ---------- Sidebar & widgets ---------- */
.jr-sidebar { display: flex; flex-direction: column; gap: 28px; }
.jr-sidebar__sticky { position: sticky; top: 100px; }
.widget { background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius); padding: 20px 22px; }
.widget-title, .widget h2 { font-size: 1.15rem; margin: 0 0 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--jr-border); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; color: var(--jr-text); }
.widget a:hover { color: var(--jr-accent-dark); }
.jr-about-widget { text-align: center; }
.jr-about-widget img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; background: var(--jr-cream); }
.jr-about-widget p { color: var(--jr-muted); font-size: .95rem; }
.jr-mini-list { list-style: none; margin: 0; padding: 0; }
.jr-mini-list li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--jr-border); }
.jr-mini-list li:last-child { border-bottom: 0; }
.jr-mini-list img, .jr-mini-list .jr-mini-ph { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--jr-cream); }
.jr-mini-list a { font-weight: 600; font-size: .93rem; line-height: 1.35; }

/* ---------- Ad slots ---------- */
.jr-ad { margin: 28px auto; text-align: center; clear: both; overflow: hidden; }
.jr-ad--below_header { margin: 16px auto 0; }
.jr-ad--sidebar_sticky { position: sticky; top: 100px; }
.jr-ad:empty { display: none; }

/* ---------- Comments ---------- */
.jr-comments { margin-top: 48px; }
.jr-comments h2 { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--jr-border); margin-left: 12px; }
.comment-body { background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.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 8px; }
.comment-metadata a { color: var(--jr-muted); text-decoration: none; }
.reply a { font-size: .85rem; font-weight: 600; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: start; }
.comment-form-cookies-consent label { font-weight: 400; font-size: .9rem; }

/* ---------- Contact form ---------- */
.jr-form { background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius); padding: 24px; margin: 24px 0; }
.jr-form__row { margin-bottom: 16px; }
.jr-form__row label { display: block; margin-bottom: 6px; }
.jr-form__check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.jr-form__check input { margin-top: 5px; }
.jr-form__check label { font-weight: 400; }
.jr-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.jr-notice { padding: 14px 18px; border-radius: var(--jr-radius-sm); margin: 16px 0; font-weight: 500; }
.jr-notice--ok { background: var(--jr-olive-soft); border: 1px solid #c7cfa8; }
.jr-notice--err { background: #fbe9e3; border: 1px solid #efc2b2; }

/* ---------- Recipe index shortcode ---------- */
.jr-recipe-index .jr-section { margin-bottom: 44px; }

/* ---------- Page ---------- */
.jr-page-header { text-align: center; margin-bottom: 28px; }
.jr-page-header h1 { margin-top: .2em; }
.jr-legal { font-size: 1rem; }
.jr-legal h2 { font-size: 1.4rem; }
.jr-legal h3 { font-size: 1.15rem; }

/* ---------- 404 / empty ---------- */
.jr-empty { text-align: center; padding: 40px 0; }
.jr-empty svg { width: 120px; height: 120px; margin: 0 auto 16px; display: block; }

/* ---------- Footer ---------- */
.jr-footer { background: var(--jr-green); color: #e9e4d4; padding: 56px 0 28px; font-size: .95rem; }
.jr-footer a { color: #faf7ee; text-decoration: none; }
.jr-footer a:hover { color: #fff; text-decoration: underline; }
.jr-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .jr-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.jr-footer h2 { color: #fff; font-size: 1.1rem; margin: 0 0 12px; }
.jr-footer .jr-brand { color: #fff; margin-bottom: 12px; }
.jr-footer .jr-brand__name span { color: var(--jr-yellow); }
.jr-footer p { color: #c9cfc0; }
.jr-footer ul { list-style: none; margin: 0; padding: 0; }
.jr-footer li { margin: 6px 0; }
.jr-social { display: flex; gap: 10px; margin-top: 14px; }
.jr-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.jr-social a:hover { background: var(--jr-yellow); color: var(--jr-green); }
.jr-social svg { width: 18px; height: 18px; fill: currentColor; }
.jr-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #aab3a2; }
.jr-footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.jr-footer__legal li { margin: 0; }

/* ---------- Homepage sections ---------- */
/* Hide the categories / latest sections until there are published recipes. */
.jr-home-cats:not(:has(.jr-cat-grid)), .jr-home-latest:not(:has(.jr-grid)) { display: none; }
.jr-home { max-width: 100%; }
.jr-home .jr-home-section { margin: 0 0 72px; }
.jr-home h2 { margin-top: 0; color: var(--jr-green); }
.jr-home h2::after { content: ""; display: block; width: 72px; height: 5px; margin-top: 12px; border-radius: 99px; background: var(--jr-yellow); transform: rotate(-1deg); }
.jr-home-intro { max-width: 820px; margin-left: auto !important; margin-right: auto !important; text-align: center; font-size: 1.08rem; }
.jr-home-intro h2::after, .jr-promise h2::after, .jr-faqs h2::after, .jr-cta h2::after { margin-left: auto; margin-right: auto; }
.jr-ico { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--jr-cream); color: var(--jr-green); flex: 0 0 72px; }
.jr-ico svg { width: 38px; height: 38px; }
.jr-pillars { gap: 24px !important; }
.jr-pillar { background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius); padding: 28px 26px; text-align: center; box-shadow: var(--jr-shadow); }
.jr-pillar h3 { margin: 14px 0 8px; color: var(--jr-green); font-size: 1.35rem; }
.jr-pillar p { margin: 0; color: var(--jr-muted); font-size: 1rem; }
.jr-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .jr-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .jr-cat-grid { grid-template-columns: minmax(0, 1fr); } }
.jr-cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 18px; background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius); text-decoration: none; color: var(--jr-text); transition: transform .2s ease, border-color .2s ease; }
.jr-cat-card:hover { transform: translateY(-3px); border-color: var(--jr-leaf); color: var(--jr-text); }
.jr-cat-card .jr-ico { width: 64px; height: 64px; flex-basis: 64px; }
.jr-cat-card__name { font-family: var(--jr-serif); font-weight: 700; font-size: 1.08rem; color: var(--jr-green); }
.jr-cat-card__desc { font-size: .88rem; color: var(--jr-muted); line-height: 1.5; }
.jr-cat-card__count { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--jr-olive); text-transform: uppercase; letter-spacing: .05em; }
.jr-center { justify-content: center; margin-top: 28px; }
.jr-promise { background: var(--jr-cream); border-radius: var(--jr-radius); padding: 40px clamp(20px, 5vw, 56px); text-align: center; }
.jr-checklist { list-style: none; padding: 0; margin: 24px auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; text-align: left; }
@media (max-width: 700px) { .jr-checklist { grid-template-columns: minmax(0, 1fr); } }
.entry-content .jr-checklist li { position: relative; padding-left: 34px; margin: 0; }
.jr-checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--jr-leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.jr-meet { background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius); padding: 32px clamp(20px, 4vw, 48px); gap: 36px !important; }
.entry-content .jr-meet__photo { width: 220px; height: 220px; border-radius: 50%; margin: 0 auto; background: var(--jr-cream); }
.jr-faqs { max-width: 820px; margin-left: auto !important; margin-right: auto !important; }
.jr-faqs h2 { text-align: center; }
.jr-faq { background: var(--jr-surface); border: 1px solid var(--jr-border); border-radius: var(--jr-radius-sm); padding: 0; margin: 0 0 12px; }
.jr-faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-family: var(--jr-serif); font-weight: 600; color: var(--jr-green); list-style: none; position: relative; }
.jr-faq summary::-webkit-details-marker { display: none; }
.jr-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--jr-orange); }
.jr-faq[open] summary::after { content: "\2212"; }
.jr-faq p { padding: 0 20px 18px; margin: 0; color: var(--jr-muted); }
.jr-cta { background: var(--jr-green); color: #e9e4d4; border-radius: var(--jr-radius); padding: 48px clamp(20px, 5vw, 56px); text-align: center; }
.jr-cta h2 { color: #fff; }
.jr-cta .wp-block-buttons { justify-content: center; }
.jr-btn-yellow .wp-block-button__link { background: var(--jr-yellow); color: var(--jr-green); }
.jr-btn-yellow .wp-block-button__link:hover { background: #e6b51f; color: var(--jr-green); }
@media (max-width: 781px) { .jr-meet { text-align: center; } }

/* ---------- Recipe plugin (WP Recipe Maker / Tasty) harmonisation ---------- */
.wprm-recipe-container, .tasty-recipes { border-radius: var(--jr-radius) !important; }
.wprm-recipe-template-snippet-basic-buttons a { border-radius: 999px !important; }

/* ---------- Print ---------- */
@media print {
	.jr-topbar, .jr-header, .jr-footer, .jr-sidebar, .jr-share, .jr-ad, .jr-comments, .jr-post-nav, .jr-related, .jr-toc, .jr-post-actions, .jr-breadcrumbs { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.jr-layout { display: block; }
	a { color: #000; text-decoration: none; }
}
