/* TPROCO Glossary — frontend styles. Slug tag: TPROCO_GLOSSARY_PLUGIN_BUILD */

/* ---- Auto-linked terms + tooltip ---- */
.tproco-term-link {
	border-bottom: 1px dotted currentColor;
	text-decoration: none;
	cursor: help;
}
.tproco-term-link:hover,
.tproco-term-link:focus {
	border-bottom-style: solid;
}

.tproco-tooltip {
	position: absolute;
	z-index: 9999;
	max-width: 280px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.45;
	color: #fff;
	background: #1f2933;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	pointer-events: none;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
}
.tproco-tooltip.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.tproco-tooltip::after {
	content: "";
	position: absolute;
	left: var(--tproco-arrow-left, 50%);
	bottom: -6px;
	width: 0;
	height: 0;
	margin-left: -6px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #1f2933;
}
.tproco-tooltip.is-below::after {
	top: -6px;
	bottom: auto;
	border-top: 0;
	border-bottom: 6px solid #1f2933;
}

/* ---- A–Z index ---- */
.tproco-glossary {
	margin: 1.5em 0;
}
.tproco-glossary-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 1em;
}
.tproco-glossary-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 6px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #d7dce1;
	border-radius: 4px;
}
.tproco-glossary-nav a:hover {
	background: #f1f4f7;
}
.tproco-glossary-search {
	margin-bottom: 1.25em;
}
.tproco-glossary-filter {
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	font-size: 16px;
	border: 1px solid #cfd6dd;
	border-radius: 6px;
}
.tproco-glossary-letter {
	margin: 1.25em 0 0.5em;
	padding-bottom: 4px;
	border-bottom: 2px solid #e3e8ed;
}
.tproco-glossary-list {
	margin: 0;
}
.tproco-glossary-item {
	margin: 0 0 0.9em;
}
.tproco-glossary-item dt {
	font-weight: 700;
	margin: 0;
}
.tproco-glossary-item dd {
	margin: 2px 0 0;
	color: #4a5560;
}

/* ---- Single-term embed card ---- */
.tproco-term-card {
	padding: 14px 16px;
	margin: 1em 0;
	border: 1px solid #e3e8ed;
	border-left: 4px solid #1f2933;
	border-radius: 6px;
	background: #fafbfc;
}
.tproco-term-card-title {
	font-weight: 700;
	text-decoration: none;
}
.tproco-term-card-def {
	margin: 4px 0 0;
	color: #4a5560;
}

/* ---- Related money-page CTA (v1.1.0) ---- */
.tproco-related {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 1.75em 0 0.5em;
	padding: 16px 18px;
	border: 1px solid #e3e8ed;
	border-left: 4px solid #d98a1f;
	border-radius: 8px;
	background: #fbf7f0;
}
.tproco-related-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a6a2f;
}
.tproco-related-link {
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	color: #1f2933;
}
.tproco-related-link:hover {
	text-decoration: underline;
}

/* ---- Single term page layout (v1.4.1) ---- */
.tproco-term-page {
	max-width: 760px;
	margin: 0 auto;
	/* Top padding clears Betheme's absolute/overlapping header. JS fine-tunes
	   this at runtime by measuring the actual header; this is the no-JS base. */
	padding: 150px 20px 64px;
}
@media (max-width: 768px) {
	.tproco-term-page {
		padding-top: 110px;
	}
}
.tproco-term-head {
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e3e8ed;
}
.tproco-term-eyebrow {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a6a2f;
}
.tproco-term-h1 {
	margin: 0;
	font-size: 40px;
	line-height: 1.1;
	color: #1f2933;
}
.tproco-term-body {
	font-size: 19px;
	line-height: 1.6;
	color: #2b3640;
}
.tproco-term-body p {
	margin: 0 0 1em;
}
.tproco-term-back {
	margin-top: 28px;
	font-size: 15px;
}
.tproco-term-back a {
	text-decoration: none;
	color: #687280;
}
.tproco-term-back a:hover {
	text-decoration: underline;
}

/* ---- Readable term card (SCOPED to our own wrapper only) ----
   Betheme renders this CPT title-less over a dark body, so our wrapper carries
   its own light card + dark text. We deliberately do NOT touch Betheme's own
   containers (#Content, .section_wrapper, header, footer) — styling those broke
   the header/footer layout. Everything below is confined to .tproco-term-page. */
.tproco-term-page {
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.tproco-term-page .tproco-term-eyebrow {
	color: #8a6a2f;
}
.tproco-term-page .tproco-term-h1 {
	color: #1f2933;
}
.tproco-term-page .tproco-term-body,
.tproco-term-page .tproco-term-body p {
	color: #2b3640;
}
