/*
Theme Name: CeliacMentor
Theme URI: https://celiacmentor.com/
Description: Standalone theme for CeliacMentor — gluten-free recipes, travel guides and FAQs.
Author: CeliacMentor
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: celiacmentor
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ------------------------------------------------------------------ */
/* Design tokens                                                       */
/* ------------------------------------------------------------------ */

:root {
	--cm-teal: #304E4C;
	--cm-teal-2: #3A5C5B;
	--cm-teal-dark: #043C3B;
	--cm-teal-darker: #385553;
	--cm-green: #50A72C;
	--cm-gold: #E3B23A;
	--cm-red: #B80808;
	--cm-white: #FFFFFF;
	--cm-bg: #F7F7F5;
	--cm-text: #1F2D2C;
	--cm-text-muted: #5B6866;
	--cm-border: #E4E7E6;
	--cm-radius: 14px;
	--cm-shadow: 0 8px 30px rgba(4, 60, 59, 0.08);
	--font-heading: 'Viga', 'Segoe UI', sans-serif;
	--font-body: 'Manrope', 'Segoe UI', sans-serif;
	--font-accent: 'Caveat', cursive;
	--font-footer: 'Roboto', 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */

* { box-sizing: border-box; }

html { overflow-x: hidden; }
body {
	font-family: var(--font-body);
	color: var(--cm-text);
	background: var(--cm-white);
	line-height: 1.65;
	margin: 0;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cm-teal); text-decoration: none; }
a:hover { color: var(--cm-gold); }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--cm-teal-dark); line-height: 1.25; }

.cm-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.cm-eyebrow {
	display: block;
	font-family: var(--font-accent);
	font-size: 26px;
	color: var(--cm-green);
	margin-bottom: 2px;
}

.cm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: 25px;
	padding: 12px 28px;
	font-family: var(--font-heading);
	font-size: 14px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.25s ease;
}
.cm-btn--primary { background: var(--cm-teal); color: var(--cm-white); }
.cm-btn--primary:hover { background: var(--cm-white); color: var(--cm-teal); box-shadow: inset 0 0 0 2px var(--cm-teal); }
.cm-btn--accent { background: var(--cm-red); color: var(--cm-white); }
.cm-btn--accent:hover { background: var(--cm-white); color: var(--cm-red); box-shadow: inset 0 0 0 2px var(--cm-red); }

/* Elementor-built pages already carry their own on-canvas heading — hide the theme's default title for them. */
.cm-page-title { max-width: 1200px; margin: 40px auto 0; padding: 0 20px; }
.cm-page-title h1 { font-size: 34px; margin: 0; }

/* ------------------------------------------------------------------ */
/* Header                                                               */
/* ------------------------------------------------------------------ */

.cm-topbar {
	background: var(--cm-teal);
	padding: 10px 0;
}
.cm-topbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}
.cm-social {
	display: flex;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.cm-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255,255,255,0.12);
	color: var(--cm-white);
	font-size: 14px;
}
.cm-social a:hover { background: var(--cm-gold); color: var(--cm-teal); }

.cm-header {
	background: var(--cm-white);
	border-bottom: 1px solid var(--cm-border);
	padding: 14px 0;
}
.cm-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.cm-logo img { max-height: 60px; width: auto; }
.cm-logo { font-family: var(--font-heading); font-size: 22px; color: var(--cm-teal-dark); }

.cm-nav { flex: 1; display: flex; justify-content: flex-end; }
.cm-nav-menu {
	list-style: none;
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 15px;
}
.cm-nav-menu a { color: var(--cm-teal-2); }
.cm-nav-menu a:hover, .cm-nav-menu .current-menu-item > a { color: var(--cm-gold); }

.cm-search-toggle {
	background: var(--cm-white);
	border: 2px solid var(--cm-teal);
	color: var(--cm-teal);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
}
.cm-search-toggle:hover { background: var(--cm-teal); color: var(--cm-white); }
.cm-header-search { display: none; padding: 14px 20px 0; max-width: 1200px; margin: 0 auto; }
.cm-header-search.is-open { display: block; }
.cm-header-search form { display: flex; max-width: 480px; margin-left: auto; }
.cm-header-search input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 2px solid var(--cm-teal);
	border-right: 0;
	border-radius: 20px 0 0 20px;
	font-family: var(--font-body);
}
.cm-header-search button {
	border: 2px solid var(--cm-teal);
	background: var(--cm-teal);
	color: #fff;
	border-radius: 0 20px 20px 0;
	padding: 0 18px;
	cursor: pointer;
}

