/* Hallmark · built: the project · redesign: polish · brand kept: Finnovate green, Inter · scope: /glossary/<term> pages */
/* Finnovate glossary term pages. One stylesheet for every /glossary/<term> page.
   Loaded after bootstrap.min.css and style.css. The index page uses glossary-index.css. */

:root {
	--gl-green: #009356;
	--gl-green-text: #007a45;
	--gl-green-deep: #006b3e;
	--gl-green-tint: #eef7f2;
	--gl-green-tint-soft: #f5faf7;
	--gl-green-line: #cfe6da;
	--gl-ink: #0a0a0a;
	--gl-ink-soft: #222222;
	--gl-text: #4d4d4d;
	--gl-muted: #666666;
	--gl-line: #ececec;
	--gl-surface: #ffffff;
	--gl-on-green: #ffffff;
	--gl-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
	--gl-header-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	--gl-font: "Inter", "Segoe UI", system-ui, sans-serif;
	--gl-radius: 12px;
	--gl-radius-lg: 16px;
	--gl-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--gl-font);
	line-height: 1.6;
	background: var(--gl-surface);
	color: var(--gl-text);
}

/* ---------- Site header (markup injected by custom.js) ---------- */

.header-area {
	width: 100%;
}

.header-area.header-sticky {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--gl-surface) !important;
	box-shadow: var(--gl-header-shadow);
	border-bottom: 1px solid var(--gl-line);
}

.header-area .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.header-area.header-sticky .main-nav {
	background: var(--gl-surface) !important;
}

/* ---------- Page frame ---------- */

.glossary-hero {
	padding: clamp(28px, 6vw, 72px) 0 clamp(44px, 7vw, 80px);
	background: var(--gl-green-tint-soft);
	position: relative;
}

.glossary-content-wrapper {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 4px;
}

/* ---------- Breadcrumb ---------- */

.glossary-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	margin: 0 0 clamp(16px, 3vw, 28px);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.glossary-breadcrumb a {
	display: inline-block;
	padding: 8px 0;
	color: var(--gl-green-text);
	font-weight: 600;
}

.glossary-breadcrumb span {
	color: var(--gl-muted);
	font-weight: 400;
}

.glossary-breadcrumb span:last-child {
	color: var(--gl-ink-soft);
	font-weight: 600;
}

/* ---------- Title and definition ---------- */

.glossary-term {
	margin: 0 0 clamp(18px, 3vw, 24px);
	font-size: clamp(32px, 6.2vw, 52px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--gl-ink);
	text-align: left;
	text-wrap: balance;
	overflow-wrap: break-word;
	min-width: 0;
}

.glossary-def {
	margin: 0 0 18px;
	max-width: 68ch;
	font-size: clamp(17px, 2.2vw, 20px);
	font-weight: 400;
	line-height: 1.7;
	color: var(--gl-ink-soft);
	text-align: left;
}

.definition-highlight {
	margin: clamp(20px, 4vw, 32px) 0;
	padding: clamp(14px, 3vw, 20px) clamp(16px, 3vw, 24px);
	background: var(--gl-green-tint);
	border-left: 4px solid var(--gl-green);
	border-radius: var(--gl-radius);
}

.definition-highlight p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--gl-ink-soft);
}

/* ---------- Content sections ---------- */

.content-section {
	margin-top: clamp(36px, 6vw, 60px);
	max-width: 900px;
}

.content-section h2,
.why-important-section h2,
.gl-next h2 {
	position: relative;
	margin: 0 0 clamp(16px, 3vw, 24px);
	padding-bottom: 12px;
	font-size: clamp(22px, 3.4vw, 28px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--gl-ink);
	text-align: left;
	text-wrap: balance;
}

.content-section h2::after,
.why-important-section h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 48px;
	height: 3px;
	background: var(--gl-green);
	border-radius: 2px;
}

.content-section h3 {
	margin: 28px 0 10px;
	font-size: clamp(18px, 2.4vw, 20px);
	font-weight: 700;
	line-height: 1.35;
	color: var(--gl-ink);
	text-align: left;
}

