/* ============================================================
   League of Cooking (Limoncella-style) — category/archive pages.
   MEASURED from Limoncella's category archive (/category/all-recipes/
   breakfast/) 2026-07-19: breadcrumb, H1, description paragraph, 4-column
   grid (was 3), minimal cards (image + multi-category pipe label + title
   only - no excerpt, no author/date, no "read more").
   ============================================================ */

/* ---- Archive hero band: breadcrumb + H1 + description ---- */
.archive .entry-hero,
.category .entry-hero {
	background: var(--lim-bg);
}
.archive .archive-title,
.category .archive-title {
	font-family: var(--lim-font-heading); color: var(--lim-ink-dark);
}
.archive .archive-description,
.category .archive-description {
	max-width: 720px; color: var(--lim-ink); font-size: 17px; line-height: 1.6;
}
.kadence-breadcrumbs, .kadence-breadcrumbs a { color: var(--lim-ink); font-family: var(--lim-font-body); }
.kadence-breadcrumbs a:hover { color: var(--lim-accent); }

/* ---- Archive grid: force 4 columns @1440 (MEASURED - was 3) ---- */
@media (min-width: 1200px) {
	.kadence-posts-list.grid-lg-col-3 {
		grid-template-columns: repeat(4, 1fr) !important;
	}
}
.kadence-posts-list {
	column-gap: var(--lim-space-6);
	row-gap: var(--lim-space-8);
}

/* Fix 2026-07-20: was 4/5 (0.8) - a real re-measurement of the live reference
   (every card image on the actual Limoncella site, archive AND homepage,
   measures 0.75) shows 3/4 is the correct, exact match - and now matches our
   own homepage cards too (previously 4/3 landscape, also fixed). */
/* Fix 2026-07-20 (owner-flagged regression): the OUTER .post-thumbnail
   wrapper still carried Kadence's own fixed/computed height (~194px,
   landscape) with overflow:hidden - it was clipping the correctly-sized
   3/4 inner image down to a short landscape crop. Found by comparing
   getBoundingClientRect() on the img (reported 3/4 correctly) against the
   actual visible/rendered crop in a screenshot, which didn't match -
   proof the ancestor, not the image itself, was the real clipping culprit. */
.kadence-posts-list .post-thumbnail {
	aspect-ratio: 3 / 4 !important;
	height: auto !important;
	padding-top: 0 !important;
}
.kadence-posts-list .post-thumbnail-inner {
	aspect-ratio: 3 / 4 !important;
	padding-top: 0 !important;
	height: auto !important;
}
.kadence-posts-list .post-thumbnail-inner img {
	position: static !important;
	width: 100%; height: 100%; object-fit: cover;
	transition: transform 0.3s ease-in-out;
}
.kadence-posts-list .post-thumbnail:hover .post-thumbnail-inner img { transform: scale(1.05); }

.kadence-posts-list .entry.content-bg,
.kadence-posts-list article.entry {
	border: 1px solid var(--lim-border);
	border-radius: var(--lim-radius-button);
	box-shadow: none;
}

/* Minimal card body: MEASURED - Limoncella shows no excerpt, no author/date,
   no "read more" link on archive cards. Hide those, keep category label +
   title only (matching the homepage's lim-card treatment). */