.cm-mobile-toggle {
	display: none;
	background: none;
	border: 0;
	font-size: 26px;
	color: var(--cm-teal);
	cursor: pointer;
}

@media (max-width: 900px) {
	.cm-mobile-toggle { display: block; }
	/* .cm-nav's base rule sets `flex: 1` (flex-basis: 0), which — being a
	   row-direction flex item — wins over a plain `width: 100%` for main-axis
	   sizing, so it was never actually dropping to its own full-width row;
	   it just grew into whatever space was left next to the logo. Resetting
	   flex-basis to 100% (flex-grow 0, since it's the only item that should
	   occupy this row once open) is what actually forces the wrap. */
	.cm-nav { display: none; flex: 0 0 100%; order: 3; }
	.cm-nav.is-open { display: block; }
	.cm-nav-menu { flex-direction: column; gap: 4px; padding: 14px 0; }

	/* With .cm-nav hidden, the remaining 3 items (logo/search/menu) under
	   justify-content:space-between spread across the full row with large
	   gaps instead of grouping search+menu together on the right, which is
	   the standard, expected mobile header pattern. */
	.cm-header__inner { flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
	.cm-search-toggle { margin-left: auto; }

	/* The topbar (social row + donate button) is secondary content that
	   otherwise eats a disproportionate amount of vertical space above the
	   fold on a phone — the social links remain one tap away in the
	   footer, so only the (revenue) CTA stays, centered and full-width. */
	.cm-topbar { padding: 8px 0; }
	.cm-topbar__inner { justify-content: center; }
	.cm-social { display: none; }
	.cm-topbar .cm-btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
	.cm-logo img { max-height: 44px; }
	.cm-header { padding: 10px 0; }
}

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */

.cm-footer-banner {
	background: linear-gradient(rgba(56,85,83,0.75), rgba(56,85,83,0.75)), var(--cm-teal-2);
	background-size: cover;
	background-position: center;
	color: var(--cm-white);
	padding: 40px 20px;
	text-align: center;
}
.cm-footer-banner__script { font-family: var(--font-accent); font-size: 26px; }
.cm-footer-banner h2 { color: var(--cm-white); font-size: 26px; margin: 4px 0 20px; }

.cm-footer-main {
	background: #EFEFEC;
	padding: 40px 0 10px;
}
.cm-footer-main__grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
.cm-footer-main h4 { font-family: var(--font-footer); font-weight: 600; color: var(--cm-teal-dark); margin-top: 0; }
.cm-footer-links { list-style: none; margin: 0; padding: 0; }
.cm-footer-links li { border-bottom: 1px dashed var(--cm-border); padding: 8px 0; }
.cm-footer-links a { color: var(--cm-teal-dark); }

.cm-footer-copyright {
	background: var(--cm-teal-darker);
	color: var(--cm-white);
	text-align: center;
	padding: 14px;
	font-family: var(--font-footer);
	font-size: 14px;
}

@media (max-width: 780px) {
	.cm-footer-main__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
}

/* ------------------------------------------------------------------ */
/* Layout: content + sidebar                                          */
/* ------------------------------------------------------------------ */

.cm-layout {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
@media (max-width: 900px) {
	.cm-layout { grid-template-columns: minmax(0, 1fr); }
}

.cm-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: var(--cm-text-muted);
	font-size: 14px;
	margin-bottom: 18px;
}
.cm-article__thumb { border-radius: var(--cm-radius); overflow: hidden; margin-bottom: 24px; }
.cm-article .entry-content { font-size: 17px; overflow-wrap: break-word; word-break: break-word; }
.cm-article .entry-content h2, .cm-article .entry-content h3 { margin-top: 1.6em; }
.cm-article .entry-content iframe, .cm-article .entry-content embed, .cm-article .entry-content video { max-width: 100%; }
.cm-article .entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.cm-article .entry-content pre { max-width: 100%; overflow-x: auto; }

.cm-post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	margin: 40px 0;
	border-top: 1px solid var(--cm-border);
	border-bottom: 1px solid var(--cm-border);
	padding: 20px 0;
}
.cm-post-nav a { color: var(--cm-text); word-break: break-word; }
.cm-post-nav .cm-post-nav__label { display: block; font-size: 12px; text-transform: uppercase; color: var(--cm-text-muted); margin-bottom: 4px; }
.cm-post-nav--next { text-align: right; }
@media (max-width: 560px) {
	.cm-post-nav { grid-template-columns: minmax(0, 1fr); }
	.cm-post-nav--next { text-align: left; }
}

