/* ==========================================================================
   رژیم سالم — استایل اصلی
   ========================================================================== */

@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-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
	--p-950: #1B0B36;
	--p-900: #261049;
	--p-800: #33195F;
	--p-700: #45228A;
	--p-600: #5B2BC0;
	--p-500: #7446DA;
	--p-200: #D9CCF5;
	--p-100: #EEE7FB;
	--p-50:  #F7F3FD;

	--y-500: #F5B500;
	--y-400: #FFC83D;
	--y-200: #FFE59A;
	--y-100: #FFF5D6;

	--ink:   #1F1733;
	--text:  #342C47;
	--muted: #6C6482;
	--line:  #E6DFF1;
	--bg:    #FFFFFF;

	--r-xl: 36px;
	--r-lg: 22px;
	--r-md: 14px;
	--r-sm: 8px;
	--r-pill: 999px;

	--wrap: 1220px;
	--wrap-narrow: 820px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-md: 1.0625rem;
	--fs-lg: 1.25rem;
	--fs-xl: 1.5625rem;
	--fs-2xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
	--fs-3xl: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem);
	--fs-4xl: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);

	--article-fs: 1.125rem;
	--shadow: 0 18px 40px -24px rgba(51, 25, 95, .35);
	--focus: 0 0 0 3px var(--y-400);
}

