/* VYBE OJS Publish – authors directory (public pages). Works inside any theme. */
.vauth-dir,
.vauth-profile {
	--vauth-line: color-mix(in srgb, currentColor 16%, transparent);
	--vauth-soft: color-mix(in srgb, currentColor 6%, transparent);
	--vauth-muted: color-mix(in srgb, currentColor 66%, transparent);
	--vauth-accent: #3a2e8c;
	box-sizing: border-box;
	color: inherit;
}
.vauth-dir *, .vauth-profile * { box-sizing: border-box; }
.vauth-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Search and letters */
.vauth-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.vauth-search input[type="search"] {
	flex: 1 1 240px; min-width: 0; padding: 10px 12px; font: inherit; color: inherit;
	background: transparent; border: 1px solid var(--vauth-line); border-radius: 8px;
}
.vauth-search button {
	padding: 10px 16px; font: inherit; font-weight: 600; color: #fff; cursor: pointer;
	background: var(--vauth-accent); border: 0; border-radius: 8px;
}
.vauth-clear { font-size: .9em; }
.vauth-letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; }
.vauth-letters a {
	min-width: 34px; padding: 5px 9px; text-align: center; text-decoration: none; font-size: .9em; line-height: 1.3;
	color: inherit; border: 1px solid var(--vauth-line); border-radius: 7px;
}
.vauth-letters a:hover, .vauth-letters a:focus-visible { background: var(--vauth-soft); }
.vauth-letters a.is-on { background: var(--vauth-accent); border-color: var(--vauth-accent); color: #fff; }
.vauth-count { margin: 0 0 12px; color: var(--vauth-muted); font-size: .92em; }

/* Directory cards */
.vauth-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.vauth-card {
	display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 16px;
	border: 1px solid var(--vauth-line); border-radius: 12px; background: transparent;
}
.vauth-card:hover { background: var(--vauth-soft); }
.vauth-name { font-weight: 700; font-size: 1.05em; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.vauth-name:hover, .vauth-name:focus-visible { text-decoration: underline; }
.vauth-card .vauth-affil { color: var(--vauth-muted); font-size: .9em; line-height: 1.4; overflow-wrap: anywhere; }
.vauth-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: .86em; color: var(--vauth-muted); }
.vauth-n { margin-right: auto; }
.vauth-id { display: inline-flex; align-items: center; line-height: 1; color: inherit; }
.vauth-ico { display: inline-block; vertical-align: -3px; flex: 0 0 auto; }
.vauth-ico-scholar, .vauth-ico-site { color: var(--vauth-accent); }
.vauth-pages { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 20px 0 0; font-size: .95em; }
.vauth-empty { padding: 22px 16px; text-align: center; color: var(--vauth-muted); border: 1px dashed var(--vauth-line); border-radius: 12px; }

/* One author */
.vauth-profile { margin: 12px 0 0; }
.vauth-profile > p { margin: 0 0 8px; }
.vauth-profile .vauth-affil { font-size: 1.05em; }
.vauth-country { color: var(--vauth-muted); }
.vauth-alt { color: var(--vauth-muted); font-size: .92em; }
.vauth-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; padding: 0; }
.vauth-links li { margin: 0; }
.vauth-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.vauth-links a:hover span, .vauth-links a:focus-visible span { text-decoration: underline; }
.vauth-ok { color: #11734b; font-size: .85em; }
.vauth-bio { margin: 16px 0; max-width: 70ch; }
.vauth-h { margin: 26px 0 10px; font-size: 1.25em; }
.vauth-articles { margin: 0; padding-left: 1.4em; }
.vauth-articles li { margin: 0 0 12px; padding-left: 2px; }
.vauth-title { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.vauth-title:hover, .vauth-title:focus-visible { text-decoration: underline; }
.vauth-ref { display: block; margin-top: 2px; color: var(--vauth-muted); font-size: .88em; }

/* Names on article pages */
a.vauth-link { color: inherit; text-decoration-line: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
a.vauth-link:hover, a.vauth-link:focus-visible { text-decoration-style: solid; }

@media (max-width: 520px) {
	.vauth-grid { grid-template-columns: 1fr; }
	.vauth-letters a { min-width: 30px; padding: 4px 7px; }
}
@media (prefers-reduced-motion: no-preference) {
	.vauth-card { transition: background-color .15s ease; }
}
