/* ==========================================================================
   سلام کلینیک — استایل اصلی
   ========================================================================== */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
	--bl-900: #0B1F54;
	--bl-800: #13307A;
	--bl-700: #1F4FD1;
	--bl-600: #2F63E8;
	--bl-200: #C9D8FF;
	--bl-100: #E7EEFF;
	--bl-50:  #F4F7FF;

	--pk-700: #C92C68;
	--pk-600: #E83E7C;
	--pk-500: #FF6B9D;
	--pk-200: #FFCADB;
	--pk-100: #FFE6EE;
	--pk-50:  #FFF5F8;

	--ink:   #101B3D;
	--text:  #353C55;
	--muted: #6B7290;
	--line:  #E4E8F3;

	--tone: var(--bl-700);
	--tone-soft: var(--bl-100);
	--tone-ink: var(--bl-800);

	--r-sm: 10px;
	--r-md: 18px;
	--r-lg: 28px;
	--r-pill: 999px;
	--arch: 999px 999px 22px 22px;

	--wrap: 1220px;
	--text-w: 740px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 132px;

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-md: 1.0625rem;
	--fs-lg: 1.25rem;
	--fs-xl: 1.5rem;
	--fs-2xl: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem);
	--fs-3xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
	--article-fs: 1.125rem;
}

.hc-tone-pink  { --tone: #E83E7C; --tone-soft: #FFE6EE; --tone-ink: #9E1F50; }
.hc-tone-berry { --tone: #B8235A; --tone-soft: #FBE1EB; --tone-ink: #7A1340; }
.hc-tone-blue  { --tone: #1F4FD1; --tone-soft: #E7EEFF; --tone-ink: #13307A; }
.hc-tone-sky   { --tone: #2586CF; --tone-soft: #E1F1FC; --tone-ink: #0F5A92; }

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.9; font-feature-settings: "kern"; text-rendering: optimizeLegibility; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
body.hc-lock { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); line-height: 1.55; font-weight: 800; letter-spacing: -.005em; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--pk-500); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hc-skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 999; background: var(--pk-600); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); font-weight: 700; }
.hc-skip:focus { top: 12px; }

.hc-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.hc-wrap--text { max-width: calc(820px + var(--gutter) * 2); }
.hc-icon { flex-shrink: 0; }

/* ---------- عناصر مشترک ---------- */
.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background-color .2s, transform .2s; }
.hc-btn:active { transform: translateY(1px); }
.hc-btn--pink { background: var(--pk-600); color: #fff; }
.hc-btn--pink:hover { background: var(--pk-700); }
.hc-btn--blue { background: var(--bl-700); color: #fff; }
.hc-btn--blue:hover { background: var(--bl-800); }

.hc-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--bl-800); cursor: pointer; transition: background-color .2s; }
.hc-icon-btn:hover { background: var(--bl-50); }

.hc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--tone-ink); line-height: 1.4; }
.hc-badge::before { content: ""; width: 8px; height: 11px; border-radius: 8px 8px 2px 2px; background: var(--tone); }
.hc-badge:hover { color: var(--tone); }

.hc-pill { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--r-pill); background: var(--tone-soft); color: var(--tone-ink); font-weight: 700; font-size: var(--fs-sm); transition: background-color .2s, color .2s; }
.hc-pill:hover, .hc-pill.is-active { background: var(--tone); color: #fff; }
.hc-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hc-pills--center { justify-content: center; }

.hc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: var(--fs-xs); color: var(--muted); }
.hc-meta > span + span { border-inline-start: 1px solid var(--pk-200); margin-inline-start: 10px; padding-inline-start: 10px; line-height: 1.1; }

.hc-link { display: inline-flex; font-size: var(--fs-sm); font-weight: 700; color: var(--bl-700); text-decoration: underline; text-decoration-color: var(--pk-200); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hc-link:hover { text-decoration-color: var(--pk-600); }

.hc-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--bl-100), var(--pk-100)); }

.hc-social { list-style: none; display: flex; gap: 6px; }
.hc-social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--bl-800); transition: background-color .2s, color .2s; }
.hc-social a:hover { background: var(--pk-600); color: #fff; }

/* ---------- هدر ---------- */
.hc-topbar { background: var(--bl-900); color: var(--bl-200); font-size: var(--fs-xs); }
.hc-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.hc-topbar__date { display: inline-flex; align-items: center; gap: 6px; }
.hc-topbar .hc-social a { width: 30px; height: 30px; color: var(--bl-200); }

.hc-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .hc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hc-header { top: 0; } }
.hc-header__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 80px; }
.hc-header__side { display: flex; align-items: center; gap: 8px; }
.hc-header__side--end { justify-content: flex-end; }

.hc-search-trigger { display: inline-flex; align-items: center; gap: 10px; min-width: 230px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bl-50); color: var(--muted); font-size: var(--fs-sm); cursor: pointer; transition: border-color .2s; }
.hc-search-trigger:hover { border-color: var(--bl-200); }
.hc-search-mobile, .hc-menu-toggle { display: none; }

.hc-logo img { max-height: 54px; width: auto; }
.hc-logo__link { display: inline-flex; align-items: center; gap: 10px; }
.hc-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.hc-logo__name { font-size: 1.75rem; font-weight: 900; color: var(--bl-800); line-height: 1.1; margin: 0; }
.hc-logo__tag { font-size: 11px; color: var(--pk-700); font-weight: 500; }

