/* ==========================================================================
   قالب حکیمانه‌ها — استایل اصلی
   رنگ‌ها: لاجوردی و زعفرانی با نقش کاشی هشت‌پر
   ========================================================================== */

/* ---------- فونت وزیرمتن (ارقام فارسی) ---------- */
@font-face {
	font-family: "Vazirmatn FD";
	src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Vazirmatn FD";
	src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Vazirmatn FD";
	src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Vazirmatn FD";
	src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2");
	font-weight: 800 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- متغیرها ---------- */
:root {
	--hk-lapis: #1E2B63;
	--hk-saffron: #D9961A;

	--hk-lapis-deep: color-mix(in srgb, var(--hk-lapis) 76%, #000);
	--hk-lapis-tint: color-mix(in srgb, var(--hk-lapis) 6%, #fff);
	--hk-lapis-soft: color-mix(in srgb, var(--hk-lapis) 12%, #fff);
	--hk-saffron-tint: color-mix(in srgb, var(--hk-saffron) 12%, #fff);
	--hk-saffron-ink: color-mix(in srgb, var(--hk-saffron) 62%, #3a2400);

	--hk-ink: #1B2130;
	--hk-text: #2B3244;
	--hk-muted: #5D667A;
	--hk-line: #E3E7F0;
	--hk-bg: #FFFFFF;
	--hk-herb: #2F7D62;
	--hk-pom: #B8352F;

	--hk-radius-lg: 18px;
	--hk-radius: 12px;
	--hk-radius-sm: 8px;

	--hk-font: "Vazirmatn FD", Vazirmatn, Tahoma, "Segoe UI", sans-serif;
	--hk-fs: 1.125rem;
	--hk-topbar-h: 0px;

	--hk-girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D9961A' stroke-opacity='.3' stroke-width='1.2'%3E%3Cpath d='M40 20 60 40 40 60 20 40Z'/%3E%3Cpath d='M26 26h28v28H26Z'/%3E%3Cpath d='M0 0l26 26M80 0 54 26M0 80l26-26M80 80 54 54M40 0v20M40 60v20M0 40h20M60 40h20'/%3E%3C/g%3E%3C/svg%3E");
	--hk-girih-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%231E2B63' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M40 20 60 40 40 60 20 40Z'/%3E%3Cpath d='M26 26h28v28H26Z'/%3E%3Cpath d='M0 0l26 26M80 0 54 26M0 80l26-26M80 80 54 54M40 0v20M40 60v20M0 40h20M60 40h20'/%3E%3C/g%3E%3C/svg%3E");
	--hk-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='4' y='4' width='12' height='12'/%3E%3Crect x='4' y='4' width='12' height='12' transform='rotate(45 10 10)'/%3E%3C/svg%3E");
}

/* ---------- پایه ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--hk-font);
	font-size: 1rem;
	line-height: 1.9;
	color: var(--hk-text);
	background: var(--hk-bg);
	direction: rtl;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--hk-lapis);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--hk-ink);
	line-height: 1.55;
	font-weight: 800;
}

:focus-visible {
	outline: 3px solid var(--hk-saffron);
	outline-offset: 2px;
	border-radius: 4px;
}

.hk-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

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

.hk-skip {
	position: absolute;
	top: -60px;
	right: 16px;
	z-index: 200;
	padding: 10px 18px;
	background: var(--hk-lapis);
	color: #fff;
	border-radius: var(--hk-radius-sm);
	text-decoration: none;
}

.hk-skip:focus {
	top: 12px;
}

.hk-icon {
	flex: none;
	width: 1.15em;
	height: 1.15em;
}

.hk-star {
	flex: none;
	color: var(--hk-saffron);
}

/* ---------- نوار پیشرفت مطالعه ---------- */
.hk-progress {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 120;
	height: 3px;
	pointer-events: none;
}

.hk-progress span {
	display: block;
	height: 100%;
	background: var(--hk-saffron);
	transform-origin: right center;
	transform: scaleX(var(--hk-progress, 0));
}

/* ---------- سربرگ ---------- */
.hk-header {
	position: sticky;
	top: calc(var(--hk-topbar-h) * -1);
	z-index: 50;
}

.hk-header:has(.hk-topbar) {
	--hk-topbar-h: 38px;
}

@media (min-width: 783px) {
	.admin-bar .hk-header {
		top: calc(32px - var(--hk-topbar-h));
	}
}

.hk-topbar {
	height: 38px;
	background: var(--hk-lapis-deep);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.84rem;
}

.hk-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 16px;
}

.hk-today {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hk-today .hk-icon {
	color: var(--hk-saffron);
}

.hk-social {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hk-social a {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: inherit;
	transition: color 0.2s, background-color 0.2s;
}

.hk-social a:hover {
	color: var(--hk-saffron);
	background: rgba(255, 255, 255, 0.08);
}

.hk-social .hk-icon {
	width: 16px;
	height: 16px;
}

.hk-masthead {
	position: relative;
	background: #fff;
	border-bottom: 1px solid var(--hk-line);
	transition: box-shadow 0.25s;
}

.is-scrolled .hk-masthead {
	box-shadow: 0 6px 24px -12px rgba(20, 29, 69, 0.28);
}

.hk-masthead-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 76px;
}

.hk-brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: none;
}

.hk-brand .custom-logo {
	width: auto;
	max-height: 56px;
}

.hk-logo-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--hk-lapis);
}

.hk-logo-mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--hk-lapis);
}

.hk-logo-mark .hk-star {
	width: 22px;
	height: 22px;
}

.hk-logo-name {
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.2;
}

.hk-tagline {
	margin: 2px 50px 0 0;
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--hk-muted);
}