/* ---------- پایه ---------- */
*, *::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.8;
	color: var(--text);
	background: var(--bg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
body.rs-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 { color: var(--ink); line-height: 1.45; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.rs-skip {
	position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999;
	background: var(--y-400); color: var(--p-900); padding: 10px 18px; border-radius: var(--r-sm); font-weight: 700;
}
.rs-skip:focus { top: 12px; }

.rs-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.rs-wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.rs-icon { flex-shrink: 0; }

/* ---------- دکمه‌ها و نشان‌ها ---------- */
.rs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 22px; border-radius: var(--r-pill);
	font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; border: 2px solid transparent;
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
	white-space: nowrap;
}
.rs-btn:active { transform: translateY(1px); }
.rs-btn--yellow { background: var(--y-400); color: var(--p-900); }
.rs-btn--yellow:hover { background: var(--y-200); }
.rs-btn--purple { background: var(--p-600); color: #fff; }
.rs-btn--purple:hover { background: var(--p-700); }
.rs-btn--ghost { border-color: currentColor; color: var(--p-700); background: transparent; }
.rs-btn--ghost:hover { background: var(--p-50); }

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

.rs-badge {
	display: inline-block; font-size: var(--fs-xs); font-weight: 700; line-height: 1;
	padding: 7px 12px; border-radius: var(--r-pill);
	background: var(--p-100); color: var(--p-700);
	transition: background-color .2s;
}
.rs-badge:hover { background: var(--p-200); }
.rs-badge--yellow { background: var(--y-400); color: var(--p-900); }
.rs-badge--yellow:hover { background: var(--y-200); }

.rs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: var(--fs-xs); color: var(--muted); }
.rs-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- هدر ---------- */
.rs-progress { position: fixed; inset-inline: 0; top: 0; height: 4px; z-index: 120; pointer-events: none; }
.rs-progress__bar { display: block; height: 100%; width: 100%; background: var(--y-400); transform-origin: right; transform: scaleX(0); }
[dir="ltr"] .rs-progress__bar { transform-origin: left; }

.rs-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .rs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rs-header { top: 0; } }
.rs-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.rs-logo { flex-shrink: 0; }
.rs-logo img { max-height: 52px; width: auto; }
.rs-logo__link { display: inline-flex; align-items: center; gap: 10px; }
.rs-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.rs-logo__name { font-size: 1.375rem; font-weight: 900; color: var(--p-800); letter-spacing: -.01em; margin: 0; line-height: 1.15; }
.rs-logo__tag { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.rs-logo__link--light .rs-logo__name { color: #fff; }
.rs-logo__link--light .rs-logo__tag { color: var(--p-200); }

.rs-nav { flex: 1; }
.rs-nav__head { display: none; }
.rs-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.rs-nav__list > li { position: relative; }
.rs-nav__list a {
	display: block; padding: 10px 14px; border-radius: var(--r-pill);
	font-weight: 600; font-size: var(--fs-sm); color: var(--text); transition: color .2s, background-color .2s;
}
.rs-nav__list a:hover { color: var(--p-600); background: var(--p-50); }
.rs-nav__list .current-menu-item > a,
.rs-nav__list .current-menu-ancestor > a,
.rs-nav__list .current-post-ancestor > a { color: var(--p-700); background: var(--p-100); }
.rs-nav__list .sub-menu {
	list-style: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px;
	box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.rs-nav__list li:hover > .sub-menu, .rs-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rs-nav__list .sub-menu a { border-radius: var(--r-sm); }

.rs-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.rs-menu-toggle { display: none; }

.rs-overlay { position: fixed; inset: 0; background: rgba(27, 11, 54, .5); z-index: 105; }

/* جست‌وجو */
.rs-search {
	position: fixed; inset-inline: 0; top: 0; z-index: 130;
	background: var(--p-900); padding: 28px 0; box-shadow: 0 30px 60px -20px rgba(27, 11, 54, .6);
}
.admin-bar .rs-search { top: 32px; }
.rs-search__inner { display: flex; align-items: center; gap: 12px; }
.rs-search__inner .rs-searchform { flex: 1; }
.rs-search__close { color: #fff; }
.rs-search__close:hover { background: rgba(255, 255, 255, .1); }

.rs-searchform {
	display: flex; align-items: center; gap: 10px; background: #fff;
	border: 2px solid var(--line); border-radius: var(--r-pill); padding: 6px; padding-inline-start: 18px;
}
.rs-searchform:focus-within { border-color: var(--p-500); }
.rs-searchform > .rs-icon { color: var(--muted); }
.rs-searchform__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; font-size: var(--fs-md); outline: none; }
.rs-searchform__input::-webkit-search-cancel-button { display: none; }

/* ---------- هیرو (بشقاب) ---------- */
.rs-hero {
	position: relative; overflow: hidden;
	background: var(--p-800); color: #fff;
	padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 90px);
}
.rs-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.rs-hero__text { position: relative; z-index: 2; }
.rs-hero__title { font-size: var(--fs-4xl); font-weight: 900; color: #fff; line-height: 1.35; margin: 18px 0 16px; max-width: 18em; text-wrap: balance; }
.rs-hero__title a { background-image: linear-gradient(var(--y-400), var(--y-400)); background-size: 0 3px; background-repeat: no-repeat; background-position: right 100%; transition: background-size .35s; padding-bottom: 2px; }
.rs-hero__title a:hover { background-size: 100% 3px; }
.rs-hero__excerpt { font-size: var(--fs-lg); color: var(--p-100); max-width: 36em; line-height: 1.95; }
.rs-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 22px 0 28px; font-size: var(--fs-sm); color: var(--p-200); }
.rs-hero__author { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.rs-hero__author img { border-radius: 50%; border: 2px solid var(--y-400); }
.rs-hero__cta { min-height: 52px; padding-inline: 30px; font-size: var(--fs-md); }
.rs-hero__note { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: var(--fs-xs); color: var(--p-200); }
.rs-hero__note .rs-icon { color: var(--y-400); }

.rs-hero__plate { position: relative; display: block; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; }
.rs-hero__disc {
	position: absolute; inset: 0; border-radius: 50%; background: var(--y-400);
	transform: translate(-7%, 6%);
}
[dir="ltr"] .rs-hero__disc { transform: translate(7%, 6%); }
.rs-hero__img {
	position: absolute; inset: 6%; border-radius: 50%; overflow: hidden;
	background: var(--p-600); border: 10px solid #fff; display: grid; place-items: center;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.rs-hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rs-hero__plate:hover .rs-hero__img img { transform: scale(1.04); }

/* ---------- موضوعات ---------- */
.rs-topics { position: relative; z-index: 3; margin-top: -30px; }
.rs-topics__list {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
	background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
}
.rs-wrap.rs-topics__list { padding: 8px; width: calc(100% - var(--gutter) * 2); }
.rs-topic {
	display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--r-md);
	transition: background-color .2s;
}
.rs-topic + .rs-topic { border-inline-start: 1px solid var(--line); }
.rs-topic:hover { background: var(--p-50); }
.rs-topic__name { font-weight: 800; color: var(--ink); font-size: var(--fs-md); }
.rs-topic__count { font-size: var(--fs-xs); color: var(--muted); }
.rs-topic--clinic { background: var(--y-100); }
.rs-topic--clinic:hover { background: var(--y-200); }
.rs-topic + .rs-topic--clinic { border-color: transparent; }

/* ---------- بخش‌ها ---------- */
.rs-section { padding: clamp(40px, 6vw, 72px) 0; }
.rs-section--tint { background: var(--p-50); }
.rs-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rs-section__title { font-size: var(--fs-2xl); font-weight: 900; position: relative; padding-inline-start: 20px; }
.rs-section__title::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 8px; border-radius: 8px; background: var(--y-400);
}
.rs-section__title a:hover { color: var(--p-600); }
.rs-more { font-size: var(--fs-sm); font-weight: 700; color: var(--p-600); white-space: nowrap; border-bottom: 2px solid var(--y-400); padding-bottom: 2px; }
.rs-more:hover { color: var(--p-800); }

.rs-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.rs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-grid--clinics { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- کارت مقاله ---------- */
.rs-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: border-color .2s; }
.rs-card:hover { border-color: var(--p-200); }
.rs-card__media { position: relative; display: block; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--p-100); }
.rs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rs-card:hover .rs-card__media img { transform: scale(1.04); }
.rs-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.rs-card__title { font-size: var(--fs-lg); font-weight: 800; line-height: 1.65; }
.rs-card__title a { transition: color .2s; }
.rs-card__title a:hover { color: var(--p-600); }
.rs-card__excerpt { color: var(--muted); font-size: var(--fs-sm); line-height: 1.95; }
.rs-card .rs-meta { margin-top: auto; padding-top: 4px; }

.rs-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--p-100); }
.rs-row__media .rs-thumb-fallback svg, .rs-clinic-card__media .rs-thumb-fallback svg { width: 36px; height: 36px; }