.hc-nav { border-top: 1px solid var(--line); }
.hc-nav__head { display: none; }
.hc-nav__list { list-style: none; display: flex; justify-content: center; gap: 6px; }
.hc-nav__list > li { position: relative; }
.hc-nav__list a { display: flex; align-items: center; gap: 8px; padding: 13px 16px; font-weight: 700; font-size: var(--fs-sm); color: var(--text); position: relative; transition: color .2s; }
.hc-nav__list > li[class*="hc-tone-"] > a::before { content: ""; width: 8px; height: 11px; border-radius: 8px 8px 2px 2px; background: var(--tone); }
.hc-nav__list > li > a::after { content: ""; position: absolute; inset-inline: 16px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--tone, var(--pk-600)); transform: scaleX(0); transition: transform .25s; }
.hc-nav__list > li > a:hover { color: var(--tone-ink); }
.hc-nav__list > li > a:hover::after,
.hc-nav__list > .current-menu-item > a::after,
.hc-nav__list > .current-menu-ancestor > a::after,
.hc-nav__list > .current-post-ancestor > a::after { transform: scaleX(1); }
.hc-nav__list .current-menu-item > a, .hc-nav__list .current-post-ancestor > a { color: var(--tone-ink); }
.hc-nav__list .sub-menu { list-style: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 20px 40px -24px rgba(11, 31, 84, .3); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.hc-nav__list li:hover > .sub-menu, .hc-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.hc-nav__list .sub-menu a { padding: 9px 12px; border-radius: var(--r-sm); }
.hc-nav__list .sub-menu a:hover { background: var(--bl-50); }

.hc-overlay { position: fixed; inset: 0; background: rgba(11, 31, 84, .45); z-index: 105; }

.hc-search { position: fixed; inset-inline: 0; top: 0; z-index: 130; background: #fff; padding: 36px 0 30px; box-shadow: 0 30px 60px -30px rgba(11, 31, 84, .45); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.admin-bar .hc-search { top: 32px; }
.hc-search__inner { position: relative; max-width: calc(760px + var(--gutter) * 2); }
.hc-search__hint { font-weight: 800; color: var(--ink); font-size: var(--fs-xl); margin-bottom: 14px; }
.hc-search__topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hc-search__close { position: absolute; top: -12px; inset-inline-end: var(--gutter); }

.hc-searchform { display: flex; align-items: center; gap: 6px; padding: 6px; padding-inline-start: 20px; background: #fff; border: 2px solid var(--bl-200); border-radius: var(--r-pill); }
.hc-searchform:focus-within { border-color: var(--bl-700); }
.hc-searchform__input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 8px 0; font-size: var(--fs-md); }
.hc-searchform__input::-webkit-search-cancel-button { display: none; }
.hc-searchform__btn { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pk-600); color: #fff; cursor: pointer; }
.hc-searchform__btn:hover { background: var(--pk-700); }

/* ---------- هیرو ---------- */
.hc-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px); }
.hc-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.hc-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(18px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--tone-soft); }
.hc-feature__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: #fff; }
.hc-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hc-feature:hover .hc-feature__media img { transform: scale(1.04); }
.hc-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hc-feature__title { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.45; text-wrap: balance; }
.hc-feature__title a:hover { color: var(--tone-ink); }
.hc-feature__excerpt { color: var(--text); font-size: var(--fs-md); line-height: 2; }
.hc-feature__by { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.hc-feature__by img { border-radius: 50%; border: 2px solid #fff; }
.hc-feature__by strong { display: block; font-size: var(--fs-sm); color: var(--ink); }

.hc-hero__side { display: flex; flex-direction: column; }
.hc-hero__side-title { font-size: var(--fs-lg); font-weight: 900; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }

/* کارت افقی */
.hc-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.hc-line + .hc-line { border-top: 1px solid var(--line); }
.hc-line__media { position: relative; flex: 0 0 78px; width: 78px; aspect-ratio: 5 / 6; border-radius: var(--arch); overflow: hidden; background: var(--tone-soft); }
.hc-line__media img { width: 100%; height: 100%; object-fit: cover; }
.hc-line__media .hc-thumb-fallback svg { width: 30px; height: 30px; }
.hc-line__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hc-line__cat { font-size: var(--fs-xs); font-weight: 700; color: var(--tone); }
.hc-line__title { font-size: var(--fs-md); font-weight: 700; line-height: 1.7; }
.hc-line__title a:hover { color: var(--tone-ink); }
.hc-line__rank { flex: 0 0 auto; font-size: 2.75rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--pk-500); min-width: 34px; text-align: center; }

/* ---------- موضوعات ---------- */
.hc-topics { padding-bottom: clamp(20px, 3vw, 30px); }
.hc-topics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hc-topic { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: var(--r-md); background: var(--tone-soft); overflow: hidden; transition: transform .25s; }
.hc-topic:hover { transform: translateY(-3px); }
.hc-topic__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 999px 999px 10px 10px; background: var(--tone); color: #fff; margin-bottom: 6px; }
.hc-topic__name { font-size: var(--fs-lg); font-weight: 900; color: var(--tone-ink); }
.hc-topic__desc { font-size: var(--fs-xs); color: var(--text); line-height: 1.9; }
.hc-topic__count { margin-top: auto; padding-top: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--tone); }

/* ---------- بخش‌ها ---------- */
.hc-section { padding: clamp(36px, 5vw, 64px) 0; }
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.hc-head__title { font-size: var(--fs-2xl); font-weight: 900; display: flex; align-items: center; gap: 12px; }
.hc-head__title::before { content: ""; width: 14px; height: 20px; border-radius: 14px 14px 3px 3px; background: var(--pk-600); box-shadow: -8px 0 0 var(--bl-700); margin-inline-end: 8px; }
[dir="ltr"] .hc-head__title::before { box-shadow: 8px 0 0 var(--bl-700); }

.hc-grid { display: grid; gap: clamp(22px, 2.6vw, 34px) clamp(16px, 2vw, 26px); }
.hc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* کارت */
.hc-card { display: flex; flex-direction: column; gap: 14px; }
.hc-card__media { position: relative; display: block; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 180px 180px var(--r-md) var(--r-md); background: var(--tone-soft); }
.hc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hc-card:hover .hc-card__media img { transform: scale(1.05); }
.hc-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hc-card__title { font-size: var(--fs-lg); font-weight: 800; line-height: 1.65; }
.hc-card__title a { background-image: linear-gradient(var(--tone-soft), var(--tone-soft)); background-repeat: no-repeat; background-size: 0 45%; background-position: right 85%; transition: background-size .35s; }
.hc-card__title a:hover { background-size: 100% 45%; }
.hc-card__excerpt { color: var(--muted); font-size: var(--fs-sm); line-height: 2; }