.cm-sidebar .widget {
	background: var(--cm-teal-dark);
	border-radius: var(--cm-radius);
	padding: 22px 22px 24px;
	margin-bottom: 24px;
	box-shadow: var(--cm-shadow);
	position: relative;
	overflow: hidden;
}
/* A thin brand-gold top accent bar — the same "card with a highlight edge"
   language already used elsewhere on the site (e.g. the quick-answer box's
   left border), just adapted to a full dark card here. */
.cm-sidebar .widget::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--cm-gold);
}
.cm-sidebar .widget-title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--cm-gold);
}
.cm-sidebar ul { list-style: none; margin: 0; padding: 0; }
.cm-sidebar li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.cm-sidebar li:last-child { border-bottom: 0; padding-bottom: 0; }
.cm-sidebar li a {
	color: rgba(255,255,255,0.88);
	font-weight: 600;
	font-size: 14.5px;
	transition: color 0.15s ease, padding-left 0.15s ease;
}
.cm-sidebar li a:hover,
.cm-sidebar li a:focus-visible {
	color: var(--cm-gold);
	padding-left: 4px;
}
.widget-search .search-form { display: flex; }
.widget-search input[type="search"] { flex: 1; padding: 11px 14px; border: 0; border-radius: 8px 0 0 8px; font-family: var(--font-body); }
.widget-search button {
	border: 0;
	background: var(--cm-gold);
	color: var(--cm-teal-dark);
	font-weight: 800;
	padding: 0 18px;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
	transition: background 0.15s ease;
}
.widget-search button:hover { background: #f0c766; }

/* ------------------------------------------------------------------ */
/* Blog grid + cards                                                   */
/* ------------------------------------------------------------------ */

.cm-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 26px;
	margin: 20px 0;
}
.cm-blog-card, .cm-recipe-card {
	background: var(--cm-white);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	overflow: hidden;
	box-shadow: var(--cm-shadow);
	transition: transform 0.2s ease;
	display: flex;
	flex-direction: column;
}
.cm-blog-card:hover, .cm-recipe-card:hover { transform: translateY(-4px); }
.cm-blog-card__media, .cm-recipe-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--cm-bg); }
.cm-blog-card__media img, .cm-recipe-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cm-blog-card__date {
	position: absolute; top: 10px; left: 10px;
	background: var(--cm-teal); color: #fff;
	font-size: 12px; padding: 4px 10px; border-radius: 20px;
}
.cm-blog-card__body, .cm-recipe-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.cm-blog-card__body h3, .cm-recipe-card__body h4 { font-size: 18px; margin: 0 0 8px; color: var(--cm-teal-dark); }
.cm-blog-card__body p, .cm-recipe-card__body p { color: var(--cm-text-muted); font-size: 14px; flex: 1; }
.cm-blog-card__link, .cm-recipe-card__link { color: var(--cm-green); font-weight: 700; font-size: 14px; }