.rs-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.rs-card--wide .rs-card__media { aspect-ratio: auto; min-height: 340px; }
.rs-card--wide .rs-card__body { justify-content: center; padding: clamp(22px, 3vw, 40px); gap: 14px; }
.rs-card--wide .rs-card__title { font-size: var(--fs-2xl); line-height: 1.5; }
.rs-card--wide .rs-card__excerpt { font-size: var(--fs-md); }
.rs-card--wide .rs-meta { margin-top: 6px; }

/* کارت ردیفی */
.rs-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.rs-row + .rs-row { border-top: 1px solid var(--line); }
.rs-row__media { position: relative; flex: 0 0 88px; width: 88px; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--p-100); }
.rs-row__media img { width: 100%; height: 100%; object-fit: cover; }
.rs-row__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rs-row__title { font-size: var(--fs-md); font-weight: 700; line-height: 1.7; }
.rs-row__title a:hover { color: var(--p-600); }
.rs-row__rank {
	flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	font-weight: 900; font-size: var(--fs-lg); color: var(--p-800); background: var(--y-400);
}
.rs-row--ranked:nth-child(n+4) .rs-row__rank { background: var(--p-100); color: var(--p-700); }

/* تازه‌ها + پربازدید */
.rs-latest { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 44px); align-items: start; }
.rs-latest__main .rs-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1180px) { .rs-latest__main .rs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rs-latest__main .rs-card__title { font-size: var(--fs-md); }
.rs-latest__side { position: sticky; top: calc(var(--header-h) + 20px); }
.rs-popular { background: var(--p-50); border-radius: var(--r-lg); padding: 22px 22px 8px; }
.rs-popular__title { font-size: var(--fs-lg); font-weight: 900; margin-bottom: 6px; }

/* بلوک دسته‌ها */
.rs-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px); }
.rs-cat-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; align-content: start; }
.rs-cat-block .rs-section__head { grid-column: 1 / -1; }
.rs-cat-block .rs-section__title { font-size: var(--fs-xl); }
.rs-card--lead .rs-card__title { font-size: var(--fs-md); }
.rs-cat-block__rows { display: flex; flex-direction: column; }
.rs-cat-block__rows .rs-row:first-child { padding-top: 0; }
.rs-cat-block__rows .rs-row__media { flex-basis: 76px; width: 76px; }
.rs-cat-block__rows .rs-row__title { font-size: var(--fs-sm); }