.kadence-posts-list .entry-content-wrap p,
.kadence-posts-list .entry-meta,
.kadence-posts-list .more-link-container,
.kadence-posts-list .entry-content-wrap .entry-content {
	display: none !important;
}
.kadence-posts-list .entry-title {
	font-family: var(--lim-font-heading); font-size: 17px; line-height: 1.3; margin-top: var(--lim-space-1);
	/* Fix 2026-07-20: an SEO-keyword-stuffed real post title ("Banana Pudding
	   Cookies Recipe | Snacks to Bake, How to Make...") wrapped to 4 lines and
	   visibly stretched its whole grid row taller than its neighbors - found via
	   real-browser visual inspection of the Dessert archive. Clamp to 2 lines so
	   an outlier title can't break row-height consistency; full title stays in
	   the anchor's title attribute/on the post page itself. */
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.kadence-posts-list .entry-title a { color: var(--lim-ink-dark); }
.kadence-posts-list .entry-title a:hover { color: var(--lim-accent); }

/* Multi-category pipe label (MEASURED: "ALL RECIPES | Breakfast") - added
   via ::before so the existing single-category output doesn't need a PHP
   template override for this cosmetic prefix. */
.kadence-posts-list .entry-taxonomies .category-links {
	font-family: var(--lim-font-heading); font-size: 12px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .5px; color: var(--lim-accent);
}
.kadence-posts-list .entry-taxonomies .category-links::before {
	content: "All Recipes | ";
}
.kadence-posts-list .entry-taxonomies a { color: var(--lim-accent); text-decoration: none; }
.kadence-posts-list .entry-taxonomies a:hover { text-decoration: underline; }

/* ---- Pagination ---- */
.pagination .page-numbers {
	font-family: var(--lim-font-body); border: 1px solid var(--lim-border); border-radius: var(--lim-radius-small);
	color: var(--lim-ink-dark);
}
.pagination .page-numbers.current { background: var(--lim-accent); color: #fff; border-color: var(--lim-accent); }
.pagination .page-numbers:hover { background: var(--lim-periwinkle); }

@media (max-width: 1024px) {
	.kadence-posts-list.grid-lg-col-3 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   SINGLE RECIPE POST TEMPLATE (Phase 6)
   Preserves 100% of existing post content/data - restyles only
   the surrounding layout: title/meta, jump/print buttons, WPRM
   recipe card, related-posts carousel, comments, prev/next nav,
   and the sidebar. Right-sidebar layout enabled via Customizer
   (Posts/Pages Layout -> Single Post Layout -> Default Post
   Layout -> Right Sidebar), 2026-07-19.
   ============================================================ */

/* ---- Category pipe-label + title + byline (MEASURED pattern
   reused from archive cards: accent, uppercase, small-caps label) ---- */
.single-post .entry-taxonomies .category-links {
	font-family: var(--lim-font-heading); font-size: 12px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .5px; color: var(--lim-accent);
}
.single-post .entry-taxonomies .category-links::before { content: "All Recipes | "; }
.single-post .entry-title {
	font-family: var(--lim-font-heading); color: var(--lim-ink-dark);
}
@media (max-width: 480px) {
	/* Fix 2026-07-20: paired with the Craving-DNA-bar mobile shrink in
	   home.css - a real long post title (5-6 wrapped lines at 32px/48px
	   line-height) still pushed past the fixed bar on initial load. A
	   slightly smaller mobile H1 buys back space for every long title,
	   not just this one, without hurting readability of short titles. */
	.single-post .entry-title { font-size: 26px; line-height: 1.3; }
}
.single-post .entry-meta,
.single-post .entry-meta a {
	font-family: var(--lim-font-body); color: var(--lim-ink); font-size: 14px;
}
.kadence-breadcrumbs, .kadence-breadcrumbs a { color: var(--lim-ink); font-family: var(--lim-font-body); font-size: 13px; }
.kadence-breadcrumbs a:hover { color: var(--lim-accent); }

/* ---- Jump to Recipe / Print buttons (WPRM inline styles use
   #000000 - override with !important to match brand accent) ---- */
.single-post .wprm-recipe-jump,
.single-post .wprm-recipe-print {
	background-color: var(--lim-accent) !important;
	border-color: var(--lim-accent) !important;
	border-radius: var(--lim-radius-button) !important;
}
.single-post .wprm-recipe-jump:hover,
.single-post .wprm-recipe-print:hover {
	background-color: var(--lim-accent-hover) !important;
	border-color: var(--lim-accent-hover) !important;
}

/* ---- WPRM recipe card (Manage Templates colors are inline -
   override with !important, scoped to this theme only) ---- */
.wprm-recipe-container .wprm-recipe-template-cutout-header {
	background: var(--lim-bg) !important;
}
.wprm-recipe-container .wprm-recipe-name,
.wprm-recipe-container .wprm-recipe-summary,
.wprm-recipe-container .wprm-recipe-details-label,
.wprm-recipe-container .wprm-recipe-details,
.wprm-recipe-container .wprm-recipe-details-unit,
.wprm-recipe-container .wprm-recipe-course,
.wprm-recipe-container .wprm-recipe-cuisine,
.wprm-recipe-container .wprm-recipe-keyword,
.wprm-recipe-container .wprm-recipe-time,
.wprm-recipe-container .wprm-recipe-servings {
	color: var(--lim-ink-dark) !important;
}
.wprm-recipe-container .wprm-recipe-name { font-family: var(--lim-font-heading) !important; }
.wprm-recipe-container .wprm-recipe-header {
	font-family: var(--lim-font-heading) !important; color: var(--lim-ink-dark) !important;
	border-bottom: 2px solid var(--lim-border) !important;
}
.wprm-recipe-container .wprm-recipe-print,
.wprm-recipe-container .wprm-recipe-pin,
.wprm-recipe-container .wprm-recipe-jump-to-comments {
	background-color: var(--lim-bg) !important;
	color: var(--lim-ink-dark) !important;
	border-color: var(--lim-border) !important;
	border-radius: var(--lim-radius-small) !important;
}
.wprm-recipe-container .wprm-recipe-details-label { color: var(--lim-steel-blue) !important; }
.wprm-recipe-container .wprm-recipe-servings-adjustable-tooltip,
.wprm-recipe-container a { color: var(--lim-accent); }

/* ---- Post navigation (prev/next) ---- */
.post-navigation { border-top: 1px solid var(--lim-border); border-bottom: 1px solid var(--lim-border); }
.post-navigation .nav-links a { color: var(--lim-ink-dark); font-family: var(--lim-font-body); }
.post-navigation .nav-links a:hover { color: var(--lim-accent); }
.post-navigation-sub small { color: var(--lim-accent); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }

/* ---- "Similar Posts" -> compact 4-card treatment (MEASURED
   requirement: no large excerpt cards - image + pipe-label +
   title only, matching the archive/homepage card style) ---- */
.entry-related-title {
	font-family: var(--lim-font-heading); color: var(--lim-ink-dark); text-align: center;
}
.entry-related .kadence-posts-list.grid-lg-col-2 {
	grid-template-columns: repeat(4, 1fr) !important;
}
.entry-related .entry-summary,
.entry-related .entry-meta,
.entry-related .entry-actions {
	display: none !important;
}
.entry-related .post-thumbnail-inner img { transition: transform 0.3s ease-in-out; }
.entry-related .post-thumbnail:hover .post-thumbnail-inner img { transform: scale(1.05); }
.entry-related .entry-taxonomies .category-links {
	font-family: var(--lim-font-heading); font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .5px; color: var(--lim-accent);
}
.entry-related .entry-taxonomies .category-links::before { content: "All Recipes | "; }
.entry-related .entry-title {
	font-family: var(--lim-font-heading); font-size: 15px; color: var(--lim-ink-dark);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-related .splide__arrow svg { fill: var(--lim-ink-dark); }
.entry-related .splide__pagination__page.is-active { background: var(--lim-accent); }
@media (max-width: 1024px) {
	.entry-related .kadence-posts-list.grid-lg-col-2 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---- Comments ---- */
.comments-area, .comment-respond {
	border-top: 1px solid var(--lim-border);
}
.comment-reply-title, .comments-title {
	font-family: var(--lim-font-heading); color: var(--lim-ink-dark);
}
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
	border: 1px solid var(--lim-border); border-radius: var(--lim-radius-small);
	font-family: var(--lim-font-body);
}
.comment-form input[type="submit"] {
	background-color: var(--lim-accent); border-color: var(--lim-accent);
	border-radius: var(--lim-radius-button); color: #fff;
}
.comment-form input[type="submit"]:hover { background-color: var(--lim-accent-hover); }

/* ---- Sidebar (right sidebar, single-post layout) ----
   Content is 100% real, existing widgets (kept from prior theme):
   Meet Amelia mini-card w/ real photo, About link, Search,
   Categories, Recent Posts, real Pinterest follow links, and a
   real newsletter opt-in form. Restyled only - no new content. */
.primary-sidebar.widget-area {
	position: sticky; top: 100px;
}
.primary-sidebar .widget {
	background: var(--lim-surface);
	border: 1px solid var(--lim-border);
	border-radius: var(--lim-radius-button);
	padding: var(--lim-space-5);
	margin-bottom: var(--lim-space-6);
}
.primary-sidebar .widget-title,
.primary-sidebar .uagb-heading-text {
	font-family: var(--lim-font-heading); color: var(--lim-ink-dark);
	font-size: 15px; text-transform: uppercase; letter-spacing: .5px;
	text-align: center;
}
/* Meet Amelia info-box: keep its own 20px-radius card, just align
   spacing with the rest of the sidebar rhythm */
.primary-sidebar .wp-block-kadence-infobox { margin-top: 0; }
.primary-sidebar .kt-blocks-info-box-title { font-family: var(--lim-font-heading); color: var(--lim-ink-dark); }
.primary-sidebar .kt-blocks-info-box-text { font-family: var(--lim-font-body); color: var(--lim-ink); font-size: 14px; }
/* About Me button */
.primary-sidebar .uagb-buttons-repeater {
	background: var(--lim-accent) !important; border-color: var(--lim-accent) !important;
	border-radius: var(--lim-radius-button) !important; width: 100%; text-align: center;
	justify-content: center;
}
.primary-sidebar .uagb-buttons-repeater:hover { background: var(--lim-accent-hover) !important; }
/* Search widget - Kadence positions .search-submit absolute (right:0),
   overlaying the field, so pad the field instead of fighting the flow */
.primary-sidebar .search-form { position: relative; }
.primary-sidebar .search-form .search-field {
	border: 1px solid var(--lim-border); border-radius: var(--lim-radius-small);
	font-family: var(--lim-font-body); width: 100%; box-sizing: border-box;
	padding-right: 56px !important;
}
.primary-sidebar .search-form .search-submit {
	background: var(--lim-accent) !important; font-size: 0; color: transparent; border-radius: 0 var(--lim-radius-small) var(--lim-radius-small) 0 !important;
	position: absolute !important; right: 0; top: 0; height: 100% !important; width: 50px !important;
}
.primary-sidebar .search-form .kadence-search-icon-wrap { color: #fff; }
/* Fix 2026-07-20 (owner feedback): the plain-text Categories/Recent Posts
   lists read as bare text with no imagery. Replaced with [lim_sidebar_categories]
   / [lim_sidebar_recent] - real per-item photo + label rows. */
.lim-sidebar-cats, .lim-sidebar-recent { display: flex; flex-direction: column; gap: var(--lim-space-1); }
.lim-sidebar-cats__item, .lim-sidebar-recent__item {
	display: flex; align-items: center; gap: var(--lim-space-3);
	padding: var(--lim-space-2) 0; border-bottom: 1px solid var(--lim-border);
	text-decoration: none; font-family: var(--lim-font-body);
}
.lim-sidebar-cats__item:last-child, .lim-sidebar-recent__item:last-child { border-bottom: none; }
.lim-sidebar-cats__img, .lim-sidebar-recent__img {
	flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--lim-radius-circle);
	overflow: hidden; border: 1px solid var(--lim-border);
}
.lim-sidebar-cats__img img, .lim-sidebar-recent__img img { width: 100%; height: 100%; object-fit: cover; }
.lim-sidebar-cats__name, .lim-sidebar-recent__title { flex: 1; color: var(--lim-ink-dark); font-size: 14px; line-height: 1.35; }
.lim-sidebar-recent__title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lim-sidebar-cats__count { flex: 0 0 auto; font-size: 12px; color: var(--lim-steel-blue); }
.lim-sidebar-cats__item:hover .lim-sidebar-cats__name,
.lim-sidebar-recent__item:hover .lim-sidebar-recent__title { color: var(--lim-accent); }
/* Follow Us social links */
.primary-sidebar .wp-block-social-links { justify-content: center; }
.primary-sidebar .wp-block-social-link a { background-color: var(--lim-periwinkle) !important; }
.primary-sidebar .wp-block-social-link:hover a { background-color: var(--lim-accent) !important; }
/* Newsletter form */
.primary-sidebar .uagb-forms-main-form input[type="text"],
.primary-sidebar .uagb-forms-main-form input[type="email"] {
	border: 1px solid var(--lim-border); border-radius: var(--lim-radius-small); width: 100%;
}
.primary-sidebar .uagb-forms-main-form button,
.primary-sidebar .uagb-forms-main-form input[type="submit"] {
	background: var(--lim-accent); color: #fff; border-radius: var(--lim-radius-button); width: 100%;
}
.primary-sidebar .uagb-forms-main-form button:hover { background: var(--lim-accent-hover); }

@media (max-width: 1024px) {
	.primary-sidebar.widget-area { position: static; }
}
