/**
 * Rosha — single post (news layout)
 */

body.rosha.single-post article.rsingle,
body.rosha.single article.rsingle {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 0 1.5rem !important;
	border-radius: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

/* Kill Twenty Sixteen float/side-meta layout — content was shrinking */
body.rosha.single-post article.rsingle .entry-header,
body.rosha.single-post article.rsingle .entry-content,
body.rosha.single-post article.rsingle .entry-footer,
body.rosha.single-post article.rsingle .rsingle-header,
body.rosha.single-post article.rsingle .rsingle-featured,
body.rosha.single-post article.rsingle .rsingle-content,
body.rosha.single article.rsingle .entry-header,
body.rosha.single article.rsingle .entry-content,
body.rosha.single article.rsingle .rsingle-content {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}

.rsingle-wrap {
	padding-top: 0.35rem;
}

/* Header: cats → title → subtitle → date */
.rsingle-header {
	margin-bottom: 1.15rem;
}

.rsingle-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
}

.rsingle-cat {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.65rem;
	border-radius: 4px;
	background: var(--rosha-red);
	color: #fff !important;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.4;
	transition: opacity 0.18s ease;
}

.rsingle-cat:hover {
	opacity: 0.88;
	color: #fff !important;
}

.rsingle-title {
	margin: 0 0 0.65rem !important;
	font-size: clamp(1.45rem, 2.8vw, 2.05rem) !important;
	font-weight: 900 !important;
	line-height: 1.4 !important;
	color: var(--rosha-text) !important;
}

.rsingle-subtitle {
	margin: 0 0 0.85rem !important;
	font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
	font-weight: 600 !important;
	line-height: 1.7 !important;
	color: var(--rosha-muted) !important;
}

.rsingle-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	color: var(--rosha-muted);
	font-size: 0.88rem;
	font-weight: 600;
}

.rsingle-meta__date time {
	font-variant-numeric: tabular-nums;
}

/* Featured image — clear frame (کادر) */
.rsingle-featured {
	margin: 0 0 1.5rem;
}

.rsingle-hero {
	margin: 0;
}

.rsingle-hero__frame {
	display: block;
	width: min(100%, 360px);
	margin-inline: auto;
	padding: 8px;
	border: 1px solid var(--rosha-line);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
	box-sizing: border-box;
}

html[data-theme="dark"] .rsingle-hero__frame {
	background: var(--rosha-header);
}

.rsingle-hero__img,
.rsingle-hero__frame img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-width: none !important;
	aspect-ratio: 1 / 1;
	object-fit: cover !important;
	object-position: center;
	margin: 0 !important;
	border-radius: 2px;
	border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Content */
.rsingle-content {
	color: var(--rosha-text) !important;
	font-size: 1.05rem;
	line-height: 1.95;
}

.rsingle-content > *:first-child { margin-top: 0; }

.rsingle-content h2,
.rsingle-content h3,
.rsingle-content h4 {
	color: var(--rosha-text) !important;
	font-weight: 900;
	line-height: 1.4;
	margin: 1.55rem 0 0.7rem;
}

.rsingle-content a {
	color: var(--rosha-red-bright);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rsingle-content img,
.rsingle-content .wp-block-image img {
	border-radius: 4px;
}

.rsingle-content blockquote {
	margin: 1.35rem 0;
	padding: 0.95rem 1.1rem;
	border-right: 4px solid var(--rosha-gold);
	background: rgba(185, 28, 60, 0.05);
	border-radius: 0 8px 8px 0;
	color: var(--rosha-text);
}

/* Source */
.rsingle-source {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 1.75rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--rosha-line);
}

.rsingle-source__title {
	font-size: 0.88rem;
	font-weight: 800;
	color: var(--rosha-muted);
}

.rsingle-source__link a {
	font-weight: 800;
	color: var(--rosha-red) !important;
	text-decoration: none !important;
}

.rsingle-source__link a:hover {
	text-decoration: underline !important;
}