/* ---------- کلینیک‌ها ---------- */
.rs-clinics-band { background: var(--y-100); padding: clamp(44px, 6vw, 80px) 0; position: relative; overflow: hidden; }
.rs-clinics-band::after {
	content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
	border: 46px solid var(--y-200); inset-inline-end: -140px; top: -170px; pointer-events: none;
}
.rs-clinics-band .rs-wrap { position: relative; z-index: 1; }
.rs-clinics-band__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.rs-clinics-band__head p { margin-top: 10px; color: var(--text); max-width: 40em; }
.rs-clinics-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rs-clinics-band__empty { background: #fff; padding: 20px; border-radius: var(--r-md); color: var(--muted); }

.rs-clinic-card { display: flex; gap: 14px; background: #fff; border-radius: var(--r-lg); padding: 16px; border: 1px solid transparent; transition: border-color .2s; }
.rs-section .rs-clinic-card { border-color: var(--line); }
.rs-clinic-card:hover { border-color: var(--p-200); }
.rs-clinic-card__media { position: relative; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--p-100); border: 3px solid var(--y-400); }
.rs-clinic-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rs-clinic-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rs-clinic-card__title { font-size: var(--fs-md); font-weight: 800; line-height: 1.6; }
.rs-clinic-card__title a:hover { color: var(--p-600); }
.rs-clinic-card__spec { font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }
.rs-clinic-card__info { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: var(--fs-xs); color: var(--text); }
.rs-clinic-card__info li { display: inline-flex; align-items: center; gap: 5px; }
.rs-clinic-card__info .rs-icon { color: var(--p-500); }
.rs-clinic-card__info a:hover { color: var(--p-600); }

.rs-city-filter { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; background: #fff; padding: 6px 6px 6px 6px; padding-inline-start: 18px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.rs-city-filter label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--p-800); }
.rs-city-filter select { border: 0; background: var(--p-50); border-radius: var(--r-pill); padding: 10px 18px; min-width: 200px; cursor: pointer; }

.rs-clinic-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--p-800); color: #fff; padding: 24px 28px; border-radius: var(--r-lg); }
.rs-clinic-cta p { font-weight: 700; font-size: var(--fs-md); }

.rs-page-head--clinics { background: var(--y-100); }
.rs-clinic__head { display: flex; align-items: center; gap: 20px; }
.rs-clinic__head .rs-page-head__desc { margin: 6px 0 12px; }
.rs-clinic__logo { position: relative; flex: 0 0 112px; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 5px solid var(--y-400); background: #fff; }
.rs-clinic__logo img { width: 100%; height: 100%; object-fit: cover; }
.rs-clinic__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); padding-block: clamp(32px, 5vw, 56px); align-items: start; }
.rs-clinic__doctor { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 14px 18px; background: var(--p-50); border-radius: var(--r-md); }
.rs-clinic__doctor .rs-icon { color: var(--p-600); }
.rs-clinic__card { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.rs-clinic__card-title { font-size: var(--fs-lg); margin-bottom: 12px; }
.rs-clinic__facts { list-style: none; }
.rs-clinic__facts li { display: flex; gap: 12px; padding: 12px 0; }
.rs-clinic__facts li + li { border-top: 1px solid var(--line); }
.rs-clinic__facts .rs-icon { color: var(--p-600); margin-top: 4px; }
.rs-clinic__facts span { display: block; font-size: var(--fs-xs); color: var(--muted); }
.rs-clinic__facts a, .rs-clinic__facts p { font-weight: 600; color: var(--ink); line-height: 1.8; }
.rs-clinic__facts a:hover { color: var(--p-600); }
.rs-clinic__buttons { display: grid; gap: 10px; margin-top: 16px; }

/* ---------- سربرگ صفحات ---------- */
.rs-page-head { background: var(--p-50); padding: clamp(28px, 4vw, 48px) 0; }
.rs-page-head__title { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.4; text-wrap: balance; }
.rs-page-head__desc { margin-top: 10px; color: var(--muted); font-size: var(--fs-md); max-width: 44em; line-height: 1.95; }
.rs-page-head__role { color: var(--p-600); font-weight: 700; margin-top: 4px; }
.rs-page-head__author { display: flex; gap: 20px; align-items: center; }
.rs-page-head__author img { border-radius: 50%; border: 4px solid var(--y-400); }
.rs-page-head .rs-searchform { margin-top: 20px; }

.rs-breadcrumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 16px; }
.rs-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rs-breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.rs-breadcrumbs li + li::before { content: "/"; color: var(--p-200); margin-inline-end: 4px; }
.rs-breadcrumbs a:hover { color: var(--p-600); }
.rs-breadcrumbs li[aria-current] span { color: var(--text); display: inline-block; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

.rs-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.rs-chips--center { justify-content: center; }
.rs-chip { display: inline-block; padding: 8px 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; transition: border-color .2s, background-color .2s; }
.rs-chip:hover { border-color: var(--p-500); }
.rs-chip.is-active { background: var(--p-600); border-color: var(--p-600); color: #fff; }

/* صفحه‌بندی */
.pagination { margin-top: 44px; }
.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); border: 1px solid var(--line); font-weight: 700; background: #fff;
}
.pagination a.page-numbers:hover { border-color: var(--p-500); color: var(--p-600); }
.pagination .page-numbers.current { background: var(--p-600); border-color: var(--p-600); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: transparent; }

