:root {
	--glossary-ink: #111b67;
	--glossary-accent: #ba29a0;
	--glossary-cyan: #42c9e8;
	--glossary-paper: #f5f6fb;
	--glossary-line: rgba(17, 27, 103, 0.14);
}

.glossary-page #header:not(.alt) {
	background: rgba(17, 27, 103, 0.96);
}

.glossary-page #wrapper {
	padding-top: 0;
}

.glossary-hero {
	background:
		radial-gradient(circle at 82% 18%, rgba(66, 201, 232, 0.34), transparent 31rem),
		radial-gradient(circle at 12% 92%, rgba(186, 41, 160, 0.42), transparent 34rem),
		linear-gradient(135deg, #0c124a 0%, #111b67 58%, #421269 100%);
	min-height: 42rem;
	display: flex;
	align-items: flex-end;
	position: relative;
	overflow: hidden;
}

.glossary-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 52px 52px;
	mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
	pointer-events: none;
}

.glossary-page #wrapper > .glossary-hero > .inner {
	position: relative;
	z-index: 1;
	padding-top: 9rem;
	padding-bottom: 5rem;
}

.glossary-kicker,
.glossary-section-kicker {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.glossary-kicker { color: #8cecff; }

.glossary-hero .glossary-kicker {
	color: #f2a06e;
	font-size: clamp(.86rem, .72rem + .25vw, 1rem);
	letter-spacing: .14em;
	line-height: 1.3;
	margin: 0 0 1.1rem;
}

.glossary-hero h1 {
	font-size: clamp(3.25rem, 8.5vw, 8rem);
	line-height: .92;
	letter-spacing: -.055em;
	margin: .35rem 0 1.6rem;
	max-width: 11ch;
}

.glossary-hero .lead {
	font-size: clamp(1.25rem, 2.5vw, 2rem);
	line-height: 1.35;
	max-width: 34ch;
	margin-bottom: 1.25rem;
}

.glossary-hero .intro {
	font-size: 1rem;
	line-height: 1.75;
	max-width: 58rem;
	color: rgba(255,255,255,.82);
}

.glossary-editorial-credit {
	color: rgba(255,255,255,.68);
	font-size: .8rem;
	letter-spacing: .035em;
	line-height: 1.7;
	margin: 1.15rem 0 0;
	max-width: 58rem;
}

.glossary-editorial-credit a {
	border-bottom: 1px solid rgba(140,236,255,.55);
	color: #fff;
	font-weight: 600;
}

.glossary-editorial-credit a:hover,
.glossary-editorial-credit a:focus-visible {
	border-bottom-color: #8cecff;
	color: #8cecff;
}

.glossary-path {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	list-style: none;
	max-width: 72rem;
	margin: 2.25rem 0 1.75rem;
	padding: 0;
	width: 100%;
}

.glossary-path li {
	background: transparent;
	border: 0;
	color: rgba(255,255,255,.82);
	display: inline-flex;
	font-size: clamp(1.2rem, 1.4vw, 1.35rem);
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1;
	padding: 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.glossary-path li:not(:last-child)::after {
	color: #8cecff;
	content: "\2192";
	font-size: clamp(1.65rem, 2vw, 2rem);
	font-weight: 300;
	letter-spacing: 0;
	line-height: .7;
	margin: 0 clamp(1rem, 2vw, 2rem);
	opacity: .9;
}

.glossary-path li:nth-child(3),
.glossary-path li:nth-child(4),
.glossary-path li:nth-child(6) { color: #fff; }

.glossary-hero .actions {
	margin: 0;
}

.glossary-hero .actions li {
	padding-left: 0;
}

.glossary-overview {
	background: #fff;
	color: #20233d;
}

.glossary-overview .inner,
.glossary-directory .inner,
.glossary-cluster .inner,
.glossary-sources .inner,
.glossary-cta .inner {
	padding-top: 5.5rem;
	padding-bottom: 5.5rem;
}

.glossary-overview h2,
.glossary-directory h2,
.glossary-cluster h2,
.glossary-sources h2 {
	color: var(--glossary-ink);
	letter-spacing: -.035em;
}

.glossary-overview-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}

.glossary-overview .summary {
	font-size: 1.22rem;
	line-height: 1.7;
}

.glossary-principle {
	border-left: 4px solid var(--glossary-accent);
	padding: 1.5rem 1.75rem;
	background: var(--glossary-paper);
}

.glossary-principle strong {
	display: block;
	color: var(--glossary-ink);
	font-size: 1.08rem;
	margin-bottom: .55rem;
}

.glossary-principle p:last-child { margin-bottom: 0; }

.glossary-directory {
	background: var(--glossary-paper);
	color: #20233d;
	border-top: 1px solid var(--glossary-line);
	border-bottom: 1px solid var(--glossary-line);
}

.glossary-tools {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	margin: 2rem 0;
}

.glossary-search {
	position: relative;
}

.glossary-search label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.glossary-search input[type="search"] {
	background: #fff;
	border: 1px solid rgba(17, 27, 103, .2);
	border-radius: 999px;
	box-shadow: 0 12px 35px rgba(17,27,103,.08);
	color: #20233d;
	height: 3.7rem;
	padding: 0 1.4rem;
}

.glossary-count {
	font-weight: 700;
	color: var(--glossary-ink);
	white-space: nowrap;
}

.glossary-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-bottom: 2rem;
}

.glossary-index {
	background: #fff;
	border: 1px solid var(--glossary-line);
	border-radius: .6rem;
	margin-top: 1rem;
	padding: 0 1.25rem;
}

.glossary-index summary {
	color: var(--glossary-ink);
	cursor: pointer;
	font-weight: 700;
	list-style-position: outside;
	padding: 1.15rem .25rem;
}

.glossary-index summary:focus-visible {
	outline: 2px solid var(--glossary-accent);
	outline-offset: 4px;
}

.glossary-index-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	padding: .5rem .25rem 1.5rem;
}

.glossary-index-group h3 {
	color: var(--glossary-accent);
	font-size: .8rem;
	letter-spacing: .13em;
	margin-bottom: .65rem;
	text-transform: uppercase;
}

.glossary-index-group ul {
	font-size: .83rem;
	line-height: 1.45;
	list-style: none;
	margin: 0;
	padding: 0;
}

.glossary-index-group li { margin-bottom: .45rem; }

button.glossary-filter {
	appearance: none;
	background: #fff;
	border: 1px solid rgba(17,27,103,.17);
	border-radius: 999px;
	box-shadow: none;
	color: var(--glossary-ink) !important;
	cursor: pointer;
	font-size: .72rem;
	font-weight: 700;
	height: auto;
	letter-spacing: .08em;
	line-height: 1.25;
	padding: .8rem 1rem;
	text-transform: uppercase;
}

button.glossary-filter:hover,
button.glossary-filter:focus,
button.glossary-filter[aria-pressed="true"] {
	background: var(--glossary-ink);
	border-color: var(--glossary-ink);
	color: #fff !important;
}

.glossary-cluster {
	background: #fff;
	color: #20233d;
	border-bottom: 1px solid var(--glossary-line);
}

.glossary-cluster:nth-of-type(even) {
	background: #fbfbfe;
}

.glossary-cluster-head {
	display: grid;
	grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
	gap: clamp(2rem, 6vw, 6rem);
	margin-bottom: 3rem;
}

.glossary-section-kicker { color: var(--glossary-accent); }

.glossary-cluster-head p {
	font-size: 1.08rem;
	line-height: 1.75;
}

.glossary-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.glossary-entry {
	background: #fff;
	border: 1px solid var(--glossary-line);
	border-radius: .6rem;
	box-shadow: 0 16px 45px rgba(17,27,103,.055);
	padding: clamp(1.4rem, 3vw, 2.2rem);
	scroll-margin-top: 6.5rem;
}

.glossary-entry:target {
	border-color: var(--glossary-accent);
	box-shadow: 0 0 0 4px rgba(186,41,160,.12), 0 16px 45px rgba(17,27,103,.09);
}

.glossary-entry h3 {
	color: var(--glossary-ink);
	font-size: 1.25rem;
	letter-spacing: -.02em;
	line-height: 1.35;
	margin-bottom: .9rem;
}

.glossary-entry .definition {
	font-size: 1.02rem;
	line-height: 1.65;
	margin-bottom: 1rem;
}

.glossary-entry .definition strong {
	color: var(--glossary-ink);
}

.glossary-entry p:last-child { margin-bottom: 0; }

.glossary-entry .why {
	border-top: 1px solid var(--glossary-line);
	font-size: .9rem;
	line-height: 1.65;
	margin-top: 1rem;
	padding-top: 1rem;
}

.glossary-entry .why strong {
	color: var(--glossary-accent);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.glossary-entry .retoba-practice {
	background: rgba(186, 41, 160, .06);
	border-left: 3px solid var(--glossary-accent);
	border-radius: 0 .45rem .45rem 0;
	font-size: .88rem;
	line-height: 1.65;
	margin-top: 1rem;
	padding: .85rem 1rem;
}

.glossary-entry .retoba-practice strong {
	color: var(--glossary-ink);
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.glossary-entry .retoba-practice a {
	font-weight: 700;
}

/* The global link hover is designed for Retoba's dark sections. Keep links
 * comfortably legible when they sit on the glossary's white and pale cards. */
.glossary-overview a:hover,
.glossary-directory a:hover,
.glossary-cluster a:hover {
	border-bottom-style: solid;
	border-bottom-color: currentColor;
	color: #a8178c !important;
}

.glossary-overview a:active,
.glossary-directory a:active,
.glossary-cluster a:active {
	color: var(--glossary-ink) !important;
}

.glossary-overview a:focus-visible,
.glossary-directory a:focus-visible,
.glossary-cluster a:focus-visible {
	border-bottom-style: solid;
	color: #a8178c !important;
	outline: 2px solid var(--glossary-accent);
	outline-offset: 3px;
}

.glossary-entry .entry-link {
	float: right;
	font-size: .75rem;
	font-weight: 700;
	text-decoration: none;
}

.glossary-entry[hidden],
.glossary-cluster[hidden] {
	display: none;
}

.glossary-empty {
	background: #fff;
	border: 1px dashed rgba(17,27,103,.28);
	color: var(--glossary-ink);
	padding: 2rem;
	text-align: center;
}

.glossary-sources {
	background: #111b67;
}

.glossary-sources h2 { color: #fff; }

.glossary-sources ol {
	font-size: .9rem;
	line-height: 1.75;
}

.glossary-reviewed {
	color: rgba(255,255,255,.72);
	font-size: .85rem;
	margin-top: 2rem;
}

.glossary-cta {
	background: linear-gradient(135deg, #111b67 0%, #ba29a0 100%);
	text-align: center;
}

.glossary-cta h2 {
	font-size: clamp(2.25rem, 5vw, 4.75rem);
	letter-spacing: -.045em;
	margin-left: auto;
	margin-right: auto;
	max-width: 16ch;
}

.glossary-cta p {
	font-size: 1.15rem;
	margin-left: auto;
	margin-right: auto;
	max-width: 48rem;
}

@media screen and (max-width: 980px) {
	.glossary-hero { min-height: 36rem; }
	.glossary-overview-grid,
	.glossary-cluster-head { grid-template-columns: 1fr; gap: 1.5rem; }
	.glossary-path { align-items: flex-start; flex-direction: column; max-width: 20rem; }
	.glossary-path li { flex-direction: column; font-size: 1.05rem; }
	.glossary-path li:not(:last-child)::after {
		content: "\2193";
		font-size: 1.35rem;
		line-height: 1;
		margin: .55rem 0 .55rem .2rem;
	}
	.glossary-list { grid-template-columns: 1fr; }
	.glossary-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 736px) {
	.glossary-page #wrapper > .glossary-hero > .inner { padding-top: 7.5rem; padding-bottom: 3.5rem; }
	.glossary-hero h1 { font-size: clamp(3rem, 16vw, 5.1rem); }
	.glossary-overview .inner,
	.glossary-directory .inner,
	.glossary-cluster .inner,
	.glossary-sources .inner,
	.glossary-cta .inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
	.glossary-tools { grid-template-columns: 1fr; }
	.glossary-count { padding-left: .2rem; }
	.glossary-index-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto !important; }
}
