/*
Theme Name: CM Punjab Schemes (GeneratePress Child)
Theme URI: https://cmpunjab.com.pk
Description: Lightweight GeneratePress child theme implementing the CM Punjab Schemes redesign — global header/footer, homepage design system, and automatic styling for all existing and future posts. No page builder.
Author: CM Punjab Schemes
Template: generatepress
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: cmpunjab
*/

/* ============================================================
   1. Design variables
   ============================================================ */
:root {
	--cmp-green: #075B32;
	--cmp-green-dark: #063D29;
	--cmp-green-hover: #043E22;
	--cmp-accent: #16803D;
	--cmp-ink: #14201B;
	--cmp-body: #374151;
	--cmp-muted: #53635A;
	--cmp-bg: #FFFFFF;
	--cmp-alt: #F5F8F6;
	--cmp-mint: #E6F3E7;
	--cmp-border: #E1E7E3;
	--cmp-danger: #9C2525;
	--cmp-danger-bg: #FFF7F7;
	--cmp-danger-border: #F0BDBD;
	--cmp-radius: 12px;
	--cmp-shadow: 0 3px 8px rgba(18, 59, 25, 0.06);
	--cmp-wrap: 1240px;
	--cmp-reading: 760px;
}

/* ============================================================
   2. Global typography & base
   ============================================================ */
body {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--cmp-body);
	background: var(--cmp-bg);
	line-height: 1.65;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
	color: var(--cmp-ink);
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: -0.02em;
}
a { color: var(--cmp-green); }
a:hover { color: var(--cmp-green-hover); }
img { max-width: 100%; height: auto; }

.cmp-wrap {
	max-width: var(--cmp-wrap);
	margin-inline: auto;
	padding-inline: 28px;
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--cmp-accent);
	outline-offset: 2px;
	border-radius: 4px;
}
.cmp-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--cmp-green-dark); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.cmp-skip-link:focus { left: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   3. Header
   ============================================================ */
.cmp-header {
	background: #fff;
	border-bottom: 1px solid var(--cmp-border);
	position: sticky; top: 0; z-index: 100;
}
.cmp-nav-row {
	min-height: 82px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cmp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.2; }
.cmp-brand img, .cmp-brand .custom-logo { width: 44px; height: 44px; flex: 0 0 44px; }
.cmp-brand-text strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--cmp-ink); }
.cmp-brand-text small { display: block; font-size: 11px; margin-top: 4px; color: var(--cmp-muted); }

.cmp-nav { display: flex; align-items: center; gap: 6px; }
.cmp-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cmp-nav-list > li { position: relative; }
.cmp-nav-list a {
	display: block; padding: 10px 13px; border-radius: 7px;
	font-size: 14px; font-weight: 600; color: var(--cmp-ink); text-decoration: none; white-space: nowrap;
}
.cmp-nav-list a:hover { background: var(--cmp-alt); }
.cmp-nav-list .current-menu-item > a,
.cmp-nav-list .current_page_item > a,
.cmp-nav-list a[aria-current="page"] { background: var(--cmp-green); color: #fff; }

/* Dropdowns */
.cmp-nav-list .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
	background: #fff; border: 1px solid var(--cmp-border); border-radius: 10px;
	box-shadow: 0 12px 28px rgba(6, 61, 41, 0.13); padding: 8px; list-style: none; margin: 0; z-index: 110;
}
.cmp-nav-list .sub-menu a { white-space: normal; border-radius: 6px; }
.cmp-nav-list li:hover > .sub-menu,
.cmp-nav-list li:focus-within > .sub-menu,
.cmp-nav-list li.cmp-submenu-open > .sub-menu { display: block; }
.cmp-submenu-toggle {
	background: none; border: 0; padding: 6px; margin-left: -6px; cursor: pointer; color: var(--cmp-muted);
	display: inline-flex; align-items: center;
}
.cmp-nav-list > li { display: flex; align-items: center; }
.cmp-nav-list > li > .sub-menu { top: calc(100% + 2px); }