/* Tags */
.rsingle-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1.15rem;
}

.rsingle-tags__label {
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--rosha-muted);
}

.rsingle-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.rsingle-tags__list a {
	display: inline-flex;
	padding: 0.28rem 0.65rem;
	border-radius: 4px;
	border: 1px solid var(--rosha-line);
	background: var(--rosha-surface);
	color: var(--rosha-text) !important;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none !important;
}

.rsingle-tags__list a:hover {
	border-color: rgba(185, 28, 60, 0.35);
	color: var(--rosha-red) !important;
}

/* Short link */
.rsingle-shortlink {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1.25rem;
}

.rsingle-shortlink__input {
	flex: 1 1 180px;
	min-width: 0;
	height: 42px;
	padding: 0 0.85rem;
	border: 1px solid var(--rosha-line);
	border-radius: 8px;
	background: var(--rosha-surface);
	color: var(--rosha-text);
	font-family: inherit;
	font-size: 0.9rem;
	direction: ltr;
	text-align: left;
}

.rsingle-shortlink__btn {
	height: 42px;
	padding: 0 1rem !important;
	border: none !important;
	border-radius: 8px !important;
	background: var(--rosha-red) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-weight: 800 !important;
	font-size: 0.88rem !important;
	cursor: pointer;
}

.rsingle-shortlink__msg {
	font-size: 0.85rem;
	font-weight: 700;
	color: #15803d;
}

.rsingle-shortlink__msg[hidden] {
	display: none !important;
}

/* Share */
.rsingle-share {
	margin-top: 1.35rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--rosha-line);
}

.rsingle-share__title {
	margin-bottom: 0.75rem;
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--rosha-text);
}

.rsingle-share__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.rsingle-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--rosha-line);
	border-radius: 8px;
	background: var(--rosha-surface);
	color: var(--rosha-text) !important;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.rsingle-share__btn:hover {
	border-color: rgba(185, 28, 60, 0.35);
	background: rgba(185, 28, 60, 0.06);
	color: var(--rosha-red) !important;
}

.rsingle-share__btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.rsingle-share__mail {
	font-size: 0.95rem;
	line-height: 1;
}

.rsingle-edit {
	margin-top: 1rem;
}

.rsingle-edit a {
	font-weight: 700;
	font-size: 0.85rem;
}

/* Prev / next — one aligned row inside each card */
.rsingle-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
	margin: 1.75rem 0 2rem;
}

.rsingle-nav__slot--empty {
	visibility: hidden;
}

.rsingle-nav__card {
	display: block;
	padding: 0.85rem 0.95rem;
	border-radius: 12px;
	border: 1px solid var(--rosha-line);
	background: #fff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
	color: inherit !important;
	text-decoration: none !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme="dark"] .rsingle-nav__card {
	background: var(--rosha-header);
}

.rsingle-nav__card:hover {
	border-color: rgba(185, 28, 60, 0.28);
	box-shadow: 0 10px 24px rgba(185, 28, 60, 0.08);
}

.rsingle-nav__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.rsingle-nav__card--next .rsingle-nav__row {
	flex-direction: row-reverse;
}

.rsingle-nav__card--next .rsingle-nav__text {
	text-align: left;
}

.rsingle-nav__media {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--rosha-line);
	background: var(--rosha-surface);
	flex-shrink: 0;
}

.rsingle-nav__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.rsingle-nav__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #fff7ed, #ffe4e6);
}

.rsingle-nav__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
	min-width: 0;
	flex: 1;
}

.rsingle-nav__label {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--rosha-red);
	line-height: 1.2;
}