/* منو */
.hk-nav {
	flex: 1;
	min-width: 0;
}

.hk-menu,
.hk-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hk-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.hk-menu li {
	position: relative;
}

.hk-menu a {
	display: block;
	padding: 8px 13px;
	border-radius: var(--hk-radius-sm);
	color: var(--hk-ink);
	font-weight: 500;
	font-size: 0.96rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.hk-menu a:hover,
.hk-menu li:focus-within > a {
	background: var(--hk-lapis-tint);
	color: var(--hk-lapis);
}

.hk-menu .current-menu-item > a,
.hk-menu .current-menu-ancestor > a,
.hk-menu .current-cat > a {
	color: var(--hk-lapis);
	box-shadow: inset 0 -2px 0 var(--hk-saffron);
	border-radius: var(--hk-radius-sm) var(--hk-radius-sm) 0 0;
}

.hk-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-inline-start: 8px;
	border: solid currentColor;
	border-width: 0 0 1.6px 1.6px;
	transform: translateY(-3px) rotate(-45deg);
	opacity: 0.6;
}

.hk-menu .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 20;
	min-width: 230px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--hk-line);
	border-radius: var(--hk-radius);
	box-shadow: 0 18px 40px -18px rgba(20, 29, 69, 0.3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.hk-menu .sub-menu .sub-menu {
	top: -8px;
	right: 100%;
}

.hk-menu li:hover > .sub-menu,
.hk-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.hk-menu .sub-menu a {
	white-space: normal;
}

.hk-actions {
	display: flex;
	gap: 8px;
	margin-inline-start: auto;
}

.hk-icon-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--hk-line);
	border-radius: 50%;
	background: #fff;
	color: var(--hk-ink);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.hk-icon-btn:hover,
.hk-icon-btn[aria-expanded="true"] {
	background: var(--hk-lapis-tint);
	border-color: var(--hk-lapis-soft);
	color: var(--hk-lapis);
}

.hk-menu-toggle {
	display: none;
}

.hk-menu-toggle .hk-i-close,
.hk-menu-toggle[aria-expanded="true"] .hk-i-open {
	display: none;
}

.hk-menu-toggle[aria-expanded="true"] .hk-i-close {
	display: block;
}

/* جست‌وجو */
.hk-search-panel {
	padding: 18px 0 22px;
	border-top: 1px solid var(--hk-line);
	background: #fff;
}

.hk-search-panel[hidden] {
	display: none;
}

.hk-search-form {
	display: flex;
	gap: 8px;
	max-width: 720px;
}

.hk-search-field {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 18px;
	border: 1.5px solid var(--hk-line);
	border-radius: var(--hk-radius);
	background: #fff;
	font-size: 1rem;
	transition: border-color 0.2s;
}

.hk-search-field:focus {
	outline: none;
	border-color: var(--hk-lapis);
}

.hk-search-submit,
.hk-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--hk-radius);
	background: var(--hk-lapis);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s;
}

.hk-search-submit:hover,
.hk-btn:hover,
.comment-form .submit:hover {
	background: var(--hk-lapis-deep);
}

/* ---------- عناصر مشترک ---------- */
.hk-cat {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--hk-saffron-ink);
	text-decoration: none;
}

.hk-cat:hover {
	text-decoration: underline;
}

.hk-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 0.8rem;
	color: var(--hk-muted);
}

.hk-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hk-meta .hk-icon {
	width: 15px;
	height: 15px;
	opacity: 0.8;
}

.hk-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hk-thumb-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background-color: var(--hk-lapis);
	background-image: var(--hk-girih);
	background-size: 56px;
}

.hk-thumb-fallback .hk-star {
	width: 34%;
	max-width: 56px;
	height: auto;
}

.hk-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-size: 1.35rem;
}

.hk-section-title a {
	color: inherit;
	text-decoration: none;
}

.hk-section-title a:hover {
	color: var(--hk-lapis);
}

/* ---------- بخش ویژه صفحه اصلی ---------- */
.hk-hero {
	padding: 40px 0 48px;
	color: #fff;
	background-color: var(--hk-lapis);
	background-image: linear-gradient(to bottom, color-mix(in srgb, var(--hk-lapis) 20%, transparent), var(--hk-lapis) 92%), var(--hk-girih);
	background-size: auto, 80px;
}