.content-section h2 + h3 {
	margin-top: 0;
}

.content-section p {
	margin: 0 0 18px;
	max-width: 72ch;
	font-size: 16px;
	line-height: 1.75;
	color: var(--gl-text);
	text-align: left;
}

.content-section p:last-child {
	margin-bottom: 0;
}

.content-section ul,
.why-important-section ul {
	margin: 20px 0;
	padding: 0;
	list-style: none;
}

.content-section li,
.why-important-section li {
	position: relative;
	margin: 0 0 14px;
	padding-left: 22px;
	max-width: 72ch;
	font-size: 16px;
	line-height: 1.7;
	color: var(--gl-text);
	list-style: none;
}

.content-section li::before,
.why-important-section li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.65em;
	width: 7px;
	height: 7px;
	background: var(--gl-green);
	border-radius: 50%;
}

.content-section li:last-child,
.why-important-section li:last-child {
	margin-bottom: 0;
}

.content-section li strong,
.why-important-section li strong {
	color: var(--gl-ink-soft);
	font-weight: 700;
}

/* In-text links: readable green plus an underline, so colour is not the only cue */
.glossary-def a,
.definition-highlight a,
.content-section p a,
.content-section li a,
.content-section td a,
.asset-class-item a,
.key-point-card a,
.why-important-section a,
.gl-next p a {
	color: var(--gl-green-text);
	font-weight: 600;
	text-decoration: underline !important;
	text-decoration-color: var(--gl-green-line) !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease;
}

.glossary-note {
	font-size: 14px !important;
	color: var(--gl-muted) !important;
}

/* ---------- Item cards ---------- */

.asset-class-item {
	margin-bottom: 14px;
	padding: clamp(14px, 3vw, 22px);
	background: var(--gl-surface);
	border: 1px solid var(--gl-line);
	border-left: 4px solid var(--gl-green);
	border-radius: var(--gl-radius);
}

.asset-class-item:last-child {
	margin-bottom: 0;
}

.asset-class-item strong {
	display: block;
	margin-bottom: 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--gl-ink);
}

.asset-class-item strong a {
	color: inherit;
}

.asset-class-item p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--gl-text);
}

/* ---------- Key points ---------- */

.key-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 2.4vw, 24px);
	margin-top: clamp(28px, 5vw, 44px);
}

.key-point-card {
	padding: clamp(18px, 3vw, 28px);
	background: var(--gl-surface);
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius-lg);
	box-shadow: var(--gl-shadow-soft);
}

.key-point-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	background: var(--gl-green);
	border-radius: var(--gl-radius);
	color: var(--gl-on-green);
	font-size: 20px;
}

.key-point-card h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--gl-ink);
}

.key-point-card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--gl-text);
}

/* ---------- Closing box ---------- */

.why-important-section {
	margin-top: clamp(36px, 6vw, 60px);
	padding: clamp(18px, 4vw, 36px);
	background: var(--gl-surface);
	border: 1px solid var(--gl-green-line);
	border-radius: var(--gl-radius-lg);
}

.why-important-section ul {
	margin: 0;
}

/* ---------- Tables ---------- */

.glossary-table-wrap {
	margin: 24px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--gl-green-line);
	border-radius: var(--gl-radius);
	background: var(--gl-surface);
}

.glossary-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 15px;
	background: var(--gl-surface);
}

.glossary-table th {
	padding: 12px 16px;
	background: var(--gl-green-tint);
	border-bottom: 2px solid var(--gl-green);
	color: var(--gl-ink);
	font-weight: 700;
	text-align: left;
	vertical-align: bottom;
}

.glossary-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--gl-line);
	color: var(--gl-text);
	line-height: 1.6;
	vertical-align: top;
}

.glossary-table tr:last-child td {
	border-bottom: 0;
}

.glossary-table td:first-child {
	color: var(--gl-ink-soft);
	font-weight: 600;
}