.rs-empty { text-align: center; max-width: 560px; margin: 20px auto; padding: 40px 24px; background: var(--p-50); border-radius: var(--r-lg); }
.rs-empty svg { margin: 0 auto 16px; }
.rs-empty h2 { font-size: var(--fs-xl); margin-bottom: 8px; }
.rs-empty p { color: var(--muted); margin-bottom: 20px; }

/* ==========================================================================
   صفحه مقاله
   ========================================================================== */
.rs-single__header { padding: clamp(26px, 4vw, 48px) 0 clamp(22px, 3vw, 32px); }
.rs-single__head-wrap { max-width: calc(1112px + var(--gutter) * 2); }
.rs-single__head-inner { max-width: 860px; }
.rs-single__title { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.5; margin: 14px 0 0; text-wrap: balance; color: var(--ink); }
.rs-single__lead { margin-top: 16px; font-size: var(--fs-lg); line-height: 2; color: var(--muted); }

.rs-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.rs-byline__person { display: flex; align-items: center; gap: 10px; line-height: 1.5; }
.rs-byline__person img { border-radius: 50%; }
.rs-byline__person strong { display: block; color: var(--ink); font-size: var(--fs-sm); }
.rs-byline__person strong a:hover, a.rs-byline__person:hover strong { color: var(--p-600); }
.rs-byline__label { display: block; font-size: var(--fs-xs); color: var(--muted); }
.rs-byline__shield { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--y-100); color: var(--p-700); }
.rs-byline__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-inline-start: auto; font-size: var(--fs-xs); color: var(--muted); }
.rs-byline__facts li { display: inline-flex; align-items: center; gap: 6px; }

.rs-single__figure { margin: 0 auto; max-width: calc(1112px + var(--gutter) * 2); }
.rs-single__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); }
.rs-single__figure figcaption { text-align: center; font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; }

.rs-single__layout {
	display: grid; grid-template-columns: minmax(0, 760px) 280px; justify-content: center;
	gap: clamp(32px, 5vw, 72px); padding-block: clamp(30px, 4vw, 50px) clamp(40px, 5vw, 64px);
}
.rs-single__layout--no-toc .rs-toc--desktop { display: none; }
.rs-single__aside { order: 2; }
.rs-single__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; }

/* فهرست مطالب */
.rs-toc--desktop { border-inline-start: 2px solid var(--line); padding-inline-start: 4px; }
.rs-toc__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 800; color: var(--p-800); padding-inline-start: 14px; margin-bottom: 10px; }
.rs-toc__list { list-style: none; max-height: calc(100vh - 320px); overflow-y: auto; scrollbar-width: thin; }
.rs-toc__item a {
	position: relative; display: block; padding: 7px 14px; font-size: var(--fs-sm); line-height: 1.75;
	color: var(--muted); border-radius: var(--r-sm); transition: color .2s, background-color .2s;
}
.rs-toc__item--h3 a { padding-inline-start: 28px; font-size: var(--fs-xs); }
.rs-toc__item a:hover { color: var(--p-700); background: var(--p-50); }
.rs-toc--desktop .rs-toc__item a.is-active { color: var(--p-700); font-weight: 700; background: var(--p-50); }
.rs-toc--desktop .rs-toc__item a.is-active::before {
	content: ""; position: absolute; inset-inline-start: -6px; top: 8px; bottom: 8px; width: 2px; background: var(--y-500);
}
.rs-toc--mobile { display: none; background: var(--p-50); border-radius: var(--r-md); margin-bottom: 26px; }
.rs-toc--mobile summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 800; color: var(--p-800); cursor: pointer; list-style: none; }
.rs-toc--mobile summary::-webkit-details-marker { display: none; }
.rs-toc--mobile summary .rs-icon--chevron { margin-inline-start: auto; transition: transform .2s; }
.rs-toc--mobile[open] summary .rs-icon--chevron { transform: rotate(180deg); }
.rs-toc--mobile .rs-toc__list { padding: 0 8px 12px; max-height: none; }