.cm-related-recipes { margin: 40px 0; }
.cm-related-recipes__title { border-left: 4px solid var(--cm-green); padding-left: 12px; }
.cm-related-recipes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.cm-pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 30px 0 0; flex-wrap: wrap; }
.cm-pagination a, .cm-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--cm-border); border-radius: 8px;
	color: var(--cm-teal-dark);
}
.cm-pagination .current { background: var(--cm-teal); color: #fff; border-color: var(--cm-teal); }
.cm-pagination a:hover { border-color: var(--cm-teal); }

/* ------------------------------------------------------------------ */
/* Comments                                                             */
/* ------------------------------------------------------------------ */

.comments-area { margin: 40px 0; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--cm-border);
	border-radius: 8px;
	font-family: var(--font-body);
	margin-bottom: 14px;
}
.comment-form .form-submit input[type="submit"] {
	background: var(--cm-teal);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 24px;
	font-weight: 700;
	cursor: pointer;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-list .comment-body { border-bottom: 1px solid var(--cm-border); padding: 16px 0; }

/* ------------------------------------------------------------------ */
/* FAQ cards                                                            */
/* ------------------------------------------------------------------ */

.cm-page-title__sub { color: var(--cm-text-muted); margin: 6px 0 0; font-size: 16px; max-width: 640px; }

.cm-faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
	margin: 24px 0;
}
.cm-faq-card {
	display: flex;
	flex-direction: column;
	background: var(--cm-white);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 22px;
	box-shadow: var(--cm-shadow);
	transition: transform 0.2s ease;
	color: var(--cm-text);
}
.cm-faq-card:hover { transform: translateY(-4px); }
.cm-faq-card__q {
	font-family: var(--font-heading);
	font-size: 17px;
	color: var(--cm-teal-dark);
	margin: 0 0 10px;
	line-height: 1.35;
}
.cm-faq-card__a { color: var(--cm-text-muted); font-size: 14px; flex: 1; margin: 0 0 14px; }
.cm-faq-card__link { color: var(--cm-green); font-weight: 700; font-size: 14px; }

.cm-faq-answer .entry-content { font-size: 17px; margin-top: 10px; }

