/* assets/css/frontend.css
   Authors box. Uses the ÇandName theme variables when present, with fallbacks.
   Per-box values come from CSS variables set inline: --cny-av (avatar size), --cny-gap (row padding). */
.cny-box { background: #fff; border-radius: 4px; padding: 24px; margin-bottom: 24px; }
.cny-box .widget-title { font-family: var(--serif, Georgia, serif); font-weight: 700; font-size: calc(20px * var(--fs, 1)); padding-bottom: 12px; margin: 0; border-bottom: 2px solid var(--green, #1e5a3c); }
.cny-box ul { list-style: none; margin: 0; padding: 0; }
.cny-box .authors-list > li { border-bottom: 1px solid var(--line-soft, #e8ece9); }
.cny-box .authors-list > li:last-child { border-bottom: 0; }

.authors-list > li { padding: var(--cny-gap, 14px) 0 max(0px, calc(var(--cny-gap, 14px) - 5px)); } /* bottom a little tighter: text line-height already adds space under the last line */
.cny-box .author-body > :last-child { margin-bottom: 0; }
.author-item { display: flex; align-items: flex-start; gap: 12px; }
.cny-box .author-body { flex: 1; min-width: 0; }

/* Avatar: the author's photo, Gravatar or initials. */
.cny-box .avatar-initials, .cny-box .author-item .avatar {
	flex: none; width: var(--cny-av, 40px); height: var(--cny-av, 40px); border-radius: 50%; background: var(--mint, #e3f0e8); color: var(--green, #1e5a3c);
	display: flex; align-items: center; justify-content: center; font-weight: 600; overflow: hidden;
	font-size: calc(var(--cny-av, 40px) * 0.36);
}
.cny-box .author-item .avatar { object-fit: cover; }
.cny-box .cny-shape-square .avatar-initials, .cny-box .cny-shape-square .author-item .avatar { border-radius: 6px; }

.cny-box .author-name { display: inline-block; font-weight: 600; text-decoration: none; color: inherit; line-height: 1.3; margin: 0; }
.cny-box .author-name:hover { color: var(--green, #1e5a3c); }
.cny-box .author-role { display: block; color: var(--muted, #6a726d); font-size: calc(12.5px * var(--fs, 1)); margin-top: 1px; }
.cny-box .author-bio { margin: 6px 0 0; color: var(--muted, #6a726d); font-size: calc(13px * var(--fs, 1)); line-height: 1.5; }
.cny-box .author-count { display: block; color: var(--muted, #6a726d); font-size: calc(13px * var(--fs, 1)); margin-top: 2px; }

/* Social links */
.cny-box .author-social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cny-box .author-social-link {
	display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
	background: var(--mint, #e3f0e8); color: var(--green, #1e5a3c); font-size: 11px; font-weight: 700; line-height: 1;
	text-decoration: none; transition: background .15s, color .15s;
}
.cny-box .author-social-link:hover, .cny-box .author-social-link:focus-visible { background: var(--green, #1e5a3c); color: #fff; }

/* Recent posts */
.cny-box .author-posts { margin: 1px 0 0; padding: 0; }
.cny-box .author-posts li { display: flex; align-items: center; gap: 8px; margin: 3px 0 0; padding: 0; }
.cny-box .author-posts li:first-child { margin-top: 0; }
.cny-box .author-post { display: block; color: var(--muted, #6a726d); font-size: calc(13px * var(--fs, 1)); text-decoration: none; line-height: 1.35; margin: 0; }
.cny-box a.author-post:hover { color: var(--green, #1e5a3c); text-decoration: underline; }
.cny-box .author-post-thumb { flex: none; display: block; line-height: 0; }
.cny-box .author-post-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; display: block; }

.cny-box .widget-more { display: inline-block; margin-top: 8px; color: var(--green, #1e5a3c); font-size: calc(13px * var(--fs, 1)); font-weight: 600; text-decoration: none; }
