/* ══════════════════════════════════════════════════════════
   مرکز راهنما
   ══════════════════════════════════════════════════════════ */

.sw-hc {
	padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
	font-family: var(--font-yekan);
}

.sw-hc__hero {
	text-align: center;
	margin-block-end: clamp(1.5rem, 3vw, 2rem);
}

.sw-hc__hero--compact {
	text-align: start;
}

.sw-hc__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.55rem, 2.5vw + 0.75rem, 2.15rem);
	font-weight: 800;
	color: var(--sw-ink);
}

.sw-hc__lede {
	margin: 0 auto;
	max-width: 52ch;
	color: var(--sw-muted);
	line-height: 1.75;
	font-size: clamp(0.9rem, 1vw + 0.72rem, 1rem);
}

.sw-hc__hero--compact .sw-hc__lede {
	margin-inline: 0;
}

.sw-hc__hero--with-image {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.sw-hc__cat-image {
	flex-shrink: 0;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 0.85rem;
	object-fit: cover;
	border: 1px solid var(--sw-border);
}

.sw-hc__hero-text {
	min-width: 0;
}

.sw-hc__search-wrap {
	position: relative;
	max-width: 28rem;
	margin: 1rem auto 0;
}

.sw-hc__search-icon {
	position: absolute;
	inset-inline-start: 0.95rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sw-muted);
	pointer-events: none;
}

.sw-hc__search {
	width: 100%;
	min-height: 2.85rem;
	padding-block: 0.65rem;
	padding-inline: 2.65rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--sw-border);
	background: var(--sw-surface);
	color: var(--sw-ink);
	font-family: inherit;
	font-size: 0.92rem;
}

.sw-hc__search:focus {
	outline: none;
	border-color: var(--sw-primary);
	box-shadow: 0 0 0 3px var(--sw-primary-soft);
}

.sw-hc-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: var(--sw-muted);
	margin-block-end: 1rem;
}

.sw-hc-breadcrumb a {
	color: var(--sw-primary-dark);
	text-decoration: none;
}

.sw-hc-breadcrumb a:hover {
	text-decoration: underline;
}

.sw-hc-section {
	margin-block-end: clamp(1.5rem, 3vw, 2rem);
}

.sw-hc-section__title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--sw-ink);
}

.sw-hc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 0.75rem;
}

.sw-hc-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem;
	border-radius: var(--sw-radius-md);
	border: 1px solid var(--sw-border);
	background: color-mix(in srgb, var(--sw-surface) 90%, transparent);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sw-hc-card:hover {
	border-color: color-mix(in srgb, var(--sw-primary) 40%, var(--sw-border));
	box-shadow: var(--sw-shadow);
	transform: translateY(-1px);
}

.sw-hc-card__icon {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.65rem;
	display: grid;
	place-items: center;
	background: var(--sw-primary-soft);
	color: var(--sw-primary-dark);
	overflow: hidden;
}

.sw-hc-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sw-hc-card__icon:has(.sw-hc-card__img) {
	background: transparent;
}

.sw-hc-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.sw-hc-card__name {
	font-weight: 800;
	color: var(--sw-ink);
}

.sw-hc-card__desc {
	font-size: 0.82rem;
	color: var(--sw-muted);
	line-height: 1.65;
}

.sw-hc-card__meta {
	font-size: 0.72rem;
	color: var(--sw-muted);
	font-weight: 600;
}

.sw-hc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.sw-hc-list__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-radius: var(--sw-radius-md);
	border: 1px solid var(--sw-border);
	background: var(--sw-surface);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.sw-hc-list__link:hover {
	border-color: color-mix(in srgb, var(--sw-primary) 35%, var(--sw-border));
	background: color-mix(in srgb, var(--sw-primary) 4%, var(--sw-surface));
}

.sw-hc-list__title {
	font-weight: 700;
	color: var(--sw-ink);
}

.sw-hc-list__cat {
	display: block;
	font-size: 0.75rem;
	color: var(--sw-muted);
	margin-top: 0.15rem;
}

.sw-hc__empty,
.sw-hc__no-results {
	text-align: center;
	color: var(--sw-muted);
}

.sw-hc-article__head {
	margin-block-end: 1.25rem;
}

.sw-hc-article__title {
	margin: 0;
	font-size: clamp(1.35rem, 2vw + 0.7rem, 1.85rem);
	font-weight: 800;
	color: var(--sw-ink);
	line-height: 1.35;
}

.sw-hc-article__content {
	max-width: 52rem;
	line-height: 1.9;
	color: var(--sw-ink);
	margin-block-end: clamp(1.5rem, 3vw, 2rem);
}

.sw-hc-article__content p {
	margin-block: 0 0.85rem;
	color: var(--sw-muted);
}

.sw-hc-article__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1.5rem;
}

.sw-hc-faq {
	margin-block: clamp(1.5rem, 3vw, 2rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--sw-border);
}

.sw-hc-faq__title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 800;
}

.sw-hc-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.sw-hc-faq__item {
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-md);
	background: var(--sw-surface);
	overflow: hidden;
}

.sw-hc-faq__q {
	padding: 0.85rem 1rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.sw-hc-faq__q::-webkit-details-marker {
	display: none;
}

.sw-hc-faq__a {
	padding: 0.75rem 1rem 0.85rem;
	color: var(--sw-muted);
	line-height: 1.8;
}

.sw-hc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
}

.sw-hc-btn--outline {
	border-color: var(--sw-border);
	color: var(--sw-ink);
	background: transparent;
}

.sw-hc-btn--ghost {
	background: var(--sw-primary-soft);
	color: var(--sw-primary-dark);
}

[data-theme="dark"] .sw-hc-card,
[data-theme="dark"] .sw-hc-list__link,
[data-theme="dark"] .sw-hc-faq__item {
	background: color-mix(in srgb, var(--sw-ink) 4%, var(--sw-surface));
}

[data-theme="light"] .sw-hc {
	background: transparent;
}

[data-theme="light"] .sw-hc-card,
[data-theme="light"] .sw-hc-list__link {
	background: color-mix(in srgb, var(--sw-surface) 82%, transparent);
}
