/*
Theme Name:   Mobilism GP Child
Theme URI:    https://mobilism.app/
Description:  Clean, fast child theme for mobilism.app (parent: GeneratePress). Green header with hamburger menu, footer links, polished content blocks.
Author:       Mobilism.app
Template:     generatepress
Version:      1.2.0
Text Domain:  mobilism-gp-child
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root {
	--mz-accent: #0e7c4a;
	--mz-accent-dark: #0a5c37;
	--mz-accent-soft: #e9f6ef;
	--mz-accent-line: #b9e0c9;
	--mz-text: #1f2937;
	--mz-heading: #0f172a;
	--mz-muted: #64748b;
	--mz-border: #e5e7eb;
	--mz-row: #f8fafc;
	--mz-warn-soft: #fff7e8;
	--mz-radius: 14px;
	--mz-radius-sm: 12px;
	--mz-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .07);
	--mz-header-h: 60px;
	--mz-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mz-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* =========================================================
   Base
   ========================================================= */
html { scroll-padding-top: calc(var(--mz-header-h) + 16px); }
body {
	background: #fff;
	color: var(--mz-text);
	font-family: var(--mz-font);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--mz-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--mz-accent-dark); }
:focus-visible { outline: 3px solid rgba(14, 124, 74, .35); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { color: var(--mz-heading); font-family: var(--mz-font); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: clamp(26px, 5vw, 38px); margin-bottom: .4em; }
h2 { font-size: clamp(21px, 3.4vw, 27px); margin: 2.1em 0 .7em; }
h3 { font-size: clamp(17px, 2.6vw, 20px); font-weight: 700; margin: 1.5em 0 .5em; }

.entry-content h2 { position: relative; padding-left: 16px; }
.entry-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: .18em;
	bottom: .18em;
	width: 5px;
	border-radius: 4px;
	background: var(--mz-accent);
}

p { margin-bottom: 1.15em; }
strong { color: var(--mz-heading); }
code {
	font-family: var(--mz-mono);
	font-size: .86em;
	background: #f1f5f9;
	border: 1px solid var(--mz-border);
	border-radius: 6px;
	padding: 1px 6px;
	word-break: break-all;
}

/* Reset GeneratePress group inner container (it adds width limits / padding) */
.entry-content .wp-block-group__inner-container {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.entry-content .wp-block-group__inner-container > :first-child { margin-top: 0; }
.entry-content .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

/* =========================================================
   Header: icon + name left, hamburger right (light green)
   ========================================================= */
.main-navigation, #mobile-header, .site-header, .mz-topbar { display: none !important; }

.mz-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--mz-accent-soft);
	border-bottom: 1px solid var(--mz-accent-line);
}
@media (min-width: 601px) {
	body.admin-bar .mz-header { top: var(--wp-admin--admin-bar--height, 32px); }
}
.mz-header-in {
	max-width: 1100px;
	height: var(--mz-header-h);
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.mz-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--mz-accent-dark);
}
.mz-brand:hover, .mz-brand:focus { color: var(--mz-accent-dark); }
.mz-brand-icon {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	object-fit: contain;
	flex: 0 0 auto;
	background: #fff;
}
.mz-brand-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--mz-accent);
	color: #fff;
	font-weight: 900;
	font-size: 20px;
}
.mz-brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }

.mz-burger {
	width: 44px;
	height: 44px;
	padding: 0 !important;
	margin-right: -6px;
	border: 0 !important;
	border-radius: 10px;
	background: transparent !important;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	box-shadow: none !important;
}
.mz-burger:hover, .mz-burger:focus, .mz-burger[aria-expanded="true"] { background: rgba(14, 124, 74, .1) !important; }
.mz-burger span {
	display: block;
	width: 22px;
	height: 2.5px;
	border-radius: 2px;
	background: var(--mz-accent-dark);
	transition: transform .2s ease, opacity .2s ease;
}
.mz-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mz-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mz-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mz-drawer {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-bottom: 1px solid var(--mz-border);
	box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
	max-height: calc(100vh - var(--mz-header-h) - 40px);
	overflow-y: auto;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .18s ease, transform .18s ease;
}
.mz-drawer.is-open { opacity: 1; transform: none; }
.mz-drawer-list { list-style: none; margin: 0 auto; padding: 8px 12px 14px; max-width: 1100px; }
.mz-drawer-list li { margin: 0; border-bottom: 1px solid #f1f5f9; }
.mz-drawer-list li:last-child { border-bottom: 0; }
.mz-drawer-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 8px;
	color: var(--mz-text);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	border-radius: 8px;
}
.mz-drawer-list a::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid #94a3b8;
	border-top: 2px solid #94a3b8;
	transform: rotate(45deg);
}
.mz-drawer-list a:hover { background: var(--mz-row); color: var(--mz-accent); }
.mz-drawer-list .current-menu-item > a { color: var(--mz-accent); background: var(--mz-accent-soft); }
@media (min-width: 900px) {
	.mz-drawer {
		left: auto;
		right: max(16px, calc((100vw - 1100px) / 2 + 16px));
		top: calc(100% + 8px);
		width: 340px;
		border: 1px solid var(--mz-border);
		border-radius: var(--mz-radius);
	}
	.mz-drawer-list { padding: 8px; }
}