.hk-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.hk-lead-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--hk-radius-lg);
	background: var(--hk-lapis-deep);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

.hk-lead-body {
	padding-top: 20px;
}

.hk-hero .hk-cat {
	color: var(--hk-saffron);
}

.hk-lead-title {
	margin: 6px 0 10px;
	font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
	line-height: 1.55;
	text-wrap: balance;
}

.hk-lead-title a,
.hk-hero .hk-row-title a {
	color: #fff;
	text-decoration: none;
}

.hk-lead-title a:hover,
.hk-hero .hk-row-title a:hover {
	color: var(--hk-saffron);
}

.hk-lead-excerpt {
	max-width: 62ch;
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.02rem;
}

.hk-hero .hk-meta {
	color: rgba(255, 255, 255, 0.68);
}

.hk-hero-side {
	display: flex;
	flex-direction: column;
}

.hk-hero-side .hk-row {
	padding: 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hk-hero-side .hk-row:first-child {
	padding-top: 0;
}

.hk-hero-side .hk-row:last-child {
	border-bottom: 0;
}

.hk-hero .hk-row-media {
	background: var(--hk-lapis-deep);
}

.hk-hero .hk-row .hk-meta {
	color: rgba(255, 255, 255, 0.6);
}

/* ردیف فشرده */
.hk-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.hk-row-media {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--hk-radius);
	background: var(--hk-lapis-tint);
}

.hk-row-title {
	display: -webkit-box;
	margin: 2px 0 6px;
	overflow: hidden;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.75;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.hk-row-title a {
	color: var(--hk-ink);
	text-decoration: none;
}

.hk-row-title a:hover {
	color: var(--hk-lapis);
}

/* ---------- چیدمان ---------- */
.hk-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	padding-block: 44px 64px;
	align-items: start;
}

.hk-main {
	min-width: 0;
}

/* کارت‌ها */
.hk-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 28px;
}

.hk-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 22px;
}

.hk-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hk-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 14px;
	background: var(--hk-lapis-tint);
}

.hk-card-body {
	padding-top: 14px;
}

.hk-card-title {
	margin: 4px 0 8px;
	font-size: 1.14rem;
	line-height: 1.7;
	text-wrap: pretty;
}

.hk-grid-3 .hk-card-title {
	font-size: 1.02rem;
}

.hk-card-title a {
	color: var(--hk-ink);
	text-decoration: none;
	background-image: linear-gradient(var(--hk-saffron), var(--hk-saffron));
	background-repeat: no-repeat;
	background-position: 100% 100%;
	background-size: 0 2px;
	transition: background-size 0.3s, color 0.2s;
}

.hk-card-title a:hover {
	color: var(--hk-lapis);
	background-size: 100% 2px;
}

.hk-card-excerpt {
	display: -webkit-box;
	margin: 0 0 10px;
	overflow: hidden;
	color: var(--hk-muted);
	font-size: 0.93rem;
	line-height: 1.95;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hk-grid-3 .hk-card-excerpt {
	display: none;
}

/* صفحه‌بندی */
.hk-pagination {
	margin-top: 48px;
}

.hk-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--hk-line);
	border-radius: 10px;
	color: var(--hk-ink);
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s;
}

a.page-numbers:hover {
	border-color: var(--hk-lapis);
	color: var(--hk-lapis);
}

.page-numbers.current {
	background: var(--hk-lapis);
	border-color: var(--hk-lapis);
	color: #fff;
}

.page-numbers.dots {
	border-color: transparent;
}

/* بخش دسته‌ها در صفحه اصلی */
.hk-cat-blocks {
	padding: 56px 0 24px;
	background-color: var(--hk-lapis-tint);
	background-image: var(--hk-girih-soft);
	background-size: 80px;
}

.hk-cat-block {
	margin-bottom: 48px;
}

.hk-cat-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--hk-lapis-soft);
}

.hk-cat-block-head .hk-section-title {
	margin: 0;
}

.hk-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--hk-saffron-ink);
	text-decoration: none;
}

.hk-more:hover {
	text-decoration: underline;
}

.hk-more .hk-icon {
	width: 16px;
	height: 16px;
}

.hk-cat-block-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 32px;
}

.hk-cat-block .hk-cat {
	display: none;
}

.hk-cat-block-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* سربرگ بایگانی */
.hk-archive-head {
	padding: 34px 0 30px;
	background-color: var(--hk-lapis-tint);
	background-image: var(--hk-girih-soft);
	background-size: 80px;
	border-bottom: 1px solid var(--hk-line);
}

.hk-archive-title {
	margin: 4px 0 6px;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
}

.hk-archive-desc {
	max-width: 68ch;
	color: var(--hk-muted);
}

.hk-archive-desc p {
	margin: 0 0 0.6em;
}

