/*
Theme Name: نقشه
Theme URI: https://www.fitflops.org/
Author: شهرداری
Description: قالب خبر شهرسازی
Version: 1.0.1
Text Domain: naghshe
*/

:root {
	--bg: #e7eee9;
	--paper: #f4f7f5;
	--ink: #14202b;
	--muted: #5c6b66;
	--teal: #0f6e62;
	--line: #d3e0d8;
	--card: #ffffff;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Vazirmatn, Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.85;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
.site {
	max-width: 1180px;
	margin: 22px auto 36px;
	background: var(--paper);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(20, 40, 36, 0.08);
}
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 26px;
	border-bottom: 3px solid var(--teal);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.seal {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--teal);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px;
	padding: 7px;
	flex: 0 0 auto;
}
.seal i { display: block; background: #f7f4ee; border-radius: 2px; }
.seal i:nth-child(2) { background: #c9ddd4; }
.brand-name { display: block; font-size: 22px; font-weight: 800; line-height: 1.3; }
.brand-desc { display: block; color: var(--muted); font-size: 13px; }
.nav-wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.nav a {
	text-decoration: none;
	font-size: 14px;
	font-weight: 800;
	background: var(--card);
	border: 1px solid var(--line);
	padding: 8px 12px;
	border-radius: 999px;
}
.nav a.on, .nav a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.lead {
	margin: 18px 22px 8px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 20px 22px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
}
.lead-copy { min-width: 0; }
.chip {
	display: inline-block;
	color: var(--teal);
	font-weight: 800;
	font-size: 13px;
	background: #e5f3ef;
	border-radius: 999px;
	padding: 2px 10px;
}
.lead h2 { margin: 10px 0 0; font-size: 28px; line-height: 1.55; }
.lead h2 a { text-decoration: none; }
.go {
	display: inline-block;
	margin-top: 14px;
	background: var(--teal);
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	padding: 10px 16px;
	border-radius: 12px;
}
.map {
	width: 210px;
	height: 132px;
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 6px;
	background: #d5e3dc;
	border-radius: 16px;
	padding: 10px;
}
.map i { display: block; background: #f7f4ee; border-radius: 5px; }
.map i.park { background: #0f6e62; }
.map i.wash { background: #c9ddd4; }
.cover {
	width: 210px;
	height: 132px;
	border-radius: 16px;
	overflow: hidden;
	flex: 0 0 auto;
	display: block;
	background: #d5e3dc;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 16px;
	padding: 14px 22px 26px;
}
.cards { display: flex; flex-direction: column; gap: 10px; }
.card {
	background: var(--card);
	border-radius: 16px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-right: 4px solid var(--teal);
	min-width: 0;
}
.card h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.7; }
.card h3 a { text-decoration: none; }
.meta { color: var(--muted); font-size: 12px; margin-top: 4px; }

.side { display: flex; flex-direction: column; gap: 10px; }
.box, .widget {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 12px 14px;
}
.widget-title, .box h4, .widgettitle { margin: 0 0 8px; color: var(--teal); font-size: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.layout, .side, main { min-width: 0; overflow-wrap: anywhere; }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { color: var(--teal); }
.search-form { display: flex; gap: 8px; }
.search-field, .widget input[type="text"], .widget input[type="search"] {
	width: 100%;
	border: 0;
	background: #eef4f1;
	color: var(--ink);
	border-radius: 8px;
	padding: 8px 10px;
	font-family: inherit;
}
.search-submit, .widget input[type="submit"] {
	border: 0;
	background: var(--teal);
	color: #fff;
	border-radius: 8px;
	padding: 8px 10px;
	font-family: inherit;
	font-weight: 800;
	cursor: pointer;
}
.behtarinseo { font-size: 13px; line-height: 1.9; }
.behtarinseo a { color: var(--teal); text-decoration: none; }
.behtarinseo li { list-style: none; margin: 6px 0; }

.entry { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.entry-title { margin: 8px 0; font-size: 30px; line-height: 1.5; }
.entry-thumb { margin: 14px 0; border-radius: 16px; overflow: hidden; }
.entry-thumb img { width: 100%; height: auto; display: block; }
.entry-content a { color: var(--teal); }
.entry-content p { margin: 0 0 1em; }
.entry-content h2, .entry-content h3 { line-height: 1.5; }
.page-head h1 { margin: 0 0 16px; font-size: 26px; }
.nav-links, .pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.page-numbers {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 10px;
	padding: 6px 10px;
	text-decoration: none;
	font-weight: 700;
}
.page-numbers.current { background: var(--teal); color: #fff; border-color: var(--teal); }
.site-footer { padding: 4px 28px 24px; color: var(--muted); font-size: 13px; }
#comments { margin-top: 22px; }
.comment-list { padding: 0; list-style: none; }
.comment-form input, .comment-form textarea {
	width: 100%;
	background: #eef4f1;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 12px;
	font-family: inherit;
}
.comment-form .submit {
	width: auto;
	background: var(--teal);
	color: #fff;
	border: 0;
	font-weight: 800;
	cursor: pointer;
}

@media (max-width: 900px) {
	.site { margin: 0; border-radius: 0; }
	.site-header { flex-wrap: wrap; padding: 16px; }
	.brand-name { font-size: 18px; }
	.nav-btn {
		display: inline-flex;
		width: 46px;
		height: 46px;
		border-radius: 14px;
		background: var(--teal);
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}
	.nav-btn span, .nav-btn span:before, .nav-btn span:after {
		display: block;
		width: 18px;
		height: 2px;
		background: #fff;
		position: relative;
	}
	.nav-btn span:before, .nav-btn span:after { content: ""; position: absolute; right: 0; }
	.nav-btn span:before { top: -6px; }
	.nav-btn span:after { top: 6px; }
	.nav { display: none; width: 100%; flex-direction: column; gap: 8px; align-items: flex-start; }
	.nav-toggle:checked ~ .nav { display: flex; }
	.lead { margin: 12px 12px 8px; flex-direction: column; align-items: flex-start; padding: 18px; }
	.lead h2 { font-size: 22px; }
	.cover, .map { width: 100%; height: 150px; }
	.layout { grid-template-columns: 1fr; padding: 8px 12px 22px; }
	.entry-title { font-size: 24px; }
	.site-footer { padding: 0 16px 20px; }
}
