/* =====================================================================
   Fall Protection Glossary — styles matched to atheight theme palette
   Brand teal: #56a1a2  | Slate: #47515d  | Card bg: #efefef  | Mint header: #f2fbf6
   ================================================================== */

.glossary-archive,
.glossary-single {
	color: #47515d;
}

/* ---------------- Archive header ---------------- */
.glossary-archive-header {
	background: #f2fbf6;
	padding: 2rem 1rem;
	border-radius: 8px;
	margin-bottom: 2rem;
}
.glossary-archive-eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #56a1a2;
	margin: 0 0 0.4rem;
}
.glossary-archive-title {
	font-size: 2.2rem;
	font-weight: 800;
	color: #47515d;
	margin: 0 0 0.75rem;
}
.glossary-archive-intro {
	max-width: 820px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.6;
	color: #47515d;
}

/* ---------------- A-Z navigation ---------------- */
.glossary-letters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	padding: 1rem 0;
	border-top: 1px solid #e5e9eb;
	border-bottom: 1px solid #e5e9eb;
	margin-bottom: 1.5rem;
}
.glossary-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	background: #efefef;
	color: #47515d;
	font-weight: 700;
	font-size: 0.95rem;
	transition: background .15s ease, color .15s ease, transform .15s ease;
	text-decoration: none;
}
a.glossary-letter:hover {
	background: #56a1a2;
	color: #fff;
	transform: translateY(-1px);
}
.glossary-letter.is-active {
	background: #56a1a2;
	color: #fff;
}
.glossary-letter.is-active:hover {
	background: #47515d;
	color: #fff;
}
.glossary-letter--all {
	width: auto;
	padding: 0 0.85rem;
}
.glossary-letter.is-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ---------------- Search ---------------- */
.glossary-search-wrap {
	max-width: 520px;
	margin: 0 auto 2rem;
}
.glossary-search {
	width: 100%;
	padding: 0.65rem 1rem !important;
	border: 1px solid #aaa !important;
	border-radius: 5px !important;
	font-size: 1rem;
	outline: none !important;
}
.glossary-search:focus {
	border-color: #56a1a2 !important;
	box-shadow: 0 0 0 3px rgba(86, 161, 162, 0.15);
}

/* ---------------- Letter groups ---------------- */
.glossary-letter-group {
	margin-bottom: 2rem;
	scroll-margin-top: 130px; /* account for fixed site header (~112px) */
}
.glossary-letter-heading {
	font-size: 2rem;
	font-weight: 800;
	color: #56a1a2;
	border-bottom: 2px solid #56a1a2;
	padding-bottom: 0.5rem;
	margin-bottom: 1.25rem;
}

/* ---------------- Term card ---------------- */
.glossary-card {
	display: block;
	height: 100%;
	background: #efefef;
	padding: 1rem;
	border-radius: 5px;
	color: #47515d;
	transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
	text-decoration: none;
}
.glossary-card:hover {
	background: #fff;
	box-shadow: 0 0 20px #c5c5c5;
	transform: translateY(-1px);
	color: #47515d;
}
.glossary-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #47515d;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}
.glossary-card-excerpt {
	font-size: 0.875rem;
	line-height: 1.5;
	color: #6b757f;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.glossary-card:hover .glossary-card-title {
	color: #56a1a2;
}
.glossary-card--small {
	padding: 0.85rem 1rem;
}
.glossary-card--small .glossary-card-title {
	font-size: 0.95rem;
	margin: 0;
}

.glossary-no-results {
	padding: 2rem 0;
	text-align: center;
	color: #6b757f;
}

/* ---------------- Empty / placeholder ---------------- */
.glossary-empty {
	color: #6b757f;
}

/* ---------------- Single term page ---------------- */
.glossary-breadcrumb {
	font-size: 0.875rem;
	color: #6b757f;
	margin-bottom: 1.25rem;
}
.glossary-breadcrumb a {
	color: #56a1a2;
	font-weight: 600;
}
.glossary-breadcrumb a:hover {
	text-decoration: underline;
}
.glossary-breadcrumb .sep {
	margin: 0 0.4rem;
	color: #c5c5c5;
}

.glossary-article {
	max-width: 880px;
	margin: 0 auto;
}
.glossary-single-header {
	margin-bottom: 1.5rem;
}
.glossary-single-title {
	font-size: 2.1rem;
	font-weight: 800;
	color: #47515d;
	line-height: 1.25;
	margin: 0 0 0.75rem;
}
.glossary-single-cats {
	margin: 0;
}
.glossary-cat-pill {
	display: inline-block;
	background: #56a1a2;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	margin-right: 0.4rem;
	text-decoration: none;
}
.glossary-cat-pill:hover {
	background: #47515d;
	color: #fff;
}

.glossary-single-thumb {
	margin: 0 0 1.5rem;
	border-radius: 8px;
	overflow: hidden;
}
.glossary-single-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.glossary-single-content {
	font-size: 1rem;
	line-height: 1.7;
}
.glossary-single-content h2 {
	font-size: 1.4rem;
	font-weight: 800;
	color: #47515d;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}
.glossary-single-content h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: #47515d;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}
.glossary-single-content p {
	margin-bottom: 1rem;
}
.glossary-single-content a {
	color: #56a1a2;
	font-weight: 600;
}
.glossary-single-content a:hover {
	text-decoration: underline;
}
.glossary-single-content ul,
.glossary-single-content ol {
	margin: 0 0 1rem 1.25rem;
}

.glossary-single-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e9eb;
}
.glossary-back-link {
	display: inline-block;
	color: #56a1a2;
	font-weight: 600;
}
.glossary-back-link:hover {
	color: #47515d;
}

.glossary-related {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e9eb;
}
.glossary-related-heading {
	font-size: 1.4rem;
	font-weight: 800;
	color: #47515d;
	margin-bottom: 1.25rem;
}

/* ---------------- Mobile ---------------- */
@media (max-width: 768px) {
	.glossary-archive-title {
		font-size: 1.7rem;
	}
	.glossary-single-title {
		font-size: 1.6rem;
	}
	.glossary-letter {
		width: 30px;
		height: 30px;
		font-size: 0.85rem;
	}
	.glossary-letter-heading {
		font-size: 1.5rem;
	}
}