.hk-archive-count {
	margin: 4px 0 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--hk-saffron-ink);
}

.hk-archive-search {
	margin-top: 16px;
}

.hk-empty {
	padding: 28px;
	border: 1px dashed var(--hk-lapis-soft);
	border-radius: var(--hk-radius-lg);
	background: var(--hk-lapis-tint);
}

.hk-empty p {
	margin-top: 0;
}

/* مسیر راهنما */
.hk-breadcrumbs {
	font-size: 0.84rem;
	color: var(--hk-muted);
}

.hk-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hk-breadcrumbs li + li::before {
	content: "/";
	margin: 0 8px;
	color: var(--hk-line);
	color: color-mix(in srgb, var(--hk-muted) 45%, transparent);
}

.hk-breadcrumbs a {
	color: var(--hk-muted);
	text-decoration: none;
}

.hk-breadcrumbs a:hover {
	color: var(--hk-lapis);
}

.hk-breadcrumbs [aria-current] span {
	display: inline-block;
	max-width: 36ch;
	overflow: hidden;
	vertical-align: bottom;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* ---------- ستون کناری ---------- */
.hk-sidebar-inner {
	position: sticky;
	top: 100px;
}

.widget {
	margin-bottom: 36px;
}

.widget-title,
.widget_block .wp-block-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 1.08rem;
}

.widget-title::before,
.widget_block .wp-block-heading::before {
	content: "";
	flex: none;
	width: 13px;
	height: 13px;
	background: var(--hk-saffron);
	-webkit-mask: var(--hk-star) center / contain no-repeat;
	mask: var(--hk-star) center / contain no-repeat;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding: 9px 0;
	border-bottom: 1px solid var(--hk-line);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget a {
	color: var(--hk-ink);
	text-decoration: none;
}

.widget a:hover {
	color: var(--hk-lapis);
}

.widget_categories li,
.widget_archive li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--hk-muted);
	font-size: 0.92rem;
}

.widget .children {
	width: 100%;
	padding-inline-start: 14px;
}

.hk-mini-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hk-rank;
}

.hk-mini {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--hk-line);
}

.hk-mini:first-child {
	padding-top: 0;
}

.hk-mini:last-child {
	border-bottom: 0;
}

.hk-mini-thumb {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
	background: var(--hk-lapis-tint);
}

.is-ranked .hk-mini {
	counter-increment: hk-rank;
}

.is-ranked .hk-mini-thumb::after {
	content: counter(hk-rank);
	position: absolute;
	top: 5px;
	right: 5px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--hk-saffron);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
}

.hk-mini-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.93rem;
	font-weight: 700;
	line-height: 1.75;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hk-mini-meta {
	display: block;
	margin-top: 2px;
	font-size: 0.78rem;
	color: var(--hk-muted);
}

.widget .hk-search-field,
.widget .hk-search-submit {
	height: 46px;
}

.widget .hk-search-submit span {
	display: none;
}

.widget .hk-search-submit {
	padding: 0 14px;
}

/* ابزارک‌های بلوکی وردپرس */
.widget ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget_block .wp-block-heading {
	font-size: 1.08rem;
	font-weight: 800;
}

.wp-block-search__label {
	display: block;
	margin-bottom: 8px;
	color: var(--hk-ink);
	font-weight: 700;
	font-size: 0.95rem;
}

.wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
}

.wp-block-search__input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1.5px solid var(--hk-line);
	border-radius: var(--hk-radius);
	background: #fff;
}

.wp-block-search__input:focus {
	outline: none;
	border-color: var(--hk-lapis);
}

.wp-block-search__button {
	height: 46px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: var(--hk-radius);
	background: var(--hk-lapis);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.wp-block-search__button:hover {
	background: var(--hk-lapis-deep);
}

.wp-block-latest-comments__comment {
	padding: 9px 0;
	border-bottom: 1px solid var(--hk-line);
	font-size: 0.92rem;
	line-height: 1.85;
}

.wp-block-latest-comments__comment:last-child {
	border-bottom: 0;
}

.wp-block-latest-comments__comment-meta {
	color: var(--hk-muted);
}

.wp-block-latest-posts__post-date {
	display: block;
	color: var(--hk-muted);
	font-size: 0.78rem;
}

.hk-footer .widget_block .wp-block-heading,
.hk-footer .wp-block-search__label {
	color: #fff;
}

.hk-footer .wp-block-latest-comments__comment,
.hk-footer .wp-block-latest-comments__comment-meta {
	color: rgba(255, 255, 255, 0.7);
	border-color: rgba(255, 255, 255, 0.1);
}

/* ---------- صفحه مقاله ---------- */
.hk-layout-single {
	grid-template-columns: minmax(0, 1fr) 300px;
}

.hk-article {
	max-width: 46rem;
}

.hk-article-head .hk-breadcrumbs {
	margin-bottom: 14px;
}

.hk-article-title {
	margin: 6px 0 14px;
	font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.35rem);
	line-height: 1.5;
	text-wrap: balance;
}