.rs-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--p-50); border-radius: var(--r-md); }
.rs-tools__label { font-size: var(--fs-xs); font-weight: 700; color: var(--p-800); }
.rs-tools__size { display: flex; align-items: center; gap: 2px; }
.rs-tools__size .rs-icon-btn { width: 36px; height: 36px; background: #fff; }
.rs-tools__size .rs-icon-btn:hover { background: var(--y-200); }
.rs-tools__sample { width: 28px; text-align: center; font-weight: 800; color: var(--p-700); }

.rs-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.rs-widget__title, .rs-widget h2 { font-size: var(--fs-sm); margin-bottom: 10px; }
.rs-widget ul { list-style: none; }
.rs-widget li { font-size: var(--fs-xs); line-height: 1.9; padding: 6px 0; }
.rs-widget li + li { border-top: 1px solid var(--line); }
.rs-widget a:hover { color: var(--p-600); }
.rs-widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.rs-widget input[type="search"] { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.rs-widget button { border: 0; border-radius: var(--r-sm); background: var(--p-600); color: #fff; padding: 8px 12px; cursor: pointer; }

/* خلاصه نکات */
.rs-content + .rs-keypoints { margin-top: 32px; }
.rs-keypoints { background: var(--y-100); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 34px; }
.rs-keypoints__title { font-size: var(--fs-lg); font-weight: 900; color: var(--p-900); margin-bottom: 12px; }
.rs-keypoints ul { list-style: none; display: grid; gap: 10px; }
.rs-keypoints li { display: flex; gap: 10px; line-height: 1.95; color: var(--ink); }
.rs-keypoints li .rs-icon { margin-top: 6px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--p-600); color: #fff; stroke-width: 2.6; }

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

.rs-page-links { margin-top: 24px; font-weight: 700; }
.rs-page-links a, .rs-page-links > span:not(:first-child) { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); margin-inline: 2px; }

/* هشدار، بازبینی، منابع */
.rs-disclaimer { display: flex; gap: 12px; margin-top: 44px; padding: 16px 20px; border-radius: var(--r-md); background: var(--p-50); color: var(--p-900); font-size: var(--fs-sm); line-height: 1.95; }
.rs-disclaimer .rs-icon { color: var(--p-600); margin-top: 4px; }
.rs-review { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 20px; border: 1px dashed var(--p-200); border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.95; }
.rs-review__icon { flex: 0 0 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--y-400); color: var(--p-900); }
.rs-review__date { color: var(--muted); }
.rs-sources { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.rs-sources summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; font-weight: 700; color: var(--p-800); list-style: none; }
.rs-sources summary::-webkit-details-marker { display: none; }
.rs-sources summary .rs-icon--chevron { margin-inline-start: auto; transition: transform .2s; }
.rs-sources[open] summary .rs-icon--chevron { transform: rotate(180deg); }
.rs-sources ol { padding: 0 44px 18px 20px; padding-inline: 44px 20px; font-size: var(--fs-xs); line-height: 2; color: var(--muted); }
.rs-sources a { color: var(--p-600); word-break: break-word; }
.rs-sources a:hover { text-decoration: underline; }

.rs-single__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.rs-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-tags a { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); background: var(--p-50); font-size: var(--fs-xs); font-weight: 600; color: var(--p-700); }
.rs-tags a:hover { background: var(--p-100); }
.rs-single__share { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--muted); }
.rs-share { display: flex; gap: 6px; }
.rs-share__btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--p-700); cursor: pointer; transition: background-color .2s, border-color .2s; }
.rs-share__btn:hover { background: var(--y-400); border-color: var(--y-400); color: var(--p-900); }
.rs-share__done { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--p-900); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.rs-share__btn.is-copied .rs-share__done { opacity: 1; }