/* Category filter pills */
.cm-faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 10px; }
.cm-faq-filter {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 20px;
	background: var(--cm-bg);
	border: 1px solid var(--cm-border);
	color: var(--cm-teal-dark);
	font-size: 14px;
	font-weight: 600;
}
.cm-faq-filter span { color: var(--cm-text-muted); font-weight: 400; }
.cm-faq-filter:hover { border-color: var(--cm-teal); }
.cm-faq-filter.is-active { background: var(--cm-teal); border-color: var(--cm-teal); color: #fff; }
.cm-faq-filter.is-active span { color: rgba(255,255,255,0.8); }

/* Screenshot-style archive card */
.cm-faq-card2 {
	background: linear-gradient(180deg, #ffffff, var(--cm-bg));
	border: 1px solid var(--cm-border);
	border-radius: 18px;
	padding: 26px 24px;
	box-shadow: var(--cm-shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease;
	overflow: hidden;
}
.cm-faq-card2:hover { transform: translateY(-4px); }
.cm-faq-card2__media {
	margin: -26px -24px 18px;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: var(--cm-bg);
}
.cm-faq-card2__media img,
.cm-faq-card2__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-faq-card2__media .gffi-thumbnail { height: 100% !important; }
.cm-faq-card2__badge {
	display: inline-block;
	align-self: flex-start;
	background: var(--cm-teal-2);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 14px;
}
.cm-faq-card2__q { font-family: var(--font-heading); font-size: 19px; line-height: 1.35; margin: 0 0 16px; }
.cm-faq-card2__q a { color: var(--cm-teal-dark); }
.cm-faq-card2__q a:hover { color: var(--cm-gold); }
.cm-faq-card2__a { color: var(--cm-text-muted); font-size: 14px; flex: 1; margin: 0 0 18px; }
.cm-faq-card2__cta { align-self: flex-start; margin-top: auto; padding: 10px 22px; font-size: 13px; }

/* Yes/No circle badges */
.cm-faq-yesno { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cm-faq-yesno__circle {
	position: relative;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--font-heading);
	font-size: 16px;
	letter-spacing: 0.02em;
	flex-shrink: 0;
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.cm-faq-yesno__circle--yes { background: radial-gradient(circle at 35% 30%, #6bc94f, #3f9c2b); }
.cm-faq-yesno__circle--no { background: radial-gradient(circle at 35% 30%, #ef5d5d, #c62828); }
.cm-faq-yesno__mark {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	color: var(--cm-green);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 900;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.cm-faq-yesno__circle--no .cm-faq-yesno__mark { color: var(--cm-red); }
.cm-faq-yesno--single { align-items: flex-start; }
.cm-faq-yesno--single .cm-faq-quickanswer__text { flex-basis: 100%; margin: 14px 0 0; }

/* Breadcrumb trail — used site-wide (single posts/recipes/FAQs, all archives).
   A rounded "pill" card with a circular home icon, matching the site's own
   existing card language (--cm-radius / --cm-shadow) rather than a plain
   text line. */
.cm-breadcrumbs {
	margin: 0 0 24px;
}
.cm-breadcrumbs ol {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 8px 18px 8px 8px;
	gap: 2px;
	background: var(--cm-white);
	border: 1px solid var(--cm-border);
	border-radius: 999px;
	box-shadow: var(--cm-shadow);
	font-size: 14px;
	line-height: 1.4;
}
.cm-breadcrumbs li {
	display: flex;
	align-items: center;
	color: var(--cm-text-muted);
	font-weight: 600;
}
.cm-breadcrumbs li:not(:first-child)::before {
	content: "";
	width: 7px;
	height: 7px;
	margin: 0 10px;
	border-top: 2px solid var(--cm-text-muted);
	border-right: 2px solid var(--cm-text-muted);
	transform: rotate(45deg);
	opacity: 0.5;
	flex-shrink: 0;
}
.cm-breadcrumbs li:first-child a,
.cm-breadcrumbs li:first-child span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--cm-teal);
	color: var(--cm-white);
	transition: background 0.15s ease, transform 0.15s ease;
}
.cm-breadcrumbs li:first-child a:hover,
.cm-breadcrumbs li:first-child a:focus-visible {
	background: var(--cm-teal-2);
	transform: translateY(-1px);
}
.cm-breadcrumbs li:first-child svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}
.cm-breadcrumbs a {
	color: var(--cm-text-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
.cm-breadcrumbs a:hover,
.cm-breadcrumbs a:focus-visible {
	color: var(--cm-teal);
}
.cm-breadcrumbs li span[aria-current] {
	color: var(--cm-green);
	font-weight: 800;
	max-width: 40ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.cm-breadcrumbs ol { padding: 6px 14px 6px 6px; font-size: 13px; }
	.cm-breadcrumbs li:first-child a,
	.cm-breadcrumbs li:first-child span { width: 26px; height: 26px; }
	.cm-breadcrumbs li span[aria-current] { max-width: 22ch; }
}

.cm-faq-quickanswer {
	background: var(--cm-bg);
	border-left: 4px solid var(--cm-green);
	border-radius: var(--cm-radius);
	padding: 20px 24px;
	margin: 20px 0 30px;
}
.cm-faq-quickanswer__label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--cm-green);
	margin-bottom: 10px;
}
.cm-faq-quickanswer__text { font-size: 18px; font-weight: 600; color: var(--cm-teal-dark); margin: 0; }

.cm-faq-longanswer__heading { margin-top: 0; }

.cm-faq-sources { margin: 30px 0; padding: 18px 22px; background: var(--cm-bg); border-radius: var(--cm-radius); }
.cm-faq-sources h3 { margin-top: 0; font-size: 15px; }
.cm-faq-sources ul { list-style: none; margin: 0; padding: 0; }
.cm-faq-sources li { padding: 4px 0; font-size: 14px; }

.cm-faq-grid--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

@media (max-width: 560px) {
	.cm-faq-yesno__circle { width: 60px; height: 60px; font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* Ported from the previous child theme (CF7 newsletter + card blocks) */
/* ------------------------------------------------------------------ */

.baseline .newsletter .input-group{ line-height: 0.2; }
.baseline .newsletter .wpcf7-not-valid-tip{ padding: 5px; }
.baseline{ width: 100%; max-width: 500px; }
.baseline .input-group .input-frm{ border-radius: 10px; border: 1px solid #074B79; margin-bottom: 18px; }
.baseline .newsletter .btn-frm{ background: #074B79; color: #fff; border: none; padding: 10px 48px; font-weight: bold; text-transform: capitalize; }
.baseline .newsletter .btn-frm:hover{ background: #fff; color: #074B79; border: 1px solid #074B79; }
.baseline .newsletter .expanded{ border-radius: 10px; padding: 15px 50px; text-align: center; font-size: 18px; font-weight: 700; }
.gf_card .card_link{ padding-top: 25px; }
.gf_card .card_link a{ background: #da782d; padding: 10px 12px 10px 12px; color: #fff; }
.gf_card #cm_select{ width: 80%; }
.gf_card .card_link{ color: red; font-weight: bold; }

/* ------------------------------------------------------------------ */
/* Content components — comparison table, balanced-plate visual,       */
/* checklist — used on the Diet Help / Travel Guides landing pages.    */
/* ------------------------------------------------------------------ */

.cm-compare {
	max-width: 900px;
	margin: 28px auto;
	border-radius: var(--cm-radius);
	overflow: hidden;
	box-shadow: var(--cm-shadow);
	border: 1px solid var(--cm-border);
}
.cm-compare__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.cm-compare__head {
	font-family: var(--font-heading);
	font-size: 15px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 14px 22px;
	color: var(--cm-white);
}
.cm-compare__head--avoid { background: var(--cm-red); }
.cm-compare__head--choose { background: var(--cm-green); }
.cm-compare__row:not(:first-child) { border-top: 1px solid var(--cm-border); }
.cm-compare__cell {
	padding: 16px 22px;
	font-size: 15px;
	line-height: 1.5;
	background: var(--cm-white);
}
.cm-compare__row:nth-child(even) .cm-compare__cell { background: var(--cm-bg); }
.cm-compare__cell--avoid { border-right: 1px solid var(--cm-border); }
.cm-compare__cell strong { display: block; color: var(--cm-teal-dark); margin-bottom: 2px; }
.cm-compare__cell span { color: var(--cm-text-muted); font-size: 13.5px; }
@media (max-width: 640px) {
	.cm-compare__row { grid-template-columns: 1fr; }
	.cm-compare__cell--avoid { border-right: 0; border-bottom: 1px solid var(--cm-border); }
}

.cm-plate {
	max-width: 900px;
	margin: 28px auto;
	background: var(--cm-white);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	box-shadow: var(--cm-shadow);
	padding: 28px;
}
.cm-plate__bar {
	display: flex;
	width: 100%;
	height: 26px;
	border-radius: 13px;
	overflow: hidden;
	margin-bottom: 22px;
}
.cm-plate__seg {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-white);
	font-size: 11px;
	font-weight: 800;
}
.cm-plate__legend {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 18px;
}
.cm-plate__item { display: flex; gap: 12px; align-items: flex-start; }
.cm-plate__swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; margin-top: 4px; }
.cm-plate__item strong { display: block; color: var(--cm-teal-dark); font-size: 14.5px; }
.cm-plate__item span { color: var(--cm-text-muted); font-size: 13.5px; }

/* A distinct "module" band (not just plain white-on-white) so a content
   checklist reads as a designed feature rather than a bulleted afterthought. */
.cm-checklist-section {
	background: var(--cm-bg);
	border-radius: var(--cm-radius);
	max-width: 960px;
	margin: 44px auto;
	padding: 36px 32px 40px;
}
.cm-checklist-section .cm-section-title,
.cm-checklist-section .cm-section-sub { max-width: none; margin-left: 0; margin-right: 0; }

.cm-checklist {
	max-width: 900px;
	margin: 24px auto 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.cm-checklist li {
	list-style: none;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--cm-white);
	border: 1px solid var(--cm-border);
	border-radius: 12px;
	padding: 18px 18px 18px 16px;
	font-size: 14.5px;
	line-height: 1.5;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cm-checklist li:hover {
	transform: translateY(-3px);
	box-shadow: var(--cm-shadow);
	border-color: transparent;
}
.cm-checklist__mark {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	color: var(--cm-white);
	display: flex;
	align-items: center;
	justify-content: center;
}
.cm-checklist__mark svg { width: 20px; height: 20px; }
/* Cycle through the brand palette per item instead of one flat color —
   gives each card a little visual identity without needing per-item markup. */
.cm-checklist li:nth-child(6n+1) .cm-checklist__mark { background: var(--cm-teal); }
.cm-checklist li:nth-child(6n+2) .cm-checklist__mark { background: var(--cm-green); }
.cm-checklist li:nth-child(6n+3) .cm-checklist__mark { background: var(--cm-gold); }
.cm-checklist li:nth-child(6n+4) .cm-checklist__mark { background: var(--cm-teal-2); }
.cm-checklist li:nth-child(6n+5) .cm-checklist__mark { background: var(--cm-red); }
.cm-checklist li:nth-child(6n+6) .cm-checklist__mark { background: var(--cm-teal-dark); }
.cm-section-title {
	max-width: 900px;
	margin: 44px auto 6px;
	font-family: var(--font-heading);
	font-size: 26px;
	color: var(--cm-teal-dark);
}
.cm-section-sub {
	max-width: 900px;
	margin: 0 auto 8px;
	color: var(--cm-text-muted);
	font-size: 15px;
}