.hc-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding-bottom: clamp(10px, 2vw, 20px); }
.hc-card--wide .hc-card__media { aspect-ratio: 16 / 10; border-radius: 360px 360px var(--r-lg) var(--r-lg); }
.hc-card--wide .hc-card__title { font-size: var(--fs-3xl); line-height: 1.45; }
.hc-card--wide .hc-card__excerpt { font-size: var(--fs-md); }

/* ---------- محاسبه‌گر بارداری ---------- */
.hc-calc-band { background: var(--bl-900); color: var(--bl-100); padding: clamp(40px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.hc-calc-band::before { content: ""; position: absolute; width: 420px; height: 560px; border-radius: 999px 999px 0 0; border: 60px solid rgba(255, 107, 157, .12); inset-inline-end: -120px; bottom: -200px; }
.hc-calc { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.hc-calc__icon { width: 60px; height: 72px; display: grid; place-items: center; border-radius: 999px 999px 14px 14px; background: var(--pk-600); color: #fff; margin-bottom: 18px; }
.hc-calc__title { font-size: var(--fs-2xl); font-weight: 900; color: #fff; margin-bottom: 10px; }
.hc-calc__intro p { line-height: 2; }
.hc-calc__form { background: #fff; color: var(--text); padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); }
.hc-calc__form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.hc-calc__form legend { font-weight: 800; color: var(--ink); margin-bottom: 12px; padding: 0; }
.hc-calc__fields { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; }
.hc-calc__fields label span { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 4px; }
.hc-calc__fields select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bl-50); cursor: pointer; }
.hc-calc__fields select:focus { border-color: var(--bl-700); outline: none; }
.hc-calc__form > .hc-btn { width: 100%; min-height: 50px; font-size: var(--fs-md); }
.hc-calc__result { margin-top: 20px; padding: 18px; border-radius: var(--r-md); background: var(--pk-50); }
.hc-calc__week { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.hc-calc__week strong { font-size: var(--fs-3xl); font-weight: 900; color: var(--pk-700); line-height: 1.2; }
.hc-calc__week span { color: var(--text); font-weight: 700; }
.hc-calc__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.hc-calc__facts div { background: #fff; border-radius: var(--r-sm); padding: 10px 12px; }
.hc-calc__facts dt { font-size: var(--fs-xs); color: var(--muted); }
.hc-calc__facts dd { margin: 0; font-weight: 800; color: var(--ink); }
.hc-calc__bar { height: 8px; border-radius: 8px; background: #fff; overflow: hidden; }
.hc-calc__bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(to left, var(--bl-700), var(--pk-500)); transition: width .6s ease; }
.hc-calc__more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--bl-700); font-size: var(--fs-sm); text-decoration: underline; text-decoration-color: var(--pk-200); text-underline-offset: 5px; }
.hc-calc__error { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: #FFF1F1; color: #B42318; font-size: var(--fs-sm); }
.hc-calc__note { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.9; }

.hc-calc-inline { margin-bottom: clamp(32px, 5vw, 56px); }
.hc-calc--compact { background: var(--tone-soft); padding: clamp(20px, 3vw, 34px); border-radius: var(--r-lg); color: var(--text); }
.hc-calc--compact .hc-calc__title { color: var(--ink); font-size: var(--fs-xl); }
.hc-calc--compact .hc-calc__icon { background: var(--tone); }

/* ---------- تب‌ها ---------- */
.hc-tabs { background: var(--pk-50); }
.hc-tabs__list { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: var(--r-pill); background: #fff; }
.hc-tabs__tab { border: 0; background: transparent; padding: 9px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); color: var(--text); cursor: pointer; transition: background-color .2s, color .2s; }
.hc-tabs__tab:hover { color: var(--tone-ink); background: var(--tone-soft); }
.hc-tabs__tab[aria-selected="true"] { background: var(--tone); color: #fff; }
.hc-tabs__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 52px); align-items: start; }
.hc-tabs__panel[hidden] { display: none; }
.hc-card--side .hc-card__media { aspect-ratio: 16 / 11; border-radius: 300px 300px var(--r-md) var(--r-md); }
.hc-card--side .hc-card__title { font-size: var(--fs-xl); }
.hc-tabs__lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; align-content: start; }
.hc-tabs__lines .hc-line { border-top: 1px solid var(--pk-200); }
.hc-tabs__lines .hc-link { grid-column: 1 / -1; margin-top: 14px; }

/* ---------- پربازدیدها ---------- */
.hc-popular__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hc-popular__list .hc-line { border: 0; padding: 0; align-items: flex-start; }
.hc-popular__list .hc-line__media { display: none; }
.hc-popular__list .hc-line__title { font-size: var(--fs-sm); }

/* ---------- سربرگ آرشیو ---------- */
.hc-archive-head { background: var(--tone-soft); padding: clamp(28px, 4vw, 52px) 0; position: relative; overflow: hidden; }
.hc-archive-head::after { content: ""; position: absolute; width: 240px; height: 320px; border-radius: 999px 999px 0 0; border: 34px solid var(--tone); opacity: .1; inset-inline-end: 6%; bottom: -80px; }
.hc-archive-head .hc-wrap { position: relative; z-index: 1; }
.hc-archive-head__title { font-size: var(--fs-3xl); font-weight: 900; color: var(--tone-ink); line-height: 1.4; }
.hc-archive-head__desc { margin-top: 10px; max-width: 44em; font-size: var(--fs-md); line-height: 2; color: var(--text); }
.hc-archive-head__role { color: var(--tone); font-weight: 700; }
.hc-archive-head__author { display: flex; align-items: center; gap: 20px; }
.hc-archive-head__author img { border-radius: var(--arch); }
.hc-archive-head .hc-searchform { margin-top: 20px; }

.hc-breadcrumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 14px; }
.hc-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.hc-breadcrumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--pk-500); }
[dir="ltr"] .hc-breadcrumbs li + li::before { content: "›"; }
.hc-breadcrumbs a:hover { color: var(--bl-700); }
.hc-breadcrumbs li[aria-current] span { display: inline-block; max-width: 42ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: var(--r-pill); font-weight: 700; background: var(--bl-50); color: var(--bl-800); }
.pagination a.page-numbers:hover { background: var(--bl-100); }
.pagination .page-numbers.current { background: var(--pk-600); color: #fff; }
.pagination .page-numbers.dots { background: none; }

.hc-empty { max-width: 560px; margin: 10px auto; text-align: center; padding: 40px 24px; border-radius: var(--r-lg); background: var(--bl-50); }
.hc-empty svg { margin: 0 auto 14px; }
.hc-empty h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.hc-empty p { color: var(--muted); margin-bottom: 18px; }

/* ==========================================================================
   صفحه مقاله
   ========================================================================== */
.hc-single__header { padding-top: clamp(24px, 4vw, 44px); }
.hc-single__head { max-width: calc(860px + var(--gutter) * 2); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hc-single__head .hc-breadcrumbs ol { justify-content: center; }
.hc-single__title { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.5; margin-top: 12px; text-wrap: balance; }
.hc-single__lead { margin-top: 14px; font-size: var(--fs-lg); line-height: 2; color: var(--muted); max-width: 40em; }

.hc-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; margin-top: 26px; }
.hc-byline__item { display: flex; align-items: center; gap: 10px; padding-inline: 20px; text-align: start; line-height: 1.45; }
.hc-byline__item + .hc-byline__item { border-inline-start: 1px solid var(--line); }
.hc-byline__item img { border-radius: 50%; }
.hc-byline__item small { display: block; font-size: 11px; color: var(--muted); }
.hc-byline__item strong { display: block; font-size: var(--fs-sm); color: var(--ink); font-weight: 700; }
a.hc-byline__item:hover strong { color: var(--bl-700); }
.hc-byline__badge { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bl-100); color: var(--bl-700); }

