/**
 * rm-singles.css — VIS-06/07/08 single-template sections (v0.4.23).
 *
 * Scoped to plugin markup only (.rm-doctor-* / .rm-service-* / .rm-location-*).
 * Tokens come exclusively from the Customizer-emitted var(--theme-*) set
 * (snapshot: docs/visual/customizer-typography-snapshot-2026-09-08.json).
 * Logical properties throughout (doc 08 RTL/LTR contract).
 */

/* ============ VIS-06 — Doctor ============ */

.rm-doctor-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	margin-block: 0 1.25rem;
	padding: 0;
}

.rm-doctor-chip {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.12));
	border-radius: 999px;
}

.rm-doctor-chip__value {
	font-weight: var(--theme-font-weight, 700);
	font-size: var(--theme-font-size, 16px);
}

.rm-doctor-chip__label {
	font-size: var(--theme-font-size, 13px);
	opacity: 0.75;
}

.rm-doctor-social {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-block: 0 1.5rem;
	font-size: var(--theme-font-size, 14px);
}

.rm-doctor-social ul {
	display: flex;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rm-doctor-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block: 2rem 1rem;
	padding: 1.25rem;
	border-radius: var(--theme-border-radius, 8px);
	background: var(--theme-palette-color-8, #f5f5f5);
}

.rm-doctor-cta__book,
.rm-doctor-cta__call {
	padding: 0.65rem 1.4rem;
	border-radius: var(--theme-border-radius, 8px);
	font-weight: var(--theme-font-weight, 700);
}

.rm-doctor-cta__book {
	background: var(--theme-palette-color-1, #1a1a1a);
	color: var(--theme-palette-color-8, #fff);
}

/* ============ VIS-07 — Service (v0.4.38: chips removed per Sina —   */
/* simple service page: title + icon image + body + CTA) ============ */

.rm-service-icon {
	display: block;
	inline-size: 96px;
	block-size: 96px;
	object-fit: contain;
	margin-block-end: 0.9rem;
}

.rm-service-cta .rm-doctor-cta__book {
	background: var(--theme-palette-color-1, #B25C82);
	color: var(--theme-palette-color-8, #fff);
}

/* Phone numbers next to RTL labels must keep Western LTR digit runs  */
/* (Sina 2026-09-09: "تماس مستقیم: …" showed reordered digits).       */
.rm-doctor-cta__call,
.rm-location-row__value {
	unicode-bidi: plaintext;
}

/* 0.4.43 (Sina): on FA pages plaintext pushed latin email/phone values
   to the LEFT edge of the stretched box. In RTL documents the value cell
   must flow RTL and align right; EN pages keep plaintext. */
html[dir="rtl"] .rm-location-row__value {
	direction: rtl;
	unicode-bidi: isolate;
	text-align: start;
}

/* ============ VIS-08 — Location (v0.4.36) ============ */

.rm-location-meta {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin-block: 0 1.5rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--theme-palette-color-5, rgba(0, 0, 0, 0.08));
	border-radius: var(--theme-border-radius, 10px);
	background: var(--theme-palette-color-8, #FBF7F8);
}

.rm-location-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
}

.rm-location-row__label {
	flex: 0 0 auto;
	min-inline-size: 5.5rem;
	font-weight: 700;
	color: var(--theme-palette-color-2, #9A4A6F);
}

.rm-location-row__value {
	flex: 1 1 auto;
}

.rm-location-row__value a {
	text-decoration: none;
	color: inherit;
}

.rm-location-row__value a:hover {
	color: var(--theme-palette-color-1, #B25C82);
}

.rm-location-hours {
	flex: 1 1 100%;
	display: grid;
	gap: 0.3rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 700px) {
	.rm-location-hours {
		grid-template-columns: repeat(2, 1fr);
	}
}

.rm-location-hours li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	border-block-end: 1px dashed var(--theme-palette-color-5, rgba(0, 0, 0, 0.08));
	padding-block-end: 0.3rem;
}


/* ==========================================================================
   VIS-09 - Blog: category chip filter (above .entries) + related reading
   ========================================================================== */

.rm-cat-filter {
	margin-block-end: var(--rm-gap-lg, 32px);
}

.rm-cat-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rm-cat-filter__chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 999px;
	background: var(--theme-palette-color-8);
	color: var(--theme-palette-color-3);
	font-size: var(--rm-chip-font-size, 14px);
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.rm-cat-filter__chip:hover,
.rm-cat-filter__chip:focus-visible {
	border-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-2);
}

.rm-cat-filter__chip.is-active {
	border-color: var(--theme-palette-color-1);
	color: var(--theme-palette-color-1);
}

.rm-related {
	margin-block-start: var(--rm-gap-xl, 48px);
	padding-block-start: var(--rm-gap-lg, 32px);
	border-block-start: 1px solid var(--theme-palette-color-5);
}

.rm-related__title {
	font-size: var(--rm-related-title-size, 20px);
	margin-block-end: 16px;
}

.rm-related__list {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rm-related__card {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 8px;
	background: var(--theme-palette-color-8);
	color: var(--theme-palette-color-4);
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.rm-related__card:hover,
.rm-related__card:focus-visible {
	border-color: var(--theme-palette-color-1);
}

.rm-related__chip {
	display: block;
	font-size: var(--rm-chip-font-size, 14px);
	font-weight: 600;
	color: var(--theme-palette-color-1);
	margin-block-end: 4px;
}

.rm-related__card-title {
	font-weight: 600;
}

@media (min-width: 700px) {
	.rm-related__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==========================================================================
   Patient Education: Hide Author & Date / entry-meta (Category 60/62)
   ========================================================================== */
body.category-60 .entry-meta,
body.category-62 .entry-meta,
body.category-patient-education-fa .entry-meta,
body.category-patient-education-en .entry-meta,
body.category-patient-education .entry-meta,
body.single-post.in-category-60 .entry-meta,
body.single-post.in-category-62 .entry-meta,
body.single-post.in-category-patient-education-fa .entry-meta,
body.single-post.in-category-patient-education-en .entry-meta,
body.single-post.in-category-patient-education .entry-meta,
body.single-post.category-60 .entry-meta,
body.single-post.category-62 .entry-meta,
body.single.in-category-60 .entry-meta,
body.single.in-category-62 .entry-meta,
body.single.in-category-patient-education-fa .entry-meta,
body.single.in-category-patient-education-en .entry-meta,
body.category-60 .entry-card .entry-meta,
body.category-62 .entry-card .entry-meta,
body.category-60 .ct-meta-element,
body.category-62 .ct-meta-element,
body.single-post.in-category-60 .ct-meta-element,
body.single-post.in-category-62 .ct-meta-element,
body.category-60 [data-meta],
body.category-62 [data-meta],
body.single-post.in-category-60 [data-meta],
body.single-post.in-category-62 [data-meta] {
	display: none !important;
}

/* Footer copyright link */
.ct-footer-copyright,
.site-footer-copyright,
[data-id="copyright"],
.footer-copyright {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	text-align: center;
}

.ct-footer-copyright p,
.site-footer-copyright p,
[data-id="copyright"] p,
.footer-copyright p {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-block: 0;
	margin-inline: 0;
	text-align: center;
	line-height: 1.5;
}

.ct-footer-copyright a,
.site-footer-copyright a,
[data-id="copyright"] a,
.footer-copyright a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.ct-footer-copyright a:hover,
.site-footer-copyright a:hover,
[data-id="copyright"] a:hover,
.footer-copyright a:hover {
	color: var(--theme-palette-color-1, #B25C82);
}

.rm-footer-logo {
	height: 20px !important;
	max-height: 20px !important;
	width: auto;
	vertical-align: middle;
	display: inline-block;
	flex-shrink: 0;
	margin-inline-end: 6px;
	object-fit: contain;
}

.rm-copyright-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.ct-footer-copyright,
	.site-footer-copyright,
	[data-id="copyright"],
	.footer-copyright {
		gap: 6px;
	}

	.ct-footer-copyright p,
	.site-footer-copyright p,
	[data-id="copyright"] p,
	.footer-copyright p {
		gap: 4px 6px;
		line-height: 1.6;
	}
}