/* =========================================================
   Content: full width, no floating card
   ========================================================= */
.site-content { padding: 0 !important; }
.separate-containers .site-main { margin: 0 !important; }
.separate-containers .inside-article,
.one-container .site-content .inside-article,
.inside-article {
	background: #fff !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 28px 18px 40px !important;
}
.separate-containers .site-main > *,
.separate-containers .inside-right-sidebar .widget,
.separate-containers .inside-left-sidebar .widget { margin-bottom: 0; }
.page .entry-content, .single .entry-content,
.page .entry-header, .single .entry-header { max-width: 800px; margin-left: auto; margin-right: auto; }
.entry-header { margin-bottom: 6px; }
.featured-image, .page-header-image { display: none; }
@media (min-width: 769px) {
	.inside-article { padding: 44px 24px 56px !important; }
}

.mz-updated { color: var(--mz-muted); font-size: 14px; margin: -4px 0 20px; }

/* =========================================================
   Lists
   ========================================================= */
.entry-content ul:not([class*="mz-"]):not(.wp-block-social-links),
.entry-content ol:not([class*="mz-"]) {
	margin: 0 0 1.4em;
	padding: 0;
	list-style: none;
}
.entry-content ul:not([class*="mz-"]) > li,
.entry-content ol:not([class*="mz-"]) > li {
	position: relative;
	padding-left: 30px;
	margin-bottom: .6em;
}
.entry-content ul:not([class*="mz-"]) > li::before {
	content: "";
	position: absolute;
	left: 8px;
	top: .68em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mz-accent);
	box-shadow: 0 0 0 4px var(--mz-accent-soft);
}
.entry-content ol:not([class*="mz-"]) { counter-reset: mz-step; }
.entry-content ol:not([class*="mz-"]) > li { counter-increment: mz-step; padding-left: 40px; }
.entry-content ol:not([class*="mz-"]) > li::before {
	content: counter(mz-step);
	position: absolute;
	left: 0;
	top: .1em;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--mz-accent);
	color: #fff;
	font-size: 13.5px;
	font-weight: 800;
	line-height: 26px;
	text-align: center;
}

/* =========================================================
   Tables
   ========================================================= */
.wp-block-table {
	margin: 1.2em 0 1.8em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--mz-border);
	border-radius: var(--mz-radius-sm);
	background: #fff;
}
.wp-block-table thead { border-bottom: 0 !important; }
.wp-block-table tfoot { border-top: 0 !important; }
.entry-content .wp-block-table table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--mz-border);
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
}
.entry-content .wp-block-table thead th {
	background: var(--mz-accent-soft);
	color: var(--mz-accent-dark);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .03em;
	white-space: nowrap;
}
.entry-content .wp-block-table tbody tr:nth-child(even) td { background: var(--mz-row); }
.entry-content .wp-block-table tbody tr:last-child > * { border-bottom: 0; }
.entry-content .wp-block-table td:first-child { font-weight: 600; color: var(--mz-heading); }

.entry-content .mz-kv td:first-child,
.entry-content .mz-kv th[scope="row"] {
	width: 38%;
	background: var(--mz-row);
	color: var(--mz-muted);
	font-weight: 600;
	font-size: 14px;
}
.entry-content .mz-kv tbody tr:nth-child(even) td { background: transparent; }
.entry-content .mz-kv tbody tr:nth-child(even) td:first-child { background: var(--mz-row); }
.entry-content .mz-kv td:last-child { color: var(--mz-heading); font-weight: 500; }

