/**
 * Mobile article readability polish only (existing classes).
 * @since 14.0.5.7
 */
@media (max-width: 768px) {
	.ayg-single .ayg-article-content,
	.ayg-agency-article-shell .ayg-article-content {
		font-size: 1.05rem;
		line-height: 1.8;
	}
	.ayg-single .ayg-article-title,
	.ayg-agency-article-shell .ayg-article-title {
		font-size: clamp(1.25rem, 4.8vw, 1.55rem);
		line-height: 1.35;
	}
	.ayg-single .ayg-feat-media {
		aspect-ratio: 16 / 9;
		max-height: none;
		overflow: hidden;
		border-radius: 10px;
	}
	.ayg-single .ayg-feat-media > img,
	.ayg-single .ayg-hero-image {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.ayg-related-cards {
		grid-template-columns: 1fr !important;
		gap: 0.65rem !important;
	}
	.ayg-related-cards .ayg-card {
		display: flex !important;
		flex-direction: row !important;
		align-items: stretch;
		transform: none !important;
		box-shadow: none !important;
		min-height: 84px;
	}
	.ayg-related-cards .ayg-card-thumb {
		width: 96px !important;
		min-width: 96px !important;
		max-width: 96px !important;
		height: 72px !important;
		padding-bottom: 0 !important;
		aspect-ratio: 4 / 3;
		flex-shrink: 0;
	}
	.ayg-related-cards .ayg-card-thumb img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.ayg-related-cards .ayg-card-body {
		padding: 0.55rem 0.7rem !important;
		justify-content: center;
	}
	.ayg-related-cards .ayg-card-title {
		font-size: 0.88rem !important;
	}
	.ayg-related-cards .ayg-card-meta {
		display: none !important;
	}
	.ayg-more-cat-cards {
		grid-template-columns: 1fr !important;
		gap: 0.65rem !important;
	}
	.ayg-more-cat-cards .ayg-card {
		display: flex !important;
		flex-direction: row !important;
		min-height: 84px;
	}
	.ayg-more-cat-cards .ayg-card-thumb {
		width: 96px !important;
		min-width: 96px !important;
		height: 72px !important;
		aspect-ratio: 4 / 3;
		padding-bottom: 0 !important;
	}
	.ayg-postnav {
		grid-template-columns: 1fr !important;
		gap: 0.55rem !important;
	}
	.ayg-postnav img {
		width: 64px !important;
		height: 48px !important;
		object-fit: cover !important;
		border-radius: 8px;
	}
	.ayg-single .ayg-sidebar {
		position: static !important;
		margin-top: 1.25rem;
		padding-top: 1rem;
		border-top: 1px solid var(--ayg-line, #e5e7eb);
	}
}


/* ------------------------------------------------------------------
   Mobile comments UX (15.0.14) — readability, less cramped form
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
	.ayg-comments {
		padding: 16px 14px !important;
		border-radius: 12px;
		margin-bottom: 1.25rem;
	}
	.ayg-comments > h2,
	.ayg-comments .comments-title,
	.ayg-comments .ayg-section-title {
		font-size: 1.15rem !important;
		margin-bottom: 12px !important;
	}
	.ayg-comment-list li.comment {
		margin-bottom: 14px !important;
	}
	.ayg-comment-list .comment-body {
		padding: 14px 14px !important;
		border-radius: 12px;
	}
	.ayg-comment-list .comment-author {
		font-size: 0.95rem !important;
		gap: 8px;
		flex-wrap: wrap;
	}
	.ayg-comment-list .comment-author img {
		width: 36px !important;
		height: 36px !important;
	}
	.ayg-comment-list .comment-meta {
		font-size: 0.8125rem !important;
		line-height: 1.45;
		margin: 6px 0 10px !important;
	}
	.ayg-comment-list .comment-content,
	.ayg-comment-list .comment-body p {
		font-size: 1rem !important;
		line-height: 1.7 !important;
	}
	.ayg-comment-list .reply {
		font-size: 0.875rem !important;
		margin-top: 10px !important;
	}
	.comment-respond {
		margin-top: 16px !important;
		padding-bottom: 88px; /* clear sticky bottom bar */
	}
	.comment-respond .comment-reply-title {
		font-size: 1.1rem !important;
		margin-bottom: 10px !important;
	}
	.comment-form .logged-in-as,
	.comment-form .comment-notes {
		font-size: 0.875rem !important;
		line-height: 1.55 !important;
		margin-bottom: 12px !important;
		color: var(--ayg-muted, #6b7280);
	}
	.comment-form .logged-in-as a {
		display: inline;
		word-break: break-word;
	}
	.comment-form label {
		font-size: 0.9rem !important;
		margin-bottom: 8px !important;
	}
	.comment-form textarea#comment,
	.comment-form textarea {
		min-height: 120px !important;
		font-size: 1rem !important;
		line-height: 1.6 !important;
		padding: 12px 14px !important;
		border-radius: 12px !important;
		margin-bottom: 12px !important;
	}
	.comment-form input[type=text],
	.comment-form input[type=email],
	.comment-form input[type=url] {
		font-size: 1rem !important;
		padding: 12px 14px !important;
		border-radius: 12px !important;
	}
	.comment-form .form-submit,
	.comment-form .form-submit .ayg-btn,
	.comment-form input[type=submit] {
		width: 100% !important;
		min-height: 48px !important;
		font-size: 1rem !important;
		border-radius: 12px !important;
		margin-top: 4px;
	}
}


/* ------------------------------------------------------------------
   Mobile article header / byline / meta (15.0.15)
   Less cramped author + date chips under the title
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
	.ayg-single .ayg-article-header,
	.ayg-agency-article-shell .ayg-article-header {
		padding-bottom: 6px;
	}
	.ayg-single .ayg-article-title,
	.ayg-agency-article-shell .ayg-article-title {
		margin-bottom: 12px !important;
	}
	/* Author row */
	.ayg-article-meta,
	.ayg-meta-compact,
	.ayg-meta-classic,
	.ayg-meta-pro-author,
	.ayg-pro-author-below {
		gap: 10px 12px !important;
		padding: 10px 0 !important;
		margin-bottom: 14px !important;
		font-size: 0.875rem !important;
		align-items: flex-start !important;
	}
	.ayg-meta-compact .author,
	.ayg-article-meta .author,
	.ayg-meta-pro-author {
		flex-wrap: wrap !important;
		gap: 8px !important;
		max-width: 100%;
	}
	.ayg-meta-author-name,
	.ayg-article-meta .author a,
	.ayg-pro-author-wrap {
		font-size: 0.95rem !important;
		line-height: 1.45 !important;
		font-weight: 700;
	}
	/* Role under name when long (e.g. رئيس التحرير) */
	.ayg-pro-author-wrap {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 2px !important;
		min-width: 0;
	}
	.ayg-pro-author-role {
		display: block !important;
		font-size: 0.8rem !important;
		font-weight: 500 !important;
		color: var(--ayg-muted, #6b7280) !important;
		line-height: 1.4 !important;
	}
	.ayg-meta-compact .author img,
	.ayg-article-meta .author img {
		width: 36px !important;
		height: 36px !important;
		flex-shrink: 0;
	}
	/* Date / reading chips */
	.ayg-article-meta .m,
	.ayg-meta-compact .m {
		font-size: 0.8125rem !important;
		line-height: 1.4 !important;
		padding: 5px 10px !important;
		border-radius: 999px;
		background: var(--ayg-bg-alt, #f4f5f7);
		max-width: 100%;
	}
	.ayg-article-meta .m.time,
	.ayg-article-meta .m.updated,
	.ayg-meta-compact .m.time,
	.ayg-meta-compact .m.updated {
		white-space: normal !important;
		word-break: break-word;
	}
	/* Transparency / credibility — quieter, full-row on small screens */
	.ayg-cred-badge,
	.ayg-article-header a.ayg-cred-badge,
	.ayg-transparency-link {
		font-size: 0.8rem !important;
		padding: 6px 12px !important;
		margin-top: 4px;
	}
	.ayg-title-badges {
		margin-bottom: 8px !important;
	}
	.ayg-article-cat-inline {
		font-size: 0.75rem !important;
	}
}

@media (max-width: 380px) {
	.ayg-related-cards .ayg-card-thumb, .ayg-more-cat-cards .ayg-card-thumb { width:88px !important; min-width:88px !important; height:66px !important; }
}