.hk-article-lead {
	margin: 0 0 8px;
	padding-inline-start: 16px;
	border-inline-start: 3px solid var(--hk-saffron);
	color: var(--hk-muted);
	font-size: 1.12rem;
	line-height: 2;
}

.hk-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 26px;
	margin: 22px 0 28px;
	padding: 14px 0;
	border-block: 1px solid var(--hk-line);
}

.hk-byline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--hk-ink);
	font-weight: 700;
	text-decoration: none;
}

.hk-byline img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.hk-article-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.86rem;
	color: var(--hk-muted);
}

.hk-article-facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hk-article-facts .hk-icon {
	width: 16px;
	height: 16px;
	color: var(--hk-lapis);
	opacity: 0.75;
}

.hk-article-facts time {
	color: var(--hk-text);
	font-weight: 500;
}

.hk-fontsize {
	display: flex;
	gap: 6px;
	margin-inline-start: auto;
}

.hk-fontsize button {
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--hk-line);
	border-radius: var(--hk-radius-sm);
	background: #fff;
	color: var(--hk-ink);
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}

.hk-fontsize button:hover {
	border-color: var(--hk-lapis);
	color: var(--hk-lapis);
}

.hk-article-figure {
	margin: 0 0 32px;
}

.hk-article-img {
	width: 100%;
	border-radius: var(--hk-radius-lg);
}

.hk-article-figure figcaption {
	margin-top: 10px;
	color: var(--hk-muted);
	font-size: 0.85rem;
	text-align: center;
}

/* ---------- متن مقاله ---------- */
.hk-content {
	font-size: var(--hk-fs);
	line-height: 2.05;
	color: var(--hk-text);
	overflow-wrap: break-word;
}

.hk-content > *:first-child {
	margin-top: 0;
}

.hk-content p {
	margin: 0 0 1.25em;
}

.hk-content h2,
.hk-content h3,
.hk-content h4 {
	scroll-margin-top: 100px;
}

.hk-content h2 {
	margin: 1.9em 0 0.7em;
	font-size: 1.42em;
	line-height: 1.6;
}

.hk-content h2::before {
	content: "";
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin-inline-end: 0.45em;
	background: var(--hk-saffron);
	-webkit-mask: var(--hk-star) center / contain no-repeat;
	mask: var(--hk-star) center / contain no-repeat;
	vertical-align: 0.02em;
}

.hk-content h3 {
	margin: 1.6em 0 0.6em;
	font-size: 1.2em;
	color: var(--hk-lapis);
}

.hk-content h4 {
	margin: 1.4em 0 0.5em;
	font-size: 1.05em;
}

.hk-content a {
	color: var(--hk-lapis);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--hk-saffron) 70%, transparent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.4em;
	transition: color 0.2s, text-decoration-color 0.2s;
}

.hk-content a:hover {
	color: var(--hk-saffron-ink);
	text-decoration-color: var(--hk-saffron);
}

.hk-content strong,
.hk-content b {
	color: var(--hk-ink);
	font-weight: 700;
}

.hk-content ul,
.hk-content ol {
	margin: 0 0 1.3em;
	padding-inline-start: 1.5em;
}

.hk-content li {
	margin: 0.4em 0;
	padding-inline-start: 0.2em;
}

.hk-content ul > li::marker {
	color: var(--hk-saffron);
}

.hk-content ol > li::marker {
	color: var(--hk-lapis);
	font-weight: 800;
}

.hk-content blockquote {
	margin: 1.8em 0;
	padding: 1.1em 1.4em;
	border-inline-start: 4px solid var(--hk-saffron);
	border-radius: var(--hk-radius);
	background: var(--hk-lapis-tint);
	color: var(--hk-ink);
	font-size: 1.04em;
}

.hk-content blockquote p:last-child {
	margin-bottom: 0;
}

.hk-content blockquote cite {
	display: block;
	margin-top: 0.6em;
	color: var(--hk-muted);
	font-size: 0.85em;
	font-style: normal;
}

.hk-content img {
	border-radius: 14px;
}

.hk-content figure {
	margin: 1.8em 0;
}

.hk-content figcaption,
.hk-content .wp-caption-text {
	margin-top: 8px;
	color: var(--hk-muted);
	font-size: 0.82em;
	line-height: 1.8;
	text-align: center;
}

.hk-content hr {
	width: 40%;
	margin: 2.4em auto;
	border: 0;
	border-top: 1px solid var(--hk-line);
}

.hk-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
	line-height: 1.8;
}

.hk-content .wp-block-table,
.hk-table-scroll {
	overflow-x: auto;
	margin: 1.8em 0;
	border: 1px solid var(--hk-line);
	border-radius: var(--hk-radius);
}