.entry-content .mz-wide td { white-space: nowrap; }
.entry-content .mz-wide td:last-child { white-space: normal; min-width: 300px; }
@media (max-width: 700px) {
	.mz-wide { box-shadow: inset -14px 0 12px -12px rgba(15, 23, 42, .18); }
}

/* =========================================================
   Buttons — all the same style, equal width, side by side
   ========================================================= */
.entry-content .wp-block-buttons {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 10px;
	margin: 1.2em 0 1.8em;
}
.entry-content .wp-block-buttons > .wp-block-button { width: auto; margin: 0 !important; }
.entry-content .wp-block-buttons .wp-block-button .wp-block-button__link,
.entry-content .wp-block-buttons .wp-block-button .wp-block-button__link:visited {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 52px;
	padding: 10px 14px;
	border-radius: var(--mz-radius-sm);
	background: #fff !important;
	border: 2px solid var(--mz-accent) !important;
	color: var(--mz-accent) !important;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.entry-content .wp-block-buttons .wp-block-button .wp-block-button__link:hover,
.entry-content .wp-block-buttons .wp-block-button .wp-block-button__link:focus {
	background: var(--mz-accent) !important;
	color: #fff !important;
}

/* Download button from the plugin */
.entry-content .mda-box { margin: 1.4em 0 1em; }

/* =========================================================
   Callout boxes
   ========================================================= */
.mz-note, .mz-warn, .mz-answer {
	position: relative;
	border-radius: var(--mz-radius-sm);
	padding: 14px 16px 14px 48px;
	margin: 1.2em 0 1.8em;
	font-size: 16px;
}
.mz-note::before, .mz-warn::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 17px;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-size: contain;
}
.mz-note { background: var(--mz-accent-soft); border: 1px solid #cdebd9; }
.mz-note::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%230e7c4a'/%3E%3Cpath d='M12 11v6M12 7.5v.5' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mz-warn { background: var(--mz-warn-soft); border: 1px solid #f7dcaa; }
.mz-warn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 22.5 21h-21z' fill='%23d97706'/%3E%3Cpath d='M12 9.5v5M12 17.5v.3' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mz-answer {
	padding: 14px 18px;
	background: var(--mz-accent-soft);
	border: 1px solid #cdebd9;
	border-left: 5px solid var(--mz-accent);
	font-size: 16.5px;
}
.mz-note p:first-child, .mz-warn p:first-child, .mz-answer p:first-child { margin-top: 0; }
.mz-note p:last-child, .mz-warn p:last-child, .mz-answer p:last-child { margin-bottom: 0; }

/* =========================================================
   Card grid — 2 per row on phones, 3 on desktop
   ========================================================= */