.cmp-search-toggle {
	border: 1px solid var(--cmp-border); background: #fff; border-radius: 8px;
	width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--cmp-ink);
	margin-left: 6px;
}
.cmp-search-toggle:hover { background: var(--cmp-alt); }
.cmp-search-bar { border-top: 1px solid var(--cmp-border); background: var(--cmp-alt); padding-block: 14px; }
.cmp-search-bar .search-form { display: flex; gap: 8px; max-width: 640px; }
.cmp-search-bar .search-field {
	flex: 1; min-height: 46px; padding: 10px 14px; border: 1px solid var(--cmp-border); border-radius: 8px; font-size: 15px;
}
.cmp-search-bar .search-submit {
	min-height: 46px; padding: 10px 20px; border: 0; border-radius: 8px;
	background: var(--cmp-green); color: #fff; font-weight: 650; cursor: pointer;
}
.cmp-search-bar .search-submit:hover { background: var(--cmp-green-hover); }

.cmp-menu-toggle {
	display: none; background: #fff; border: 1px solid var(--cmp-border); border-radius: 8px;
	width: 44px; height: 44px; cursor: pointer; position: relative;
}
.cmp-menu-icon, .cmp-menu-icon::before, .cmp-menu-icon::after {
	content: ""; display: block; width: 20px; height: 2px; background: var(--cmp-ink);
	margin-inline: auto; position: relative; transition: transform .2s, opacity .2s;
}
.cmp-menu-icon::before { position: absolute; top: -6px; }
.cmp-menu-icon::after { position: absolute; top: 6px; }
.cmp-menu-toggle.is-open .cmp-menu-icon { background: transparent; }
.cmp-menu-toggle.is-open .cmp-menu-icon::before { transform: translateY(6px) rotate(45deg); }
.cmp-menu-toggle.is-open .cmp-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.cmp-mobile-nav { border-top: 1px solid var(--cmp-border); background: #fff; padding: 10px 28px 18px; }
.cmp-mobile-list { list-style: none; margin: 0 0 12px; padding: 0; }
.cmp-mobile-list a {
	display: block; padding: 11px 8px; font-weight: 600; color: var(--cmp-ink);
	text-decoration: none; border-bottom: 1px solid var(--cmp-alt); min-height: 44px;
}
.cmp-mobile-list .sub-menu { list-style: none; margin: 0; padding-left: 16px; display: none; }
.cmp-mobile-list li.cmp-submenu-open > .sub-menu { display: block; }
.cmp-mobile-nav .search-form { display: flex; gap: 8px; }
.cmp-mobile-nav .search-field { flex: 1; min-height: 44px; padding: 9px 12px; border: 1px solid var(--cmp-border); border-radius: 8px; }
.cmp-mobile-nav .search-submit { min-height: 44px; padding: 9px 16px; border: 0; border-radius: 8px; background: var(--cmp-green); color: #fff; font-weight: 650; }

/* ============================================================
   4. Homepage (scoped to .cmp-home wrapper in the page content)
   ============================================================ */
.cmp-is-home .site-content, .cmp-is-home .inside-article { padding: 0; }
.cmp-is-home .entry-content { margin: 0; }
.cmp-home { color: var(--cmp-body); }
.cmp-home *, .cmp-home *::before, .cmp-home *::after { box-sizing: border-box; }
.cmp-home h2 { font-size: clamp(25px, 3vw, 34px); margin: 8px 0; }
.cmp-eyebrow {
	font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 1.4px; color: var(--cmp-green);
}
.cmp-section { max-width: var(--cmp-wrap); margin-inline: auto; padding: 48px 28px; }
.cmp-section-alt { background: var(--cmp-alt); }
.cmp-section-alt .cmp-section { padding-inline: 28px; }
.cmp-section-top { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cmp-section-top p { color: var(--cmp-muted); margin: 0; }
.cmp-view-all { font-size: 14px; font-weight: 700; color: var(--cmp-green); text-decoration: none; white-space: nowrap; }
.cmp-view-all:hover { text-decoration: underline; }

/* Hero */
.cmp-hero { background: #EDF4ED; }
.cmp-hero-grid {
	max-width: var(--cmp-wrap); margin-inline: auto; padding: 36px 28px;
	display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px;
}
.cmp-hero-copy { padding-block: 24px; }
.cmp-hero-copy h1 {
	font-size: clamp(36px, 4.2vw, 59px); font-weight: 800; line-height: 1.08;
	letter-spacing: -0.03em; margin: 16px 0; color: var(--cmp-ink);
}
.cmp-hero-copy h1 em { font-style: normal; color: var(--cmp-green); }
.cmp-hero-copy p { font-size: 17px; line-height: 1.65; color: var(--cmp-muted); max-width: 550px; margin: 0; }
.cmp-hero-copy small { display: block; color: var(--cmp-muted); margin-top: 20px; font-size: 12px; }
.cmp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cmp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--cmp-green); color: #fff !important; padding: 13px 22px;
	border: 1px solid var(--cmp-green); border-radius: 8px;
	font-size: 14px; font-weight: 650; min-height: 46px; text-decoration: none;
}
.cmp-btn:hover { background: var(--cmp-green-hover); }
.cmp-home .cmp-btn, .cmp-detail-meta .cmp-btn { text-decoration: none; }
.cmp-btn-secondary { background: #fff; color: var(--cmp-green) !important; }
.cmp-btn-secondary:hover { background: var(--cmp-alt); }
.cmp-hero-photo { overflow: hidden; border-radius: 100px 14px 14px 14px; min-height: 320px; max-height: 460px; margin: 0; }
.cmp-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cmp-chips a {
	font-size: 13px; font-weight: 600; color: var(--cmp-green); background: #fff;
	border: 1px solid var(--cmp-border); border-radius: 999px; padding: 7px 14px; text-decoration: none;
}
.cmp-chips a:hover { border-color: var(--cmp-accent); background: var(--cmp-mint); }

/* Highlights */
.cmp-highlights {
	max-width: var(--cmp-wrap); margin-inline: auto; padding: 22px 28px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
	border-bottom: 1px solid var(--cmp-border);
}
.cmp-highlight { display: flex; gap: 11px; align-items: flex-start; }
.cmp-highlight svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--cmp-green); margin-top: 2px; }
.cmp-highlight strong { display: block; font-size: 14px; color: var(--cmp-ink); }
.cmp-highlight span { font-size: 12.5px; color: var(--cmp-muted); line-height: 1.45; display: block; }

/* Scheme cards (also used by the [cmp_scheme_cards] shortcode) */
.cmp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cmp-card {
	border: 1px solid var(--cmp-border); border-radius: var(--cmp-radius); padding: 20px;
	display: flex; gap: 15px; background: #fff; box-shadow: var(--cmp-shadow); min-width: 0;
	transition: transform .2s, border-color .2s;
}
.cmp-card:hover { transform: translateY(-3px); border-color: #8DBB99; }
.cmp-card-icon {
	display: grid; place-items: center; flex: 0 0 54px; height: 54px;
	border-radius: 11px; background: var(--cmp-mint); color: var(--cmp-green);
}
.cmp-card-icon svg { width: 30px; height: 30px; }
.cmp-card-category { font-size: 11px; color: var(--cmp-green); font-weight: 650; text-transform: uppercase; letter-spacing: .4px; }
.cmp-card h3 { font-size: 17px; font-weight: 750; line-height: 1.35; margin: 5px 0; }
.cmp-card h3 a { color: var(--cmp-ink); text-decoration: none; }
.cmp-card h3 a:hover { color: var(--cmp-green); }
.cmp-card p { font-size: 13px; color: var(--cmp-muted); margin: 7px 0 12px; }
.cmp-card-link { font-size: 13px; font-weight: 750; color: var(--cmp-green); text-decoration: none; }
.cmp-card-link:hover { text-decoration: underline; }

/* Compare */
.cmp-compare-banner {
	background: #EDF5EE; border-radius: var(--cmp-radius); padding: 26px 32px;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	max-width: var(--cmp-wrap); margin-inline: auto;
}
.cmp-compare-wrap { max-width: var(--cmp-wrap); margin-inline: auto; padding-inline: 28px; }
.cmp-compare-banner h2 { margin: 0 0 6px; }
.cmp-compare-banner p { color: var(--cmp-muted); margin: 0; }
.cmp-table-scroll { overflow-x: auto; border: 1px solid var(--cmp-border); border-radius: var(--cmp-radius); background: #fff; }
.cmp-compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.cmp-compare-table th {
	background: var(--cmp-green-dark); color: #fff; text-align: left; padding: 13px 18px; font-weight: 650;
}
.cmp-compare-table td { padding: 13px 18px; border-top: 1px solid var(--cmp-border); vertical-align: top; }
.cmp-compare-table td:first-child { font-weight: 700; color: var(--cmp-green-dark); }

/* How to apply + safety notice */
.cmp-apply-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.cmp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.cmp-step {
	padding: 18px 12px; border: 1px solid var(--cmp-border); border-radius: 10px;
	text-align: center; font-size: 13px; background: #fff;
}
.cmp-step b {
	display: grid; place-items: center; margin: 0 auto 10px; width: 30px; height: 30px;
	border-radius: 50%; background: var(--cmp-green); color: #fff; font-size: 14px;
}
.cmp-step strong { display: block; color: var(--cmp-ink); font-size: 13.5px; margin-bottom: 5px; }
.cmp-step span { color: var(--cmp-muted); font-size: 12.5px; line-height: 1.5; display: block; }
.cmp-notice {
	border: 1px solid var(--cmp-danger-border); background: var(--cmp-danger-bg);
	border-radius: var(--cmp-radius); padding: 22px; font-size: 14px;
}
.cmp-notice h3 { color: var(--cmp-danger); font-size: 20px; margin: 0 0 8px; }
.cmp-notice p { margin: 0 0 8px; }
.cmp-notice p:last-child { margin-bottom: 0; }

/* Scheme detail sections */
.cmp-detail {
	background: #fff; border: 1px solid var(--cmp-border); border-radius: 14px;
	padding: clamp(20px, 4vw, 36px); max-width: 920px; margin: 0 auto 18px; scroll-margin-top: 100px;
}
.cmp-detail h3 { font-size: 22px; margin: 6px 0 10px; }
.cmp-detail h4 { font-size: 16px; margin: 18px 0 8px; }
.cmp-detail p, .cmp-detail li { font-size: 15px; }
.cmp-detail ul { margin: 0; padding-left: 20px; }
.cmp-detail li { margin-bottom: 5px; }
.cmp-detail .cmp-need {
	background: var(--cmp-alt); border: 1px solid var(--cmp-border); border-radius: 10px;
	padding: 12px 16px; font-size: 14px; margin-top: 14px;
}
.cmp-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; font-size: 14px; }
section[id], article[id] { scroll-margin-top: 100px; }

/* FAQ (native details/summary — no JS required) */
.cmp-faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.cmp-faq {
	background: #fff; border: 1px solid var(--cmp-border); border-radius: var(--cmp-radius); padding: 4px 20px;
}
.cmp-faq summary {
	cursor: pointer; font-weight: 700; color: var(--cmp-ink); font-size: 16px;
	padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px;
}
.cmp-faq summary::-webkit-details-marker { display: none; }
.cmp-faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--cmp-green); flex: 0 0 auto; }
.cmp-faq[open ] summary::after { content: "–"; }
.cmp-faq p { margin: 0; padding: 0 0 16px; font-size: 15px; }
.cmp-source-list { max-width: 820px; margin-inline: auto; padding-left: 20px; }
.cmp-source-list li { margin-bottom: 7px; font-size: 15px; }