.hk-content th {
	padding: 12px 14px;
	background: var(--hk-lapis);
	color: #fff;
	font-weight: 700;
	text-align: right;
}

.hk-content td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--hk-line);
	vertical-align: top;
}

.hk-content tr:nth-child(even) td {
	background: #F8F9FC;
}

.hk-content tr:last-child td {
	border-bottom: 0;
}

.hk-content code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--hk-lapis-tint);
	font-size: 0.88em;
	direction: ltr;
	unicode-bidi: isolate;
}

.hk-content pre {
	padding: 1em 1.2em;
	overflow-x: auto;
	border-radius: var(--hk-radius);
	background: var(--hk-ink);
	color: #E9ECF5;
	direction: ltr;
	text-align: left;
	font-size: 0.85em;
	line-height: 1.7;
}

.hk-content pre code {
	padding: 0;
	background: none;
}

.hk-content .wp-block-embed,
.hk-content iframe {
	max-width: 100%;
}

/* باکس‌های ویژه نویسنده */
.hk-content .is-style-hk-tip,
.hk-content .is-style-hk-warning,
.hk-content .is-style-hk-doctor {
	margin: 1.6em 0;
	padding: 1em 1.25em;
	border-inline-start: 4px solid;
	border-radius: var(--hk-radius);
	font-size: 0.97em;
}

.hk-content .is-style-hk-tip::before,
.hk-content .is-style-hk-warning::before,
.hk-content .is-style-hk-doctor::before {
	display: block;
	margin-bottom: 0.25em;
	font-weight: 800;
}

.hk-content .is-style-hk-tip {
	border-color: var(--hk-herb);
	background: color-mix(in srgb, var(--hk-herb) 8%, #fff);
}

.hk-content .is-style-hk-tip::before {
	content: "نکته";
	color: var(--hk-herb);
}

.hk-content .is-style-hk-warning {
	border-color: var(--hk-pom);
	background: color-mix(in srgb, var(--hk-pom) 7%, #fff);
}

.hk-content .is-style-hk-warning::before {
	content: "هشدار";
	color: var(--hk-pom);
}

.hk-content .is-style-hk-doctor {
	border-color: var(--hk-lapis);
	background: var(--hk-lapis-tint);
}

.hk-content .is-style-hk-doctor::before {
	content: "چه زمانی به پزشک مراجعه کنیم؟";
	color: var(--hk-lapis);
}

.hk-content ul.is-style-hk-check {
	padding-inline-start: 0;
	list-style: none;
}

.hk-content ul.is-style-hk-check > li {
	position: relative;
	padding-inline-start: 2em;
}

.hk-content ul.is-style-hk-check > li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	right: 0;
	width: 1.2em;
	height: 1.2em;
	border-radius: 50%;
	background: color-mix(in srgb, var(--hk-herb) 14%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7D62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* فهرست مطالب */
.hk-toc {
	margin: 0 0 2em;
	border: 1px solid var(--hk-line);
	border-radius: 14px;
	background: #FAFBFE;
	font-size: 0.93em;
}

.hk-toc summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	color: var(--hk-ink);
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.hk-toc summary::-webkit-details-marker {
	display: none;
}

.hk-toc summary .hk-icon {
	color: var(--hk-saffron);
}

.hk-toc summary::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-inline-start: auto;
	border: solid var(--hk-muted);
	border-width: 0 0 2px 2px;
	transform: rotate(-45deg);
	transition: transform 0.2s;
}

.hk-toc[open] summary::after {
	transform: rotate(135deg);
}

.hk-content .hk-toc ol {
	margin: 0;
	padding: 0 18px 16px 18px;
	padding-inline-start: 2.2em;
}

.hk-content .hk-toc ol ol {
	padding: 0;
	padding-inline-start: 1.2em;
	list-style: circle;
}

.hk-content .hk-toc li {
	margin: 0.25em 0;
	line-height: 1.85;
}

.hk-content .hk-toc a {
	color: var(--hk-text);
	text-decoration: none;
}

.hk-content .hk-toc a:hover {
	color: var(--hk-lapis);
	text-decoration: underline;
}

.hk-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 2em 0;
}

/* هشدار پزشکی */
.hk-disclaimer {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 36px 0 28px;
	padding: 16px 20px;
	border: 1px solid color-mix(in srgb, var(--hk-saffron) 35%, #fff);
	border-radius: 14px;
	background: var(--hk-saffron-tint);
	color: color-mix(in srgb, var(--hk-saffron) 30%, #2a1d05);
	font-size: 0.92rem;
	line-height: 1.95;
}

.hk-disclaimer .hk-icon {
	width: 26px;
	height: 26px;
	margin-top: 2px;
	color: var(--hk-saffron-ink);
}

.hk-disclaimer p {
	margin: 0;
}

/* برچسب‌ها */
.hk-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 24px;
}

.hk-tags-label {
	color: var(--hk-muted);
	font-size: 0.88rem;
	font-weight: 700;
}

.hk-tags a {
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--hk-lapis-tint);
	color: var(--hk-lapis);
	font-size: 0.85rem;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.hk-tags a:hover {
	background: var(--hk-lapis);
	color: #fff;
}

/* هم‌رسانی */
.hk-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 32px;
	padding: 14px 0;
	border-block: 1px solid var(--hk-line);
}

.hk-share-label {
	color: var(--hk-ink);
	font-weight: 700;
	font-size: 0.95rem;
}

.hk-share ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hk-share a,
.hk-copy-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: var(--hk-lapis-tint);
	color: var(--hk-lapis);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.hk-share a {
	padding: 0;
}

.hk-share a:hover,
.hk-copy-link:hover {
	background: var(--hk-lapis);
	color: #fff;
}

.hk-copy-link.is-copied {
	background: var(--hk-herb);
	color: #fff;
}

/* نویسنده */
.hk-author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 22px 24px;
	border-radius: var(--hk-radius-lg);
	background-color: var(--hk-lapis-tint);
	background-image: var(--hk-girih-soft);
	background-size: 80px;
}

