/**
 * PK Glossar — base styles.
 * Uses this theme's own CSS custom properties (--color-primary, --bg-body,
 * etc.) so it matches the site without needing its own design system.
 *
 * @package PK_Glossar
 */

.pkgl-wrap {
	max-width: var( --container-width, 900px );
	margin: 0 auto;
}

.pkgl-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.pkgl-search-input,
.pkgl-category-select {
	padding: 0.6rem 1rem;
	border: 1px solid var( --border-color, #ccc );
	border-radius: 0.4rem;
	font-size: 1rem;
	background: var( --bg-body, #fff );
	color: var( --text-main, #1a1a1a );
}

.pkgl-search-input {
	flex: 1 1 260px;
}

.pkgl-category-select {
	flex: 0 1 220px;
}

.pkgl-no-results {
	color: var( --text-main, #555 );
	opacity: 0.75;
}

.pkgl-list {
	margin: 0;
}

.pkgl-item {
	padding: 1.25rem 0;
	border-bottom: 1px solid var( --border-color, #e2e2e2 );
}

.pkgl-item:last-child {
	border-bottom: none;
}

.pkgl-item.hidden {
	display: none;
}

.pkgl-term {
	margin: 0 0 0.35rem;
	font-family: var( --font-heading, inherit );
	font-size: 1.15rem;
	font-weight: 700;
	color: var( --color-primary, inherit );
}

.pkgl-description {
	margin: 0;
	color: var( --text-main, #333 );
	line-height: var( --line-height-relaxed, 1.6 );
}

.pkgl-description p:first-child {
	margin-top: 0;
}

.pkgl-links {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	font-size: 0.9rem;
}

.pkgl-links li {
	margin-bottom: 0.25rem;
}

.pkgl-links a {
	color: var( --color-secondary, #0066cc );
	word-break: break-all;
}

/* Only rendered for users with edit rights on the entry — visually
   distinct from the public-facing definition so it doesn't read as part
   of the glossary content itself. */
.pkgl-admin-links {
	margin: 0.75rem 0 0;
	padding-top: 0.5rem;
	border-top: 1px dashed var( --border-color, #ccc );
	font-size: 0.85rem;
}

.pkgl-admin-links a {
	color: var( --text-main, #555 );
}

.pkgl-delete-link {
	color: #b3261e;
}

.hidden {
	display: none !important;
}

/* Matched search term, bolded in both the title and the description. */
.pkgl-highlight {
	background: none;
	font-weight: 700;
	color: var( --color-primary, inherit );
}
