/* PerfectReputations Glossary — front-end styles */

/* Search box + modal */
/* Width rules outrank theme content-column caps, so the setting controls the box on any theme. */
.prg-search { margin: 0 0 12px; }
.prg-search.prg-search--compact { width: 100% !important; max-width: 520px !important; margin-left: 0 !important; margin-right: auto !important; }
.prg-search.prg-search--full { width: 100% !important; max-width: none !important; }
.prg-search-input,
.prg-filter {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	border: 1px solid var(--prg-input-border, #cfd8e3);
	border-radius: 8px;
	background: var(--prg-input-bg, #fff);
	color: var(--prg-input-text, inherit);
	box-sizing: border-box;
}
.prg-search-input::placeholder,
.prg-filter::placeholder { color: var(--prg-input-text, #7a8a9a); opacity: 0.65; }
.prg-search-input:focus,
.prg-filter:focus { outline: 2px solid #7aaac8; outline-offset: 1px; }

.prg-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.prg-modal[hidden] { display: none; }
.prg-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 40, 60, 0.5); }
.prg-modal-box {
	position: relative;
	background: var(--prg-pop-bg, #fff);
	border: 1px solid var(--prg-pop-border, transparent);
	border-radius: 12px;
	max-width: 640px;
	width: calc(100% - 32px);
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 12px 48px rgba(0,0,0,0.28);
}
.prg-modal-close {
	position: absolute; top: 8px; right: 10px;
	background: transparent; border: 0; font-size: 26px; line-height: 1;
	color: #7a8a9a; cursor: pointer; padding: 4px 8px;
}
.prg-modal-close:hover { color: #3a6186; }
.prg-modal-body { overflow-y: auto; padding: 28px 26px 24px; }

.prg-result { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--prg-pop-border, #eef1f5); }
.prg-result:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.prg-result h4 { font-size: 17px; color: var(--prg-pop-title, #3a6186) !important; margin: 0 0 6px; }
.prg-result .prg-def-body { font-size: 15px; line-height: 1.7; color: var(--prg-pop-text, #4a5568); }
.prg-result .prg-def-body p { color: inherit; }
.prg-empty { color: #7a8a9a; font-style: italic; }

/* Date stamp */
.prg-datestamp { display: inline-block; font-size: 12px; color: #9eaab8; margin-top: 6px; }

/* Archive */
.prg-archive { box-sizing: border-box; background: var(--prg-bg, transparent); }
.prg-archive.prg-archive { width: 100% !important; max-width: none !important; } /* outranks theme width caps */
.prg-archive .prg-filter { margin-bottom: 16px; }
.prg-az { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 20px; }
.prg-az a {
	display: inline-block; min-width: 26px; text-align: center;
	padding: 4px 8px; border: 1px solid #cfd8e3; border-radius: 6px;
	font-size: 13px; color: #3a6186; text-decoration: none; background: #f4f6f9;
}
.prg-az a:hover { background: #e4eef6; }
.prg-archive p.prg-letter {
	font-size: 24px !important; line-height: 1.3; font-weight: 400;
	color: var(--prg-heading, #3a6186) !important;
	margin: 22px 0 8px; padding: 0 0 4px; border-bottom: 2px solid var(--prg-sep, #e4eef6);
}
.prg-item { border-bottom: 1px solid var(--prg-sep, #eef1f5); }
.prg-term {
	display: block; width: 100%; text-align: left;
	background: transparent; border: 0; cursor: pointer;
	padding: 12px 4px; font-size: 16px; color: var(--prg-link, #3a6186); font-weight: 500;
}
.prg-term::before { content: "▸"; display: inline-block; margin-right: 8px; color: var(--prg-muted, #9eaab8); transition: transform 0.15s; }
.prg-term[aria-expanded="true"]::before { transform: rotate(90deg); }
.prg-term:hover { color: var(--prg-link-hover, #4e7fa8); }
.prg-def p { color: inherit; }
.prg-def { padding: 0 4px 16px 24px; font-size: 15px; line-height: 1.7; color: var(--prg-text, #4a5568); }
.prg-archive .prg-datestamp { color: var(--prg-muted, #9eaab8); }
.prg-def[hidden] { display: none; }
.prg-item.prg-hidden { display: none; }
.prg-group.prg-hidden { display: none; }
.prg-count { font-size: 13px; color: var(--prg-muted, #7a8a9a); margin-bottom: 10px; }

/* Term-list block and auto-links */
.prg-terms { margin: 12px 0; }
.prg-term-list { margin: 0 0 8px 18px; }
.prg-term-item { margin: 2px 0; }
.prg-autolink { color: var(--prg-link, #3a6186); text-decoration: underline; text-decoration-style: dotted; cursor: pointer; }
.prg-autolink:hover { color: var(--prg-link-hover, #4e7fa8); }
.prg-master-link { margin: 6px 0 0; font-size: 14px; }
.prg-master-link a { text-decoration: underline; }
.prg-nomatch { color: #b32d2e; font-size: 12px; }
.prg-unmatched { color: inherit; }