.hk-author-box img {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 3px solid #fff;
}

.hk-author-name {
	margin: 4px 0 4px;
	color: var(--hk-muted);
	font-size: 0.9rem;
}

.hk-author-name a {
	color: var(--hk-ink);
	font-size: 1.05rem;
	font-weight: 800;
	text-decoration: none;
}

.hk-author-bio {
	margin: 0;
	color: var(--hk-text);
	font-size: 0.93rem;
	line-height: 1.95;
}

/* مرتبط */
.hk-related {
	margin-top: 56px;
}

/* ---------- دیدگاه‌ها ---------- */
.hk-comments {
	max-width: 46rem;
	margin-top: 56px;
}

.hk-comment-list,
.hk-comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hk-comment-list .children {
	margin-inline-start: 34px;
}

.hk-comment-body {
	display: flex;
	gap: 14px;
	margin-bottom: 16px;
}

.hk-comment-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.hk-comment-main {
	flex: 1;
	min-width: 0;
	padding: 14px 18px;
	border: 1px solid var(--hk-line);
	border-radius: 14px;
	background: #FAFBFE;
}

.bypostauthor > .hk-comment-body .hk-comment-main {
	border-color: var(--hk-lapis-soft);
	background: var(--hk-lapis-tint);
}

.hk-comment-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.hk-comment-author {
	color: var(--hk-ink);
	font-weight: 800;
}

.hk-comment-author a {
	color: inherit;
	text-decoration: none;
}

.hk-comment-date {
	color: var(--hk-muted);
	font-size: 0.8rem;
	text-decoration: none;
}

.hk-comment-text {
	font-size: 0.97rem;
}

.hk-comment-text p {
	margin: 0.4em 0;
}

.hk-comment-pending {
	margin: 6px 0;
	color: var(--hk-saffron-ink);
	font-size: 0.85rem;
}

.comment-reply-link {
	color: var(--hk-lapis);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.comment-respond {
	margin-top: 32px;
}

.comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.comment-form > p {
	grid-column: 1 / -1;
	margin: 0 0 14px;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email {
	grid-column: auto;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--hk-ink);
	font-size: 0.9rem;
	font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--hk-line);
	border-radius: 10px;
	background: #fff;
	transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--hk-lapis);
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: center;
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.comment-notes {
	color: var(--hk-muted);
	font-size: 0.87rem;
}

#cancel-comment-reply-link {
	margin-inline-start: 12px;
	color: var(--hk-pom);
	font-size: 0.85rem;
}

/* ---------- ۴۰۴ ---------- */
.hk-404 {
	max-width: 900px;
	padding-block: 56px 72px;
}

.hk-404 > p {
	max-width: 60ch;
	color: var(--hk-muted);
}

.hk-404-mark {
	color: var(--hk-lapis-soft);
	font-size: clamp(4rem, 3rem + 6vw, 7.5rem);
	font-weight: 800;
	line-height: 1;
}

/* ---------- پاورقی ---------- */
.hk-footer {
	margin-top: 0;
	padding-top: 56px;
	background-color: var(--hk-lapis-deep);
	background-image: linear-gradient(to top, var(--hk-lapis-deep) 30%, color-mix(in srgb, var(--hk-lapis-deep) 80%, transparent)), var(--hk-girih);
	background-size: auto, 80px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.93rem;
}

.hk-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	padding-bottom: 44px;
}

.hk-footer .widget-title {
	color: #fff;
}

.hk-footer a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.hk-footer a:hover {
	color: var(--hk-saffron);
}

.hk-logo-footer .hk-logo-name {
	color: #fff;
}

.hk-logo-footer .hk-logo-mark {
	background: rgba(255, 255, 255, 0.08);
}

.hk-footer-about p {
	max-width: 44ch;
	line-height: 2;
}