/* ============================================================
   5. Single posts & pages — automatic for every post,
      no per-post HTML or CSS needed
   ============================================================ */
.single .entry-title, .page .entry-title {
	font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
}
.entry-meta { color: var(--cmp-muted); font-size: 13.5px; }
.entry-meta a { color: var(--cmp-green); }
.single .post-image img, .page .post-image img { border-radius: 14px; }
.entry-content { font-size: 17px; line-height: 1.75; color: var(--cmp-body); }
/* Reading width applies to ordinary posts/pages only — never to the
   homepage, whose sections are full-width by design. */
body:not(.cmp-is-home) .entry-content > * { max-width: var(--cmp-reading); }
.entry-content > .alignwide { max-width: 980px; }
.entry-content > .alignfull { max-width: none; }
.entry-content p { margin-bottom: 1.15em; }
.entry-content h2 { font-size: 27px; margin: 1.5em 0 .55em; }
.entry-content h3 { font-size: 21px; margin: 1.35em 0 .5em; }
.entry-content h4 { font-size: 18px; margin: 1.2em 0 .45em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.15em; padding-left: 24px; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { color: var(--cmp-green); text-decoration: underline; text-underline-offset: 2px; }
.entry-content blockquote {
	border-left: 4px solid var(--cmp-green); background: var(--cmp-alt);
	margin: 1.4em 0; padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: 16.5px;
	max-width: var(--cmp-reading);
}
.entry-content blockquote p { margin: 0; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: var(--cmp-muted); text-align: center; margin-top: 7px; }
.entry-content img { border-radius: 10px; }
.entry-content table {
	display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
	border-collapse: collapse; font-size: 15px; max-width: 100%; margin: 1.3em 0;
	border: 1px solid var(--cmp-border); border-radius: 10px;
}
.entry-content th { background: var(--cmp-green-dark); color: #fff; text-align: left; padding: 11px 15px; white-space: nowrap; }
.entry-content td { padding: 11px 15px; border-top: 1px solid var(--cmp-border); }
.entry-content .wp-block-button__link {
	background: var(--cmp-green); border-radius: 8px; font-weight: 650; font-size: 15px; padding: 12px 22px;
}
.entry-content .wp-block-button__link:hover { background: var(--cmp-green-hover); }
.entry-content details {
	border: 1px solid var(--cmp-border); border-radius: var(--cmp-radius); padding: 4px 18px; margin-bottom: 12px;
}
.entry-content summary { cursor: pointer; font-weight: 700; color: var(--cmp-ink); padding: 12px 0; min-height: 44px; }
.post-navigation, .paging-navigation { font-size: 14px; font-weight: 600; }
.tags-links a {
	display: inline-block; background: var(--cmp-alt); border: 1px solid var(--cmp-border);
	border-radius: 999px; padding: 4px 12px; font-size: 12.5px; margin: 0 5px 6px 0; text-decoration: none;
}

/* ============================================================
   6. Archives, blog listing, search results — post cards
   ============================================================ */
.blog .site-main, .archive .site-main, .search .site-main {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start;
}
.blog .site-main > *, .archive .site-main > *, .search .site-main > * { min-width: 0; }
.blog .page-header, .archive .page-header, .search .page-header,
.blog .navigation, .archive .navigation, .search .navigation,
.blog .paging-navigation, .archive .paging-navigation, .search .paging-navigation { grid-column: 1 / -1; }
.blog article.post, .archive article.post, .search article.post {
	border: 1px solid var(--cmp-border); border-radius: var(--cmp-radius);
	box-shadow: var(--cmp-shadow); background: #fff; overflow: hidden; margin: 0;
}
.blog article.post .inside-article, .archive article.post .inside-article, .search article.post .inside-article { padding: 20px; }
.blog article.post .post-image, .archive article.post .post-image, .search article.post .post-image { margin: -20px -20px 16px; }
.blog article.post .post-image img, .archive article.post .post-image img, .search article.post .post-image img {
	width: 100%; height: 190px; object-fit: cover; border-radius: 0; display: block;
}
.blog .entry-title, .archive .entry-title, .search .entry-title { font-size: 20px; line-height: 1.3; }
.blog .entry-title a, .archive .entry-title a, .search .entry-title a { color: var(--cmp-ink); text-decoration: none; }
.blog .entry-title a:hover, .archive .entry-title a:hover, .search .entry-title a:hover { color: var(--cmp-green); }
.blog .entry-summary, .archive .entry-summary, .search .entry-summary { font-size: 14.5px; }
.archive .page-header .page-title { font-size: clamp(26px, 3.4vw, 36px); }

/* ============================================================
   7. Footer
   ============================================================ */
.cmp-footer { background: #073C28; color: #fff; margin-top: 40px; }
.cmp-is-home .cmp-footer { margin-top: 0; }
.cmp-footer-grid {
	display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 36px; padding-block: 48px;
}
.cmp-footer .cmp-brand-text strong { color: #fff; }
.cmp-footer .cmp-brand img, .cmp-footer .cmp-brand .custom-logo {
	background: #fff; border-radius: 9px; padding: 3px; box-sizing: border-box;
}
.cmp-footer-brand p { color: #D2E4D9; font-size: 14px; margin: 14px 0 0; max-width: 300px; }
.cmp-footer-col h3 { color: #fff; font-size: 16px; font-weight: 750; margin: 0 0 14px; }
.cmp-footer-list { list-style: none; margin: 0; padding: 0; }
.cmp-footer-list a {
	display: block; color: #D2E4D9; font-size: 14px; padding: 5px 0; text-decoration: none;
}
.cmp-footer-list a:hover { color: #fff; text-decoration: underline; }
.cmp-footer-bottom {
	display: flex; justify-content: space-between; gap: 14px;
	border-top: 1px solid rgba(255,255,255,.19); padding-block: 18px;
	font-size: 12px; color: #D2E4D9;
}

/* ============================================================
   8. Responsive breakpoints
   ============================================================ */
@media (max-width: 1000px) {
	.cmp-nav { display: none; }
	.cmp-menu-toggle { display: block; }
	.cmp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cmp-footer-grid { grid-template-columns: repeat(2, 1fr); }
	.cmp-highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.cmp-steps { grid-template-columns: repeat(2, 1fr); }
	.blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.cmp-wrap { padding-inline: 18px; }
	.cmp-nav-row { min-height: 70px; }
	.cmp-brand-text strong { font-size: 17px; }
	.cmp-brand-text small { font-size: 10px; }
	.cmp-hero-grid, .cmp-apply-grid { grid-template-columns: 1fr; gap: 16px; }
	.cmp-hero-grid { padding: 20px 18px; }
	.cmp-hero-photo { min-height: 0; height: 230px; border-radius: 24px 14px 14px 14px; }
	.cmp-hero-copy { padding-block: 12px; }
	.cmp-section { padding: 32px 18px; }
	.cmp-highlights { grid-template-columns: repeat(2, 1fr); padding-inline: 18px; }
	.cmp-cards { grid-template-columns: 1fr; }
	.cmp-section-top, .cmp-compare-banner, .cmp-footer-bottom { flex-direction: column; align-items: flex-start; }
	.cmp-compare-banner { padding: 22px; }
	.cmp-card { padding: 17px; }
	.cmp-actions { gap: 8px; }
	.cmp-btn { padding: 12px 15px; }
	.cmp-footer-grid { gap: 24px; padding-block: 36px; }
	.cmp-footer-brand { grid-column: 1 / -1; }
	.entry-content { font-size: 16.5px; }
}
@media (min-width: 1001px) {
	.cmp-mobile-nav { display: none !important; }
}

/* ============================================================
   9. Print
   ============================================================ */
@media print {
	.cmp-header, .cmp-footer, .cmp-mobile-nav { display: none !important; }
	body { color: #000; background: #fff; }
}

/* --- Latest Guides (front page, auto) --- */
.cmp-latest{max-width:1180px;margin:0 auto;padding:56px 20px 8px}
.cmp-latest-head{max-width:640px;margin-bottom:26px}
.cmp-latest-head h2{margin:6px 0 8px}
.cmp-latest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.cmp-latest-card{background:#fff;border:1px solid #E1E7E3;border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.cmp-latest-thumb img{width:100%;height:180px;object-fit:cover;display:block}
.cmp-latest-body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1}
.cmp-latest-cat{align-self:flex-start;background:#F5F8F6;color:#075B32;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px}
.cmp-latest-title{font-size:19px;line-height:1.35;margin:0}
.cmp-latest-title a{color:#14201B;text-decoration:none}
.cmp-latest-title a:hover{color:#075B32;text-decoration:underline}
.cmp-latest-excerpt{color:#374151;font-size:15px;margin:0;flex:1}
.cmp-latest-meta{color:#374151;font-size:13px;margin:0}
.cmp-latest-more{color:#075B32;font-weight:700;text-decoration:none}
.cmp-latest-more:hover{text-decoration:underline}
@media (max-width:900px){.cmp-latest-grid{grid-template-columns:1fr}}

/* --- 404 page --- */
.cmp-404{max-width:760px;margin:0 auto;padding:64px 20px 72px;text-align:center}
.cmp-404-code{font-size:84px;font-weight:800;color:#075B32;line-height:1;margin:0}
.cmp-404 h1{margin:10px 0 12px}
.cmp-404 .search-form{margin:26px auto;max-width:440px}
.cmp-404-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:22px 0 8px}
.cmp-404-latest-title{margin-top:38px}
.cmp-404-latest{list-style:none;padding:0}
.cmp-404-latest li{margin:8px 0}