.rs-author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 34px; padding: 24px; background: var(--p-800); color: var(--p-100); border-radius: var(--r-lg); }
.rs-author-box img { border-radius: 50%; border: 4px solid var(--y-400); flex-shrink: 0; }
.rs-author-box__name { font-size: var(--fs-lg); color: #fff; }
.rs-author-box__name a:hover { color: var(--y-400); }
.rs-author-box__role { color: var(--y-400); font-weight: 700; font-size: var(--fs-sm); }
.rs-author-box__bio { margin-top: 8px; font-size: var(--fs-sm); line-height: 2; }

/* دیدگاه‌ها */
.rs-comments-wrap { padding-block: clamp(36px, 5vw, 60px); }
.rs-comments-wrap .rs-single__head-inner { max-width: 760px; }
.rs-comments__title { font-size: var(--fs-xl); font-weight: 900; margin-bottom: 18px; }
.rs-comments__note { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 14px; }
.rs-comment-list, .rs-comment-list .children { list-style: none; }
.rs-comment-list .children { padding-inline-start: clamp(16px, 5vw, 48px); }
.rs-comment-list .comment-body { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; }
.rs-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.rs-comment-list .comment-author img { border-radius: 50%; }
.rs-comment-list .says { display: none; }
.rs-comment-list .comment-metadata { font-size: var(--fs-xs); color: var(--muted); margin: 4px 0 8px; }
.rs-comment-list .comment-content { line-height: 2; }
.rs-comment-list .reply a { font-size: var(--fs-xs); font-weight: 700; color: var(--p-600); }
.bypostauthor > .comment-body { border-color: var(--y-400); background: var(--y-100); }
.comment-respond { margin-top: 30px; }
.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 input[type="url"], .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(--p-500); box-shadow: 0 0 0 3px var(--p-100); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); }
.comment-form-cookies-consent label { margin: 0; font-weight: 500; }

/* صفحه برگه و ۴۰۴ */
.rs-page__figure { margin: 30px 0 0; }
.rs-page__figure img { border-radius: var(--r-lg); width: 100%; }
.rs-page .rs-content { padding-block: 30px 60px; }
.rs-404 { padding: clamp(50px, 8vw, 110px) 0; text-align: center; }
.rs-404__plate { width: 190px; height: 190px; margin: 0 auto 28px; border-radius: 50%; background: var(--y-400); display: grid; place-items: center; box-shadow: inset 0 0 0 16px var(--y-200); }
.rs-404__plate span { font-size: 3.5rem; font-weight: 900; color: var(--p-800); }
.rs-404 .rs-page-head__desc { margin-inline: auto; }
.rs-404 .rs-searchform { margin: 26px auto 0; max-width: 620px; }

/* ---------- فوتر ---------- */
.rs-footer { background: var(--p-900); color: var(--p-200); margin-top: 0; }
.rs-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; padding-block: clamp(44px, 6vw, 72px); }
.rs-footer__about p { margin-top: 16px; font-size: var(--fs-sm); line-height: 2; max-width: 34em; }
.rs-footer__title { font-size: var(--fs-md); color: #fff; margin-bottom: 14px; }
.rs-footer__links { list-style: none; display: grid; gap: 8px; }
.rs-footer__links a { font-size: var(--fs-sm); transition: color .2s; }
.rs-footer__links a:hover { color: var(--y-400); }
.rs-footer__contact { list-style: none; display: grid; gap: 10px; font-size: var(--fs-sm); }
.rs-footer__contact li { display: flex; align-items: center; gap: 8px; }
.rs-footer__contact a:hover { color: var(--y-400); }
.rs-footer__note { display: flex; gap: 8px; margin-top: 16px; font-size: var(--fs-xs); line-height: 1.9; color: var(--p-200); }
.rs-footer__note .rs-icon { color: var(--y-400); margin-top: 3px; }
.rs-social { list-style: none; display: flex; gap: 8px; margin-top: 18px; }
.rs-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, color .2s; }
.rs-social a:hover { background: var(--y-400); color: var(--p-900); }
.rs-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: var(--fs-xs); text-align: center; }

/* ==========================================================================
   واکنش‌گرا
   ========================================================================== */