/* ---------- FAQ ---------- */

.gl-faq h3 {
	margin: 0 0 8px;
	padding-top: 20px;
	border-top: 1px solid var(--gl-line);
}

.gl-faq h2 + h3 {
	padding-top: 0;
	border-top: 0;
}

.gl-faq p {
	margin-bottom: 20px;
}

/* ---------- Next step ---------- */

.gl-next {
	margin-top: clamp(36px, 6vw, 60px);
	padding: clamp(20px, 4vw, 36px);
	background: var(--gl-green-tint);
	border-radius: var(--gl-radius-lg);
}

.gl-next h2 {
	padding-bottom: 0;
	margin-bottom: 10px;
	font-size: clamp(20px, 3vw, 24px);
}

.gl-next p {
	margin: 0 0 20px;
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.7;
	color: var(--gl-ink-soft);
}

.gl-next-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.gl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	background: var(--gl-green);
	border-radius: var(--gl-radius);
	color: var(--gl-on-green);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.16s ease, transform 0.16s var(--gl-ease);
}

.gl-btn:active {
	transform: scale(0.97);
}

.gl-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--gl-green-text);
	font-size: 16px;
	font-weight: 600;
	text-decoration: underline !important;
	text-decoration-color: var(--gl-green-line) !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 4px;
}

/* ---------- Related terms ---------- */

.related-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.related-terms a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	background: var(--gl-surface);
	border: 1px solid var(--gl-green-line);
	border-radius: 999px;
	color: var(--gl-green-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s var(--gl-ease);
}

.related-terms a:active {
	transform: scale(0.97);
}

.gl-back {
	margin-top: 28px;
}

/* ---------- Hover (pointer devices only) and focus ---------- */

@media (hover: hover) and (pointer: fine) {
	.glossary-breadcrumb a:hover,
	.gl-link:hover {
		color: var(--gl-green-deep);
	}

	.glossary-def a:hover,
	.definition-highlight a:hover,
	.content-section p a:hover,
	.content-section li a:hover,
	.content-section td a:hover,
	.asset-class-item a:hover,
	.key-point-card a:hover,
	.why-important-section a:hover,
	.gl-next p a:hover,
	.gl-link:hover {
		color: var(--gl-green-deep);
		text-decoration-color: var(--gl-green) !important;
	}

	.gl-btn:hover {
		background: var(--gl-green-text);
		color: var(--gl-on-green);
	}

	.related-terms a:hover {
		background: var(--gl-green-tint);
		border-color: var(--gl-green);
		color: var(--gl-green-deep);
	}
}

.glossary-content-wrapper a:focus-visible {
	outline: 2px solid var(--gl-green);
	outline-offset: 3px;
	border-radius: 4px;
	transition: none;
}

.gl-btn:focus-visible {
	outline-color: var(--gl-ink);
	color: var(--gl-on-green);
}

/* ---------- Breakpoints ---------- */

@media (max-width: 860px) {
	.key-points {
		grid-template-columns: minmax(0, 1fr);
	}

	.key-point-card {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 14px;
		align-items: start;
	}

	.key-point-icon {
		grid-row: span 2;
		margin-bottom: 0;
	}

	.key-point-card h3 {
		align-self: center;
		margin-bottom: 4px;
	}

	.key-point-card p {
		grid-column: 2;
	}
}

@media (max-width: 480px) {
	.glossary-table {
		font-size: 14px;
	}

	.glossary-table th,
	.glossary-table td {
		padding: 10px 12px;
	}

	.gl-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gl-btn,
	.related-terms a,
	.glossary-def a,
	.content-section a {
		transition: none;
	}

	.gl-btn:active,
	.related-terms a:active {
		transform: none;
	}
}

@media print {
	.header-area,
	footer,
	#preloader,
	.gl-next,
	.related-terms,
	.gl-back {
		display: none !important;
	}

	.glossary-hero {
		padding: 0;
		background: none;
	}
}