.hc-single__figure { margin-top: clamp(24px, 4vw, 40px); max-width: calc(1180px + var(--gutter) * 2); }
.hc-single__figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 50% 50% var(--r-lg) var(--r-lg) / 26% 26% var(--r-lg) var(--r-lg); background: var(--tone-soft); }
.hc-single__figure figcaption { margin-top: 10px; text-align: center; font-size: var(--fs-xs); color: var(--muted); }

/* نوار مطالعه */
.hc-readbar { position: sticky; top: calc(var(--header-h) + 12px); z-index: 60; margin: clamp(20px, 3vw, 30px) auto 0; width: min(calc(100% - var(--gutter) * 2), 820px); }
.admin-bar .hc-readbar { top: calc(var(--header-h) + 44px); }
.hc-readbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 7px 8px; padding-inline-start: 10px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: 0 16px 34px -26px rgba(11, 31, 84, .5); }
.hc-readbar__progress { position: absolute; inset-inline: 28px; bottom: 0; height: 3px; border-radius: 3px; overflow: hidden; }
.hc-readbar__progress span { display: block; height: 100%; width: 100%; background: var(--pk-600); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .hc-readbar__progress span { transform-origin: left; }
.hc-readbar__toc { position: relative; min-width: 0; flex: 1; }
.hc-readbar__toggle { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 440px; min-height: 42px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--bl-50); color: var(--bl-800); cursor: pointer; text-align: start; }
.hc-readbar__toggle:hover { background: var(--bl-100); }
.hc-readbar__label { font-weight: 800; font-size: var(--fs-sm); white-space: nowrap; }
.hc-readbar__current { flex: 1; min-width: 0; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-readbar__current:not(:empty)::before { content: "/"; margin-inline-end: 6px; color: var(--pk-500); }
.hc-readbar__toggle .hc-icon--chevron { transition: transform .2s; }
.hc-readbar__toggle[aria-expanded="true"] .hc-icon--chevron { transform: rotate(180deg); }
.hc-readbar__title { padding-inline: 12px; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hc-readbar__panel { position: absolute; top: calc(100% + 12px); inset-inline-start: -10px; width: min(460px, calc(100vw - 32px)); max-height: min(60vh, 460px); overflow-y: auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 30px 50px -30px rgba(11, 31, 84, .45); }
.hc-toc__list { list-style: none; counter-reset: toc; }
.hc-toc__item a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); line-height: 1.8; color: var(--text); }
.hc-toc__item--h3 a { padding-inline-start: 28px; font-size: var(--fs-xs); color: var(--muted); }
.hc-toc__item a:hover { background: var(--bl-50); color: var(--bl-800); }
.hc-toc__item a.is-active { background: var(--pk-50); color: var(--pk-700); font-weight: 700; }
.hc-readbar__tools { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.hc-readbar__tools .hc-icon-btn { width: 36px; height: 36px; }
.hc-readbar__aa { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding-inline: 2px; }
.hc-readbar__sep { width: 1px; height: 24px; background: var(--line); margin-inline: 6px; }
.hc-share { display: flex; gap: 2px; }
.hc-share__btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--bl-800); cursor: pointer; transition: background-color .2s, color .2s; }
.hc-share__btn:hover { background: var(--pk-600); color: #fff; }
.hc-share__done { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.hc-share__btn.is-copied .hc-share__done { opacity: 1; }

.hc-single__body { max-width: calc(var(--text-w) + var(--gutter) * 2); padding-top: clamp(30px, 4vw, 44px); padding-bottom: clamp(36px, 5vw, 60px); }

.hc-summary { margin-bottom: 34px; padding: 22px 26px; border-radius: var(--r-md); background: var(--bl-50); }
.hc-summary__title { font-size: var(--fs-md); font-weight: 900; color: var(--bl-800); margin-bottom: 10px; }
.hc-summary ul { list-style: none; display: grid; gap: 8px; }
.hc-summary li { position: relative; padding-inline-start: 22px; line-height: 1.95; color: var(--ink); }
.hc-summary li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 9px; height: 12px; border-radius: 9px 9px 2px 2px; background: var(--pk-500); }

/* تایپوگرافی محتوا */
.hc-content { font-size: var(--article-fs); line-height: 2.15; font-weight: 400; color: var(--text); overflow-wrap: break-word; }
.hc-content > * + * { margin-top: 1.2em; }
.hc-content h2, .hc-content h3, .hc-content h4 { scroll-margin-top: calc(var(--header-h) + 100px); }
.hc-content h2 { font-size: 1.5em; font-weight: 900; line-height: 1.6; margin-top: 2em; }
.hc-content h2::before { content: ""; display: inline-block; width: .42em; height: .6em; margin-inline-end: .45em; border-radius: 1em 1em .12em .12em; background: var(--tone); vertical-align: .05em; }
.hc-content h3 { font-size: 1.2em; font-weight: 800; line-height: 1.7; margin-top: 1.7em; color: var(--tone-ink); }
.hc-content h4 { font-size: 1.05em; font-weight: 800; margin-top: 1.5em; }
.hc-content :is(h2, h3, h4) + * { margin-top: .6em; }
.hc-content a { color: var(--bl-700); text-decoration: underline; text-decoration-color: var(--pk-200); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.hc-content a:hover { text-decoration-color: var(--pk-600); }
.hc-content strong, .hc-content b { font-weight: 800; color: var(--ink); }
.hc-content ul, .hc-content ol { padding-inline-start: 1.4em; }
.hc-content li + li { margin-top: .45em; }
.hc-content ul li::marker { color: var(--pk-600); }
.hc-content ol { list-style-type: persian; }
.hc-content ol li::marker { color: var(--bl-700); font-weight: 800; }
.hc-content blockquote, .hc-content .wp-block-quote { position: relative; margin-inline: 0; padding: 28px 30px 24px; padding-inline-start: 70px; border-radius: var(--r-lg); background: var(--pk-50); color: var(--ink); font-weight: 500; font-size: 1.05em; border: 0; }
.hc-content blockquote::before { content: ""; position: absolute; inset-inline-start: 28px; top: 30px; width: 16px; height: 24px; border-radius: 16px 16px 3px 3px; background: var(--pk-500); box-shadow: -10px 8px 0 -2px var(--bl-700); }
[dir="ltr"] .hc-content blockquote::before { box-shadow: 10px 8px 0 -2px var(--bl-700); }
.hc-content blockquote cite { display: block; margin-top: 8px; font-size: .8em; font-style: normal; color: var(--muted); }
.hc-content img { border-radius: var(--r-md); height: auto; }
.hc-content figure { margin-inline: 0; }
.hc-content figcaption, .hc-content .wp-element-caption { margin-top: 8px; text-align: center; font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }
.hc-content hr { border: 0; width: 60px; height: 14px; margin: 2.4em auto; background: radial-gradient(circle, var(--pk-500) 3px, transparent 3.5px) left center / 20px 14px repeat-x; }
.hc-content table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.8; }
.hc-content .wp-block-table, .hc-table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.hc-content th { background: var(--bl-50); color: var(--bl-800); font-weight: 800; }
.hc-content th, .hc-content td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.hc-content tbody tr:last-child td { border-bottom: 0; }
.hc-content code { background: var(--bl-50); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.hc-content pre { direction: ltr; text-align: left; background: var(--bl-900); color: #fff; padding: 18px; border-radius: var(--r-md); overflow-x: auto; line-height: 1.7; }
.hc-content pre code { background: none; padding: 0; }
.hc-content iframe, .hc-content video { max-width: 100%; border-radius: var(--r-md); }
.hc-content .alignwide { margin-inline: -80px; max-width: calc(100% + 160px); }
.hc-content .aligncenter { margin-inline: auto; }
.hc-content .alignright { float: right; margin: .4em 0 1em 1.5em; }
.hc-content .alignleft { float: left; margin: .4em 1.5em 1em 0; }
.hc-content::after { content: ""; display: table; clear: both; }
.hc-content .wp-block-button__link { background: var(--pk-600); color: #fff; text-decoration: none; border-radius: var(--r-pill); padding: 12px 26px; font-weight: 700; }

.hc-page-links { margin-top: 24px; font-weight: 700; }

/* اعتماد */
.hc-trust { display: grid; gap: 12px; margin-top: 44px; }
.hc-trust__review { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--bl-200); }
.hc-trust__icon { flex: 0 0 48px; height: 56px; display: grid; place-items: center; border-radius: 999px 999px 10px 10px; background: var(--bl-700); color: #fff; }
.hc-trust__review strong { display: block; color: var(--ink); }
.hc-trust__review strong a:hover { color: var(--bl-700); }
.hc-trust__review span { display: block; font-size: var(--fs-xs); color: var(--bl-700); font-weight: 700; }
.hc-trust__review p { margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.9; }
.hc-trust__sources { border-radius: var(--r-md); background: var(--bl-50); }
.hc-trust__sources summary { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-weight: 700; font-size: var(--fs-sm); color: var(--bl-800); cursor: pointer; list-style: none; }
.hc-trust__sources summary::-webkit-details-marker { display: none; }
.hc-trust__sources summary .hc-icon--chevron { margin-inline-start: auto; transition: transform .2s; }
.hc-trust__sources[open] summary .hc-icon--chevron { transform: rotate(180deg); }
.hc-trust__sources ol { padding: 0 20px 16px; padding-inline-start: 42px; font-size: var(--fs-xs); line-height: 2.1; color: var(--muted); }
.hc-trust__sources a { color: var(--bl-700); word-break: break-word; }
.hc-trust__sources a:hover { text-decoration: underline; }
.hc-trust__note { display: flex; gap: 10px; padding: 14px 20px; border-radius: var(--r-md); background: var(--pk-50); color: var(--pk-700); font-size: var(--fs-sm); line-height: 1.95; }
.hc-trust__note .hc-icon { margin-top: 5px; }

.hc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hc-tags a { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; }
.hc-tags a::before { content: "#"; color: var(--pk-600); margin-inline-end: 2px; }
.hc-tags a:hover { border-color: var(--pk-500); color: var(--pk-700); }

.hc-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 30px; padding: 24px; border-radius: var(--r-lg); background: var(--bl-900); color: var(--bl-100); }
.hc-author img { border-radius: var(--arch); flex-shrink: 0; width: 80px; height: 96px; object-fit: cover; }
.hc-author__label { font-size: 11px; color: var(--pk-500); font-weight: 700; }
.hc-author__name { font-size: var(--fs-lg); color: #fff; }
.hc-author__name a:hover { color: var(--pk-500); }
.hc-author__role { font-size: var(--fs-sm); color: var(--bl-200); font-weight: 700; }
.hc-author__bio { margin-top: 8px; font-size: var(--fs-sm); line-height: 2; }

.hc-after-post { margin-top: 30px; }
.hc-widget__title { font-size: var(--fs-md); margin-bottom: 10px; }
.hc-related { background: var(--tone-soft); }

/* دیدگاه‌ها */
.hc-comments-wrap { padding-top: clamp(36px, 5vw, 56px); }
.hc-comments__title { font-size: var(--fs-xl); font-weight: 900; margin-bottom: 16px; }
.hc-comments__note { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 14px; }
.hc-comment-list, .hc-comment-list .children { list-style: none; }
.hc-comment-list .children { padding-inline-start: clamp(16px, 5vw, 44px); }
.hc-comment-list .comment-body { margin-bottom: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--bl-50); }
.hc-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.hc-comment-list .comment-author img { border-radius: 50%; }
.hc-comment-list .says { display: none; }
.hc-comment-list .comment-metadata { margin: 2px 0 8px; font-size: var(--fs-xs); color: var(--muted); }
.hc-comment-list .reply a { font-size: var(--fs-xs); font-weight: 700; color: var(--pk-700); }
.bypostauthor > .comment-body { background: var(--pk-50); }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; outline: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--bl-700); box-shadow: 0 0 0 3px var(--bl-100); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 500; font-size: var(--fs-xs); }

/* برگه و ۴۰۴ */
.hc-page__figure img { width: 100%; border-radius: var(--r-lg); margin-bottom: 28px; }
.hc-404 { padding: clamp(50px, 8vw, 110px) 0; text-align: center; }
.hc-404__arch { width: 170px; height: 210px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 999px 999px 24px 24px; background: linear-gradient(170deg, var(--pk-100), var(--bl-100)); }
.hc-404__arch span { font-size: 3.2rem; font-weight: 900; color: var(--bl-800); }
.hc-404 .hc-archive-head__title { color: var(--ink); }
.hc-404 .hc-archive-head__desc { margin-inline: auto; }
.hc-404 .hc-searchform { max-width: 620px; margin: 24px auto 0; }

/* ---------- فوتر ---------- */
.hc-footer { background: var(--bl-50); padding-top: clamp(44px, 6vw, 72px); }
.hc-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); padding-bottom: clamp(32px, 5vw, 52px); }
.hc-footer__brand p { margin: 16px 0 14px; font-size: var(--fs-sm); line-height: 2.05; max-width: 34em; }
.hc-footer__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.hc-footer__cat { display: flex; flex-direction: column; padding: 16px 18px; border-radius: var(--r-md); background: var(--tone-soft); transition: background-color .2s; }
.hc-footer__cat strong { color: var(--tone-ink); font-weight: 800; }
.hc-footer__cat span { font-size: var(--fs-xs); color: var(--tone); font-weight: 700; }
.hc-footer__cat:hover { background: var(--tone); }
.hc-footer__cat:hover strong, .hc-footer__cat:hover span { color: #fff; }
.hc-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px 0 22px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.hc-footer__menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hc-footer__menu a:hover { color: var(--pk-700); }
.hc-footer__note { display: inline-flex; align-items: center; gap: 6px; color: var(--bl-700); font-weight: 700; }
.hc-footer__copy a:hover { color: var(--pk-700); }

/* ==========================================================================
   واکنش‌گرا
   ========================================================================== */
@media (max-width: 1140px) {
	.hc-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.hc-hero__side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
	.hc-hero__side-title { grid-column: 1 / -1; }
	.hc-hero__side .hc-line + .hc-line { border-top: 0; }
	.hc-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hc-popular__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hc-content .alignwide { margin-inline: 0; max-width: 100%; }
}

@media (max-width: 960px) {
	.hc-topbar { display: none; }
	.hc-header__main { grid-template-columns: auto 1fr auto; min-height: 64px; gap: 6px; }
	.hc-logo { justify-self: center; }
	.hc-menu-toggle, .hc-search-mobile { display: inline-grid; }
	.hc-search-trigger { display: none; }
	.hc-header__cta { display: none; }
	.hc-logo__name { font-size: 1.45rem; }
	.hc-logo__mark { width: 34px; height: 34px; }

	.hc-nav { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 110; width: min(86vw, 340px); background: #fff; border: 0; padding: 16px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
	[dir="ltr"] .hc-nav { transform: translateX(-100%); }
	.hc-nav.is-open { transform: none; visibility: visible; }
	.hc-nav__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
	.hc-nav__title { flex: 1; font-weight: 800; color: var(--bl-800); }
	.hc-nav .hc-wrap { padding: 0; }
	.hc-nav__list { flex-direction: column; gap: 4px; }
	.hc-nav__list a { padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-md); }
	.hc-nav__list > li > a::after { display: none; }
	.hc-nav__list > li[class*="hc-tone-"] > a { background: var(--tone-soft); color: var(--tone-ink); }
	.hc-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 4px 12px 0 0; min-width: 0; }

	.hc-feature { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
	.hc-hero__side { grid-template-columns: minmax(0, 1fr); }
	.hc-hero__side .hc-line + .hc-line { border-top: 1px solid var(--line); }
	.hc-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hc-grid--4, .hc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hc-card--wide { grid-template-columns: minmax(0, 1fr); }
	.hc-calc { grid-template-columns: minmax(0, 1fr); }
	.hc-tabs__panel { grid-template-columns: minmax(0, 1fr); }
	.hc-footer__top { grid-template-columns: minmax(0, 1fr); }
	.hc-readbar__label { display: none; }
	.hc-readbar__current:not(:empty)::before { display: none; }
	.hc-readbar__current:empty::after { content: "فهرست مطالب"; color: var(--bl-800); font-weight: 700; }
}

@media (max-width: 640px) {
	:root { --article-fs: 1.0625rem; }
	.hc-feature { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 20px; }
	.hc-feature__media { aspect-ratio: 5 / 4; border-radius: 999px 999px 22px 22px / 60% 60% 22px 22px; }
	.hc-feature__title { font-size: var(--fs-2xl); }
	.hc-topics__grid { gap: 10px; }
	.hc-topic { padding: 14px; }
	.hc-topic__desc { display: none; }
	.hc-topic__icon { width: 38px; height: 38px; }
	.hc-topic__name { font-size: var(--fs-md); }
	.hc-grid--4, .hc-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.hc-grid--4 .hc-card:not(.hc-card--wide), .hc-grid--3 .hc-card:not(.hc-card--wide) { flex-direction: row; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
	.hc-grid--4 .hc-card:not(.hc-card--wide) .hc-card__media, .hc-grid--3 .hc-card:not(.hc-card--wide) .hc-card__media { flex: 0 0 100px; aspect-ratio: 5 / 6; border-radius: var(--arch); }
	.hc-grid--4 .hc-card:not(.hc-card--wide) .hc-card__title, .hc-grid--3 .hc-card:not(.hc-card--wide) .hc-card__title { font-size: var(--fs-md); }
	.hc-card--wide { margin-bottom: 14px; }
	.hc-card--wide .hc-card__title { font-size: var(--fs-2xl); }
	.hc-tabs__list { border-radius: var(--r-md); }
	.hc-tabs__lines { grid-template-columns: minmax(0, 1fr); }
	.hc-popular__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.hc-calc__fields { grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; }
	.hc-calc__fields select { padding: 0 8px; }
	.hc-single__head { text-align: start; align-items: flex-start; }
	.hc-single__head .hc-breadcrumbs ol { justify-content: flex-start; }
	.hc-byline { justify-content: flex-start; gap: 12px; }
	.hc-byline__item { padding-inline: 0; }
	.hc-byline__item + .hc-byline__item { border: 0; }
	.hc-byline__item--plain { width: calc(50% - 6px); }
	.hc-single__figure { padding-inline: 0; }
	.hc-single__figure img { aspect-ratio: 4 / 3; border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
	.hc-readbar { width: calc(100% - 20px); }
	.hc-readbar__aa, .hc-readbar__sep, .hc-readbar__tools [data-font] { display: none; }
	.hc-share .hc-share__btn:not([data-copy]):not(:first-child) { display: none; }
	.hc-content blockquote { padding: 22px; padding-inline-start: 58px; }
	.hc-content blockquote::before { inset-inline-start: 22px; top: 26px; width: 13px; height: 20px; box-shadow: -8px 6px 0 -2px var(--bl-700); }
	.hc-author { flex-direction: column; }
	.hc-footer__cats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hc-footer__bottom { flex-direction: column; align-items: flex-start; }
	.hc-archive-head__author { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
	.hc-topbar, .hc-header, .hc-footer, .hc-readbar, .hc-related, .hc-comments-wrap { display: none !important; }
}

/* ==========================================================================
   کلینیک‌ها
   ========================================================================== */
.hc-btn--sm { min-height: 38px; padding: 8px 14px; font-size: var(--fs-xs); }
.hc-btn--soft { background: var(--bl-50); color: var(--bl-800); }
.hc-btn--soft:hover { background: var(--bl-100); }

.hc-nav__list > .hc-nav__clinics > a { color: var(--pk-700); }
.hc-nav__list > .hc-nav__clinics > a::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(var(--pk-600), var(--pk-600)) center / 8px 2px no-repeat, linear-gradient(var(--pk-600), var(--pk-600)) center / 2px 8px no-repeat; border: 2px solid var(--pk-600); box-sizing: border-box; }

/* کارت کلینیک */
.hc-clinic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hc-clinic-card { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 14px 16px; padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.hc-clinic-card:hover { border-color: var(--tone-soft); box-shadow: 0 18px 36px -28px rgba(11, 31, 84, .45); }
.hc-clinic-card__media { position: relative; grid-row: 1 / 2; display: block; width: 92px; aspect-ratio: 5 / 6; border-radius: var(--arch); overflow: hidden; background: var(--tone-soft); box-shadow: 0 0 0 4px var(--tone-soft); }
.hc-clinic-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hc-clinic-card__media .hc-thumb-fallback svg { width: 34px; height: 34px; }
.hc-clinic-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-self: center; }
.hc-clinic-card__spec { font-size: var(--fs-xs); font-weight: 700; color: var(--tone); }
.hc-clinic-card__title { font-size: var(--fs-md); font-weight: 800; line-height: 1.6; }
.hc-clinic-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hc-clinic-card__title a:hover { color: var(--tone-ink); }
.hc-clinic-card__doctor { font-size: var(--fs-xs); color: var(--text); line-height: 1.8; }
.hc-clinic-card__city { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.hc-clinic-card__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 1; }
.hc-clinic-card__actions .hc-btn:only-child { grid-column: 1 / -1; }
.hc-clinic-card--compact { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto; padding: 12px; border-radius: var(--r-md); }
.hc-clinic-card--compact .hc-clinic-card__media { width: 64px; box-shadow: none; }

/* صفحه اصلی */
.hc-clinics-home { background: linear-gradient(to bottom, #fff, var(--bl-50)); }
.hc-clinics-home__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hc-clinics-home__intro p { margin-top: 12px; line-height: 2; }
.hc-clinics-home__intro .hc-pills { margin-top: 18px; }
.hc-clinics-home__btns { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 22px; }
.hc-clinics-home__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hc-clinics-home__list .hc-clinic-card { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding-top: 22px; }
.hc-clinics-home__list .hc-clinic-card__media { width: 104px; }
.hc-clinics-home__list .hc-clinic-card__body { align-items: center; }
.hc-clinics-home__list .hc-clinic-card__actions { width: 100%; }
.hc-clinics-home__list .hc-empty { grid-column: 1 / -1; margin: 0; }

/* مقاله */
.hc-post-clinics { margin-top: 30px; padding: 20px; border-radius: var(--r-lg); background: var(--tone-soft); }
.hc-post-clinics__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hc-post-clinics__head h2 { font-size: var(--fs-md); font-weight: 800; color: var(--tone-ink); }
.hc-post-clinics__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hc-post-clinics .hc-clinic-card { border-color: transparent; }

/* آرشیو */
.hc-clinics-head { padding-bottom: clamp(24px, 3vw, 36px); }
.hc-finder { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 24px; padding: 12px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 20px 40px -32px rgba(11, 31, 84, .5); }
.hc-finder__field span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin: 0 6px 4px; }
.hc-finder__field input, .hc-finder__field select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bl-50); outline: none; }
.hc-finder__field input:focus, .hc-finder__field select:focus { border-color: var(--bl-700); background: #fff; }
.hc-finder .hc-btn { height: 48px; }
.hc-results { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; font-weight: 700; color: var(--ink); }
.hc-clinic-join { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 44px; padding: 22px 26px; border-radius: var(--r-lg); background: var(--bl-900); color: var(--bl-100); }
.hc-clinic-join strong { display: block; color: #fff; font-size: var(--fs-lg); }

/* صفحه کلینیک */
.hc-clinic__head { background: var(--tone-soft); padding: clamp(22px, 3vw, 36px) 0 clamp(30px, 4vw, 48px); }
.hc-clinic__intro { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.hc-clinic__photo { position: relative; aspect-ratio: 5 / 6; border-radius: var(--arch); overflow: hidden; background: #fff; box-shadow: 0 0 0 8px #fff; }
.hc-clinic__photo img { width: 100%; height: 100%; object-fit: cover; }
.hc-clinic__specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.hc-clinic__specs .hc-pill { background: #fff; padding: 5px 12px; font-size: var(--fs-xs); }
.hc-clinic__specs .hc-pill:hover { background: var(--tone); }
.hc-clinic__title { font-size: var(--fs-3xl); font-weight: 900; margin-top: 10px; line-height: 1.4; }
.hc-clinic__doctor { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; color: var(--tone-ink); }
.hc-clinic__excerpt { margin-top: 10px; max-width: 44em; line-height: 2; }
.hc-clinic__quick { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: var(--fs-sm); color: var(--text); }
.hc-clinic__quick li { display: inline-flex; align-items: center; gap: 6px; }
.hc-clinic__quick .hc-icon { color: var(--tone); }
.hc-clinic__quick a:hover { color: var(--tone-ink); }
.hc-clinic__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hc-clinic__actions .hc-btn--soft { background: #fff; }

.hc-clinic__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 5vw, 64px); align-items: start; padding-block: clamp(32px, 5vw, 56px); }
.hc-clinic__main > * + * { margin-top: 30px; }
.hc-clinic__h2 { font-size: var(--fs-xl); font-weight: 900; margin-bottom: 12px; }
.hc-clinic__services ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hc-clinic__services li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bl-50); font-weight: 500; color: var(--ink); line-height: 1.7; }
.hc-clinic__services .hc-icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--tone); color: #fff; stroke-width: 2.6; }
.hc-clinic__insurance { display: flex; gap: 10px; padding: 14px 18px; border-radius: var(--r-md); border: 1px dashed var(--bl-200); font-size: var(--fs-sm); line-height: 1.9; }
.hc-clinic__insurance .hc-icon { color: var(--bl-700); margin-top: 4px; }
.hc-clinic__card { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.hc-clinic__card-title { font-size: var(--fs-lg); margin-bottom: 6px; }
.hc-clinic__facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hc-clinic__facts dt { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.hc-clinic__facts dt .hc-icon { color: var(--tone); }
.hc-clinic__facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); line-height: 1.8; }
.hc-clinic__facts a:hover { color: var(--bl-700); }
.hc-clinic__card .hc-share { margin-top: 14px; justify-content: center; }
.hc-clinic__card .hc-share__btn { background: var(--bl-50); }

@media (max-width: 1140px) {
	.hc-clinic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hc-clinics-home__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
	.hc-finder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hc-finder__field--name { grid-column: 1 / -1; }
	.hc-finder .hc-btn { grid-column: 1 / -1; }
	.hc-clinic__layout { grid-template-columns: minmax(0, 1fr); }
	.hc-clinic__card { position: static; }
	.hc-nav__list > .hc-nav__clinics > a { background: var(--pk-50); }
}
@media (max-width: 640px) {
	.hc-clinic-grid, .hc-clinics-home__list, .hc-post-clinics__list { grid-template-columns: minmax(0, 1fr); }
	.hc-clinics-home__list .hc-clinic-card { grid-template-columns: 80px minmax(0, 1fr); text-align: start; justify-items: stretch; padding-top: 16px; }
	.hc-clinics-home__list .hc-clinic-card__media { width: 80px; }
	.hc-clinics-home__list .hc-clinic-card__body { align-items: flex-start; }
	.hc-clinic__intro { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.hc-clinic__photo { width: 128px; box-shadow: 0 0 0 5px #fff; }
	.hc-clinic__title { font-size: var(--fs-2xl); }
	.hc-clinic__actions .hc-btn { flex: 1 1 calc(50% - 5px); }
	.hc-clinic__services ul { grid-template-columns: minmax(0, 1fr); }
}

/* ابزارک‌های پایان مقاله */
.hc-after-post .hc-widget { padding: 20px; border-radius: var(--r-lg); background: var(--bl-50); }
.hc-after-post .hc-widget + .hc-widget { margin-top: 12px; }
.hc-widget h2, .hc-widget .wp-block-heading { font-size: var(--fs-md); margin-bottom: 10px; }
.hc-widget ul { list-style: none; }
.hc-widget li { padding: 7px 0; font-size: var(--fs-sm); line-height: 1.9; }
.hc-widget li + li { border-top: 1px solid var(--line); }
.hc-widget a:hover { color: var(--bl-700); }
.hc-widget .wp-block-search__label { display: block; font-weight: 700; margin-bottom: 6px; }
.hc-widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.hc-widget input[type="search"] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.hc-widget .wp-block-search__button { border: 0; padding: 0 18px; border-radius: var(--r-pill); background: var(--pk-600); color: #fff; font-weight: 700; cursor: pointer; }