@media (max-width: 1100px) {
	.rs-single__layout { grid-template-columns: minmax(0, 760px); }
	.rs-single__head-wrap, .rs-single__figure { max-width: calc(760px + var(--gutter) * 2); }
	.rs-single__aside { display: none; }
	.rs-toc--mobile { display: block; }
	.rs-content .alignwide { margin-inline: 0; max-width: 100%; }
	.rs-latest { grid-template-columns: minmax(0, 1fr); }
	.rs-latest__side { position: static; }
	.rs-grid--clinics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs-cats { grid-template-columns: minmax(0, 1fr); }
	.rs-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.rs-menu-toggle { display: inline-grid; }
	.rs-header__cta span { display: none; }
	.rs-header__cta { width: 44px; min-height: 44px; padding: 0; }
	.rs-nav {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 110;
		width: min(86vw, 340px); background: #fff; padding: 16px; overflow-y: auto;
		transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
	}
	[dir="ltr"] .rs-nav { transform: translateX(-100%); }
	.rs-nav.is-open { transform: none; visibility: visible; }
	.rs-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
	.rs-nav__title { font-weight: 800; color: var(--p-800); }
	.rs-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.rs-nav__list a { padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-md); }
	.rs-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 0 0; min-width: 0; }

	.rs-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.rs-hero__plate { order: -1; width: min(62vw, 340px); }
	.rs-topics { margin-top: 20px; }
	.rs-topics__list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
	.rs-topic + .rs-topic { border-inline-start: 0; }
	.rs-grid--3, .rs-latest__main .rs-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs-card--wide { grid-template-columns: minmax(0, 1fr); }
	.rs-card--wide .rs-card__media { min-height: 0; aspect-ratio: 16 / 9; }
	.rs-clinic__layout { grid-template-columns: minmax(0, 1fr); }
	.rs-clinic__card { position: static; order: -1; }
	.rs-byline__facts { margin-inline-start: 0; width: 100%; }
}

@media (max-width: 640px) {
	:root { --header-h: 64px; --article-fs: 1.0625rem; }
	.rs-logo__name { font-size: 1.2rem; }
	.rs-logo__mark { width: 36px; height: 36px; }
	.rs-header__inner { gap: 10px; }
	.rs-header__actions { gap: 2px; }
	.rs-grid--3, .rs-latest__main .rs-grid--3, .rs-grid--clinics { grid-template-columns: minmax(0, 1fr); }
	.rs-latest__main .rs-grid--3, .rs-related .rs-grid--3 { gap: 12px; }
	.rs-latest__main .rs-card, .rs-related .rs-card { flex-direction: row; align-items: stretch; }
	.rs-latest__main .rs-card__media, .rs-related .rs-card__media { flex: 0 0 116px; aspect-ratio: auto; min-height: 116px; }
	.rs-latest__main .rs-card__body, .rs-related .rs-card__body { padding: 12px 14px; gap: 6px; }
	.rs-latest__main .rs-card__title, .rs-related .rs-card__title { font-size: var(--fs-sm); line-height: 1.75; }
	.rs-latest__main .rs-card .rs-badge, .rs-related .rs-card .rs-badge { display: none; }
	.rs-cat-block { grid-template-columns: minmax(0, 1fr); }
	.rs-cat-block .rs-card--lead { margin-bottom: 8px; }
	.rs-cat-block__rows .rs-row:first-child { padding-top: 14px; }
	.rs-section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.rs-hero__excerpt { font-size: var(--fs-md); }
	.rs-hero__meta .rs-hero__author img { width: 32px; height: 32px; }
	.rs-topics__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs-topic--clinic { grid-column: 1 / -1; }
	.rs-single__figure { padding-inline: 0; }
	.rs-single__figure img { border-radius: 0; }
	.rs-single__footer { flex-direction: column; align-items: flex-start; }
	.rs-author-box { flex-direction: column; }
	.rs-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.rs-searchform .rs-btn { padding-inline: 14px; }
	.rs-searchform > .rs-icon { display: none; }
	.rs-city-filter { display: flex; }
	.rs-city-filter select { min-width: 0; flex: 1; }
	.rs-clinic__head { flex-direction: column; align-items: flex-start; }
	.rs-page-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 {
	.rs-header, .rs-footer, .rs-single__aside, .rs-related, .rs-comments-wrap, .rs-progress, .rs-share, .rs-toc { display: none !important; }
	.rs-single__layout { display: block; }
}