.mz-cards { margin: 1.2em 0 1.8em; }
.mz-cards,
.mz-cards > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.mz-cards:has(> .wp-block-group__inner-container) { display: block; }
@media (min-width: 900px) {
	.mz-cards, .mz-cards > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.entry-content .mz-cards .mz-card {
	position: relative;
	margin: 0 !important;
	padding: 14px !important;
	background: #fff;
	border: 1.5px solid var(--mz-accent-line);
	border-radius: var(--mz-radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.entry-content .mz-cards .mz-card:hover { border-color: var(--mz-accent); background: #fbfefc; box-shadow: var(--mz-shadow); }
.entry-content .mz-cards h3 {
	font-size: 16.5px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 6px !important;
	padding: 0;
}
.entry-content .mz-cards h3::before { display: none; }
.entry-content .mz-cards h3 a { color: var(--mz-accent); text-decoration: none; }
.entry-content .mz-cards h3 a::after { content: ""; position: absolute; inset: 0; }
.entry-content .mz-cards p { font-size: 13.5px; line-height: 1.45; color: var(--mz-muted); margin: 0; }

/* =========================================================
   Numbered problem sections (Group with class mz-problem)
   ========================================================= */
.entry-content { counter-reset: mz-problem; }
.entry-content .mz-problem {
	counter-increment: mz-problem;
	border: 1.5px solid var(--mz-accent-line);
	border-radius: var(--mz-radius);
	padding: 0 16px 6px !important;
	margin: 0 0 18px;
	background: #fff;
	overflow: hidden;
}
.entry-content .mz-problem h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 -16px 14px !important;
	padding: 14px 16px !important;
	background: var(--mz-accent-soft);
	border-bottom: 1px solid var(--mz-accent-line);
	font-size: clamp(19px, 3vw, 23px);
}
.entry-content .mz-problem h2::before {
	content: counter(mz-problem);
	position: static;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mz-accent);
	color: #fff;
	font-size: 16px;
	line-height: 32px;
	text-align: center;
}
.entry-content .mz-problem h3 {
	font-size: 16.5px;
	color: var(--mz-accent-dark);
	margin: 18px 0 10px;
	padding-left: 10px;
	border-left: 3px solid var(--mz-accent);
}
.entry-content .mz-problem h3:first-of-type { margin-top: 6px; }

/* =========================================================
   FAQ (Details block)
   ========================================================= */
.wp-block-details {
	border: 1px solid var(--mz-border);
	border-radius: var(--mz-radius-sm);
	padding: 0 18px;
	margin: 0 0 10px;
	background: #fff;
}
.wp-block-details[open] { border-color: var(--mz-accent-line); }
.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--mz-heading);
	padding: 15px 34px 15px 0;
	list-style: none;
	position: relative;
	line-height: 1.45;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 50%;
	background: var(--mz-accent-soft);
	color: var(--mz-accent);
	font-size: 19px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { margin: 0 0 16px; color: #374151; }

/* =========================================================
   Table of contents
   ========================================================= */
.mz-toc {
	background: var(--mz-row);
	border: 1px solid var(--mz-border);
	border-radius: var(--mz-radius-sm);
	padding: 12px 18px;
	margin: 0 0 1.8em;
	font-size: 15px;
}
.mz-toc summary { cursor: pointer; font-weight: 800; color: var(--mz-heading); }
.mz-toc ol { margin: 10px 0 4px 22px; }
.mz-toc li { margin: 5px 0; }
.mz-toc a { text-decoration: none; }

/* =========================================================
   Related guides
   ========================================================= */
.mz-related { max-width: 800px; margin: 40px auto 0; }
.mz-related h2 { font-size: 20px; margin: 0 0 12px; }
.mz-related ul {
	list-style: none;
	margin: 0 !important;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.mz-related li { margin: 0 !important; padding: 0; }
.mz-related a {
	display: block;
	border: 1.5px solid var(--mz-accent-line);
	border-radius: 10px;
	padding: 11px 13px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	text-decoration: none;
	color: var(--mz-accent);
	background: #fff;
}
.mz-related a:hover { border-color: var(--mz-accent); background: var(--mz-accent-soft); }

/* =========================================================
   Contact Form 7 (keeps the plugin, matches the design)
   ========================================================= */
.wpcf7 form p { margin-bottom: 16px; }
.wpcf7 label { display: block; font-weight: 600; font-size: 15px; color: var(--mz-heading); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="url"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	font-size: 16px;
	color: var(--mz-text);
}
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--mz-accent); outline: 0; box-shadow: 0 0 0 3px rgba(14, 124, 74, .15); }
.wpcf7 input[type="submit"] {
	width: 100%;
	min-height: 50px;
	border: 0;
	border-radius: 10px;
	background: var(--mz-accent) !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--mz-accent-dark) !important; }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; margin: 12px 0 0; padding: 10px 14px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: transparent; }
.mz-footer { background: #0f172a; color: #94a3b8; font-size: 14px; }
.mz-footer-in { max-width: 1100px; margin: 0 auto; padding: 28px 16px 24px; text-align: center; }
.mz-footer-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
}
.mz-footer-list li { margin: 0; }
.mz-footer-list a { color: #e2e8f0; text-decoration: none; font-weight: 600; }
.mz-footer-list a:hover { color: #fff; text-decoration: underline; }
.mz-footer-note { margin: 0; font-size: 13px; line-height: 1.6; }

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 768px) {
	body { font-size: 16.5px; }
	.mz-brand-name { font-size: 20px; }
	.entry-content .wp-block-table th, .entry-content .wp-block-table td { padding: 10px 12px; }
}

/* Steps inside a numbered problem: lighter circles so they don't clash with the problem number */
.entry-content .mz-problem ol:not([class*="mz-"]) > li::before {
	background: #fff;
	color: var(--mz-accent);
	border: 2px solid var(--mz-accent);
	line-height: 22px;
	box-sizing: border-box;
}
code { word-break: normal; overflow-wrap: anywhere; }