.rsingle-nav__title {
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.45;
	color: var(--rosha-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Comments */
.rsingle-comments {
	margin: 0 0 2rem;
	padding: 1.5rem 1.35rem 1.6rem;
	border-radius: 16px;
	border: 1px solid var(--rosha-line);
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

html[data-theme="dark"] .rsingle-comments {
	background: var(--rosha-header);
}

.rsingle-comments__head {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rosha-line);
}

.rsingle-comments__title {
	margin: 0 !important;
	font-size: 1.25rem !important;
	font-weight: 900 !important;
	color: var(--rosha-text) !important;
}

.rsingle-comments__sub {
	margin: 0.35rem 0 0;
	color: var(--rosha-muted);
	font-size: 0.9rem;
}

.rsingle-comment-list,
.rsingle-comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rsingle-comment-list .children {
	margin: 0.85rem 0 0 1rem;
	padding-right: 0.85rem;
	border-right: 2px solid rgba(185, 28, 60, 0.15);
}

.rsingle-comment-list .comment {
	margin: 0 0 1rem;
	padding: 1rem 1.05rem;
	border-radius: 12px;
	border: 1px solid var(--rosha-line);
	background: var(--rosha-surface);
}

.rsingle-comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.55rem;
}

.rsingle-comment-list .comment-author .avatar {
	border-radius: 50%;
	width: 52px;
	height: 52px;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.rsingle-comment-list .fn {
	font-weight: 800;
	font-style: normal;
	color: var(--rosha-text) !important;
}

.rsingle-comment-list .comment-metadata {
	font-size: 0.8rem;
	color: var(--rosha-muted);
	margin-bottom: 0.55rem;
}

.rsingle-comment-list .comment-metadata a {
	color: var(--rosha-muted) !important;
}

.rsingle-comment-list .comment-content {
	color: var(--rosha-text);
	line-height: 1.8;
}

.rsingle-comment-list .reply a {
	display: inline-flex;
	margin-top: 0.55rem;
	padding: 0.3rem 0.75rem;
	border-radius: 8px;
	background: rgba(185, 28, 60, 0.08);
	color: var(--rosha-red) !important;
	font-size: 0.8rem;
	font-weight: 800;
}

.rsingle-comment-form-wrap {
	margin-top: 1.5rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--rosha-line);
}

.rsingle-comments__form-title {
	margin: 0 0 1rem !important;
	font-size: 1.15rem !important;
	font-weight: 900 !important;
	color: var(--rosha-text) !important;
}

.rsingle-comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--rosha-text);
}

.rsingle-comment-form .comment-form-comment,
.rsingle-comment-form .comment-form-author,
.rsingle-comment-form .comment-form-email,
.rsingle-comment-form .comment-form-url {
	margin-bottom: 0.95rem;
}

.rsingle-comment-form input[type="text"],
.rsingle-comment-form input[type="email"],
.rsingle-comment-form input[type="url"],
.rsingle-comment-form textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--rosha-line);
	border-radius: 10px;
	padding: 0.75rem 0.95rem;
	background: var(--rosha-surface);
	color: var(--rosha-text);
	font-family: inherit;
	font-size: 0.95rem;
}

.rsingle-comment-form input:focus,
.rsingle-comment-form textarea:focus {
	outline: none;
	border-color: rgba(185, 28, 60, 0.45);
	box-shadow: 0 0 0 3px rgba(185, 28, 60, 0.12);
}

.rsingle-comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.rsingle-comment-submit,
.rsingle-comment-form .submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.7rem 1.35rem !important;
	border: none !important;
	border-radius: 10px !important;
	background: var(--rosha-red) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-weight: 800 !important;
	font-size: 0.95rem !important;
	cursor: pointer;
}

.rsingle-comments__closed {
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: var(--rosha-surface);
	color: var(--rosha-muted);
}

@media (max-width: 700px) {
	.rsingle-nav {
		grid-template-columns: 1fr;
	}

	.rsingle-nav__card--next .rsingle-nav__row {
		flex-direction: row;
	}

	.rsingle-nav__card--next .rsingle-nav__text {
		text-align: right;
	}

	.rsingle-comments {
		padding: 1.15rem 1rem 1.25rem;
	}
}
