@charset "utf-8";

/* =========================================================
   Authors Posts Widget 2.0
   - Native <details>: works without JavaScript.
   - Colors inherit from the theme (light, dark, block themes).
   - Logical properties: RTL needs no extra stylesheet.
   Optional variable: --apw-accent (post link color).
   ========================================================= */

.apw-authors {
	font-family: inherit;
	line-height: 1.5;
}

.apw-authors *,
.apw-authors *::before,
.apw-authors *::after {
	box-sizing: border-box;
}

.apw-authors .apw-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.apw-authors .apw-author {
	margin: 0;
	padding: 0;
}

.apw-authors .apw-author[hidden] {
	display: none;
}

/* Author row (summary) */
.apw-authors .apw-parent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0;
	margin: 0;
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	line-height: 1.4;
	color: inherit;
}

.apw-authors .apw-parent::-webkit-details-marker {
	display: none;
}

.apw-authors .apw-parent::marker {
	content: "";
}

/* Expand / collapse icon (plus / minus) */
.apw-authors .apw-parent::before {
	content: "+";
	content: "+" / "";
	flex: 0 0 1.25rem;
	display: inline-grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	border: 1px solid currentColor;
	border-radius: 3px;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1;
	opacity: 0.7;
}

.apw-authors .apw-author[open] > .apw-parent::before {
	content: "\2212";
	content: "\2212" / "";
}

.apw-authors .apw-parent:hover::before {
	opacity: 1;
}

.apw-authors .apw-parent:focus-visible {
	outline: 2px solid var(--apw-accent, currentColor);
	outline-offset: 2px;
	border-radius: 2px;
}

.apw-authors .apw-count {
	font-weight: 400;
	font-size: 0.85em;
	opacity: 0.65;
}

/* Avatar (pushed to the end of the row) */
.apw-authors .apw-avatar {
	flex: none;
	margin-inline-start: auto;
	border-radius: 50%;
	object-fit: cover;
}

/* Post list */
.apw-authors .apw-posts {
	list-style: none;
	margin: 0.25rem 0 0.25rem;
	margin-inline-start: 1.75rem;
	padding: 0;
}

.apw-authors .apw-post {
	margin: 0 0 0.375rem;
	padding: 0;
}

.apw-authors .apw-post-link,
.apw-authors .apw-more {
	color: var(--apw-accent, inherit);
	text-decoration: none;
}

.apw-authors .apw-post-link:hover,
.apw-authors .apw-post-link:focus,
.apw-authors .apw-more:hover,
.apw-authors .apw-more:focus {
	text-decoration: underline;
}

.apw-authors .apw-date {
	display: block;
	font-size: 0.8em;
	opacity: 0.65;
}

.apw-authors .apw-excerpt {
	margin: 0.25rem 0 0;
	font-size: 0.875em;
	line-height: 1.4;
	opacity: 0.8;
}

.apw-authors .apw-more {
	display: inline-block;
	margin-inline-start: 1.75rem;
	font-size: 0.875em;
}

.apw-authors .apw-empty {
	margin: 0;
}

/* Screen-reader only helper (also used by the pro search box) */
.apw-authors .apw-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (forced-colors: active) {
	.apw-authors .apw-parent::before {
		border-color: ButtonText;
	}
}