.hk-social-footer a {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.hk-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hk-footer-links li {
	padding: 6px 0;
}

.hk-footer .widget li {
	border-color: rgba(255, 255, 255, 0.1);
}

.hk-footer .widget a,
.hk-footer .hk-mini-title {
	color: rgba(255, 255, 255, 0.85);
}

.hk-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.84rem;
}

.hk-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding-block: 18px;
}

.hk-footer-bottom p {
	margin: 0;
}

.hk-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* بازگشت به بالا */
.hk-to-top {
	position: fixed;
	bottom: 22px;
	left: 22px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hk-lapis);
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(20, 29, 69, 0.6);
	cursor: pointer;
}

.hk-to-top[hidden] {
	display: none;
}

/* ---------- کلاس‌های وردپرس ---------- */
.alignright {
	float: right;
	margin: 0.3em 0 1em 1.4em;
}

.alignleft {
	float: left;
	margin: 0.3em 1.4em 1em 0;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.sticky .hk-card-title a::before {
	content: "";
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	margin-inline-end: 0.35em;
	background: var(--hk-saffron);
	-webkit-mask: var(--hk-star) center / contain no-repeat;
	mask: var(--hk-star) center / contain no-repeat;
}

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1080px) {
	.hk-menu-toggle {
		display: grid;
		position: relative;
		z-index: 70;
	}

	.hk-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		width: min(84vw, 340px);
		padding: 92px 18px 28px;
		overflow-y: auto;
		background: #fff;
		box-shadow: -20px 0 40px -20px rgba(20, 29, 69, 0.35);
		transform: translateX(105%);
		visibility: hidden;
		transition: transform 0.3s ease, visibility 0.3s;
	}

	.is-nav-open .hk-nav {
		transform: none;
		visibility: visible;
	}

	.is-nav-open::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 45;
		background: rgba(14, 20, 48, 0.45);
	}

	.hk-menu {
		flex-direction: column;
		gap: 0;
	}

	.hk-menu a {
		padding: 12px 14px;
		white-space: normal;
		font-size: 1rem;
	}

	.hk-menu .sub-menu,
	.hk-menu .sub-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 14px 0 0;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.hk-menu .menu-item-has-children > a::after {
		display: none;
	}

	.hk-menu .current-menu-item > a {
		box-shadow: inset -3px 0 0 var(--hk-saffron);
		border-radius: var(--hk-radius-sm);
	}

	.hk-layout,
	.hk-layout-single {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.hk-article,
	.hk-comments {
		max-width: none;
	}

	.hk-sidebar-inner {
		position: static;
	}

	.hk-sidebar {
		padding-top: 32px;
		border-top: 1px solid var(--hk-line);
	}

	.hk-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.hk-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hk-footer-about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	body {
		font-size: 0.97rem;
	}

	.hk-wrap {
		padding-inline: 16px;
	}

	.hk-masthead-inner {
		min-height: 64px;
		gap: 12px;
	}

	.hk-logo-name {
		font-size: 1.3rem;
	}

	.hk-logo-mark {
		width: 36px;
		height: 36px;
	}

	.hk-tagline {
		display: none;
	}

	.hk-topbar .hk-social {
		display: none;
	}

	.hk-icon-btn {
		width: 42px;
		height: 42px;
	}

	.hk-search-submit span {
		display: none;
	}

	.hk-search-submit {
		padding: 0 16px;
	}

	.hk-hero {
		padding: 22px 0 32px;
	}

	.hk-lead-media {
		border-radius: 14px;
	}

	.hk-row {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 14px;
	}

	.hk-grid,
	.hk-grid-3 {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.hk-grid-3 .hk-card-excerpt {
		display: -webkit-box;
	}

	.hk-cat-block-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.hk-layout {
		padding-block: 28px 48px;
	}

	.hk-article-meta {
		gap: 12px 16px;
	}

	.hk-fontsize {
		margin-inline-start: 0;
	}

	.hk-content {
		line-height: 2;
	}

	.hk-content .alignleft,
	.hk-content .alignright {
		float: none;
		margin: 1.4em 0;
	}

	.hk-author-box {
		flex-direction: column;
		padding: 20px;
	}

	.comment-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.hk-comment-list .children {
		margin-inline-start: 14px;
	}

	.hk-footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.hk-footer-bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 721px) and (max-width: 1080px) {
	.hk-hero-side {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	.hk-hero-side .hk-row {
		grid-template-columns: minmax(0, 1fr);
		padding: 0;
		border: 0;
	}

	.hk-hero-side .hk-row-media {
		aspect-ratio: 16 / 10;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	.hk-header,
	.hk-sidebar,
	.hk-footer,
	.hk-share,
	.hk-related,
	.hk-comments,
	.hk-to-top,
	.hk-progress,
	.hk-fontsize,
	.hk-toc {
		display: none !important;
	}

	.hk-layout {
		display: block;
	}

	.hk-article {
		max-width: none;
	}
}
