/*
 * Coin Republic Glossary - frontend
 * Tokens are injected inline from the Design screen; the values below are
 * fallbacks so the stylesheet still renders standalone.
 */

.crg {
	--crg-accent: #F26B21;
	--crg-canvas: #F5F0E8;
	--crg-soft: #FBDFC7;
	--crg-surface: #FFFFFF;
	--crg-ink: #16181D;
	--crg-ink-rgb: 22, 24, 29;
	--crg-accent-rgb: 242, 107, 33;
	--crg-radius: 14px;
	--crg-shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 4px 8px rgba(22, 24, 29, 0.07), 0 12px 20px rgba(22, 24, 29, 0.08);
	--crg-shadow-hover: 0 2px 4px rgba(22, 24, 29, 0.08), 0 8px 16px rgba(22, 24, 29, 0.1), 0 20px 36px rgba(22, 24, 29, 0.14);
	--crg-lift: -5px;
	--crg-gap: 20px;

	color: var(--crg-ink);
	container-type: inline-size;
}

/* Layout classes must never beat the hidden attribute. */
.crg [hidden] {
	display: none !important;
}

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

/* ---------------------------------------------------------------- Archive */

.crg-header {
	margin: 0 0 28px;
}

.crg-header__title {
	margin: 0 0 10px;
	font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--crg-ink);
}

.crg-header__intro {
	max-width: 62ch;
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.6;
	color: rgba(var(--crg-ink-rgb), 0.72);
}

.crg-header__count {
	display: inline-block;
	margin-top: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--crg-soft);
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(var(--crg-ink-rgb), 0.8);
}

.crg-section-title {
	margin: 0 0 16px;
	font-size: 1.35rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

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

.crg-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 18px;
	font-size: 0.85rem;
	color: rgba(var(--crg-ink-rgb), 0.6);
}

.crg-crumbs a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(var(--crg-ink-rgb), 0.2);
}

.crg-crumbs a:hover,
.crg-crumbs a:focus-visible {
	color: var(--crg-accent);
	border-bottom-color: var(--crg-accent);
}

.crg-crumbs__sep {
	opacity: 0.45;
}

/* ---------------------------------------------------------------- Controls */

.crg-search {
	position: relative;
	margin: 0 0 18px;
}

.crg-search__input {
	width: 100%;
	max-width: 460px;
	padding: 13px 16px;
	border: 1px solid rgba(var(--crg-ink-rgb), 0.14);
	border-radius: calc(var(--crg-radius) - 4px);
	background: var(--crg-surface);
	font: inherit;
	font-size: 1rem;
	color: var(--crg-ink);
	box-shadow: 0 1px 2px rgba(var(--crg-ink-rgb), 0.05);
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.crg-search__input::placeholder {
	color: rgba(var(--crg-ink-rgb), 0.42);
}

.crg-search__input:focus {
	outline: none;
	border-color: var(--crg-accent);
	box-shadow: 0 0 0 3px rgba(var(--crg-accent-rgb), 0.22);
}

.crg-search__all {
	display: inline-block;
	margin-left: 12px;
	font-size: 0.88rem;
	color: var(--crg-accent);
	text-decoration: none;
	font-weight: 600;
}

.crg-search__all:hover {
	text-decoration: underline;
}

.crg-suggest {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	width: 100%;
	max-width: 460px;
	padding: 6px;
	border-radius: calc(var(--crg-radius) - 2px);
	background: var(--crg-surface);
	box-shadow: var(--crg-shadow-hover);
}

.crg-suggest__item {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--crg-ink);
	text-decoration: none;
	line-height: 1.4;
}

.crg-suggest__item:hover,
.crg-suggest__item:focus-visible {
	background: var(--crg-soft);
}

.crg-suggest__item strong {
	display: block;
	font-size: 0.95rem;
}

.crg-suggest__item span {
	display: block;
	font-size: 0.82rem;
	color: rgba(var(--crg-ink-rgb), 0.62);
}

.crg-letters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
}

.crg-letter {
	min-width: 34px;
	padding: 7px 9px;
	border: 1px solid rgba(var(--crg-ink-rgb), 0.12);
	border-radius: 8px;
	background: var(--crg-surface);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1;
	color: rgba(var(--crg-ink-rgb), 0.78);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.crg-letter:hover:not(:disabled),
.crg-letter:focus-visible {
	border-color: var(--crg-accent);
	color: var(--crg-accent);
}

.crg-letter.is-active {
	background: var(--crg-accent);
	border-color: var(--crg-accent);
	color: #fff;
}

.crg-letter.is-empty,
.crg-letter:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.crg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.crg-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1px solid rgba(var(--crg-ink-rgb), 0.12);
	border-radius: 999px;
	background: var(--crg-surface);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(var(--crg-ink-rgb), 0.78);
	cursor: pointer;
	transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.crg-chip:hover,
.crg-chip:focus-visible {
	border-color: var(--crg-accent);
	color: var(--crg-accent);
}

.crg-chip.is-active {
	background: var(--crg-ink);
	border-color: var(--crg-ink);
	color: #fff;
}

.crg-chip__n {
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(var(--crg-ink-rgb), 0.08);
	font-size: 0.74rem;
	font-weight: 700;
}

.crg-chip.is-active .crg-chip__n {
	background: rgba(255, 255, 255, 0.18);
}

.crg-index__status {
	margin: 0 0 14px;
	font-size: 0.85rem;
	color: rgba(var(--crg-ink-rgb), 0.6);
}

.crg-index__none,
.crg-empty {
	margin: 22px 0;
	padding: 22px;
	border: 1px dashed rgba(var(--crg-ink-rgb), 0.2);
	border-radius: var(--crg-radius);
	background: rgba(var(--crg-ink-rgb), 0.02);
	text-align: center;
	color: rgba(var(--crg-ink-rgb), 0.68);
}

/* -------------------------------------------------------------------- Grid */

.crg-grid {
	display: grid;
	gap: var(--crg-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crg-grid--1 { grid-template-columns: minmax(0, 1fr); }
.crg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
	.crg-grid,
	.crg-grid--3,
	.crg-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.crg-grid,
	.crg-grid--2,
	.crg-grid--3,
	.crg-grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------- Cards */

.crg-card {
	position: relative;
	display: flex;
	min-height: 100%;
	border-radius: var(--crg-radius);
	background: var(--crg-surface);
	box-shadow: var(--crg-shadow);
	transform: translateZ(0);
	transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.22s ease;
	will-change: transform;
	overflow: hidden;
}

.crg-card:hover,
.crg-card:focus-within {
	box-shadow: var(--crg-shadow-hover);
	transform: translateY(var(--crg-lift));
}

.crg-card__rail {
	flex: 0 0 5px;
	background: linear-gradient(180deg, var(--crg-accent) 0%, rgba(var(--crg-accent-rgb), 0.55) 100%);
}

.crg-card__body {
	flex: 1 1 auto;
	padding: 20px 22px 22px;
}

.crg-card__group {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--crg-soft);
	font-size: 0.74rem;
	font-weight: 700;
	color: rgba(var(--crg-ink-rgb), 0.82);
	text-decoration: none;
}

.crg-card__group:hover,
.crg-card__group:focus-visible {
	background: var(--crg-accent);
	color: #fff;
}

.crg-card__title {
	margin: 0 0 8px;
	font-size: 1.16rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.crg-card__title a {
	color: var(--crg-ink);
	text-decoration: none;
}

.crg-card__title a:hover,
.crg-card__title a:focus-visible {
	color: var(--crg-accent);
}

.crg-card__short {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.55;
	color: rgba(var(--crg-ink-rgb), 0.72);
}

.crg-card__aliases,
.crg-card__count {
	margin: 12px 0 0;
	font-size: 0.79rem;
	color: rgba(var(--crg-ink-rgb), 0.52);
}

.crg-card__content {
	font-size: 1rem;
	line-height: 1.65;
}

.crg-card__content p:last-child {
	margin-bottom: 0;
}

.crg-card--full .crg-card__body {
	padding: 28px 30px 30px;
}

/* Group cards read as a category, not a definition, so they tint the canvas. */
.crg-card--group {
	background: var(--crg-canvas);
}

.crg-card--group .crg-card__title {
	font-size: 1.24rem;
}

/* Link-based letter nav sits tighter than the filtering version. */
.crg-letters--links {
	gap: 5px;
	margin-bottom: 0;
}

.crg-letters--links .crg-letter {
	min-width: 32px;
	padding: 6px 8px;
}

/* Standalone search keeps its input and "browse all" link on one line. */
.crg-search--standalone {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-bottom: 0;
}

.crg-search--standalone .crg-search__input {
	flex: 1 1 260px;
}

/* ------------------------------------------------------------ Card styles */

/* Stacked: an offset paper edge peeking out behind the card. */
.crg--style-stacked .crg-card {
	overflow: visible;
}

.crg--style-stacked .crg-card::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 8px -6px -8px 8px;
	border-radius: var(--crg-radius);
	background: var(--crg-soft);
	transition: inset 0.22s ease;
}

.crg--style-stacked .crg-card:hover::after,
.crg--style-stacked .crg-card:focus-within::after {
	inset: 12px -10px -12px 12px;
}

.crg--style-stacked .crg-card__rail {
	border-radius: var(--crg-radius) 0 0 var(--crg-radius);
}

/* Ticket: a notched accent rail. */
.crg--style-ticket .crg-card__rail {
	flex-basis: 9px;
	background: var(--crg-accent);
	-webkit-mask-image: repeating-linear-gradient(180deg, #000 0 16px, transparent 16px 22px);
	mask-image: repeating-linear-gradient(180deg, #000 0 16px, transparent 16px 22px);
}

/* Slab: a hard offset block instead of a soft shadow. */
.crg--style-slab .crg-card {
	border: 1px solid var(--crg-ink);
	box-shadow: 6px 6px 0 0 var(--crg-ink);
}

.crg--style-slab .crg-card:hover,
.crg--style-slab .crg-card:focus-within {
	box-shadow: 10px 10px 0 0 var(--crg-accent);
	transform: translate(-2px, -2px);
}

/* Outline: line only, no fill. */
.crg--style-outline .crg-card {
	background: transparent;
	border: 1px solid rgba(var(--crg-ink-rgb), 0.18);
	box-shadow: none;
}

.crg--style-outline .crg-card:hover,
.crg--style-outline .crg-card:focus-within {
	border-color: var(--crg-accent);
	box-shadow: var(--crg-shadow);
}

/* -------------------------------------------------------------- 3D tilt */

.crg--tilt .crg-grid {
	perspective: 1400px;
}

.crg-card.is-tilting {
	transition: box-shadow 0.22s ease;
}

.crg--depth-flat .crg-card:hover,
.crg--depth-flat .crg-card:focus-within {
	transform: none;
}

/* ------------------------------------------------------------ Single term */

.crg-single {
	max-width: 1160px;
	margin: 0 auto;
	padding: 34px 20px 56px;
}

.crg-single__head {
	margin: 0 0 24px;
}

.crg-single__title {
	margin: 0 0 12px;
	font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.crg-single__short {
	max-width: 62ch;
	margin: 0;
	padding: 16px 20px;
	border-left: 4px solid var(--crg-accent);
	border-radius: 0 var(--crg-radius) var(--crg-radius) 0;
	background: var(--crg-soft);
	font-size: 1.06rem;
	line-height: 1.55;
	color: rgba(var(--crg-ink-rgb), 0.86);
}

.crg-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
	font-size: 0.85rem;
	color: rgba(var(--crg-ink-rgb), 0.58);
}

.crg-single__body {
	max-width: 68ch;
	margin: 26px 0 0;
	font-size: 1.04rem;
	line-height: 1.7;
}

.crg-single__body p {
	margin: 0 0 1.1em;
}

.crg-single__related {
	margin: 44px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid rgba(var(--crg-ink-rgb), 0.12);
}

.crg-single__back {
	display: inline-block;
	margin-top: 30px;
	font-weight: 600;
	color: var(--crg-accent);
	text-decoration: none;
}

.crg-single__back:hover {
	text-decoration: underline;
}

/* ----------------------------------------------------------- Inline links */

.crg-term-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted rgba(var(--crg-accent-rgb), 0.8);
	cursor: help;
}

.crg-term-link:hover,
.crg-term-link:focus-visible {
	color: var(--crg-accent);
	border-bottom-style: solid;
}

.crg-tip {
	position: absolute;
	z-index: 9999;
	max-width: 300px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--crg-ink);
	color: #fff;
	font-size: 0.86rem;
	line-height: 1.45;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
	pointer-events: none;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.14s ease, transform 0.14s ease;
}

.crg-tip.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.crg-tip strong {
	display: block;
	margin-bottom: 4px;
	color: var(--crg-soft);
}

/* -------------------------------------------------------------- Pagination */

.crg-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 34px 0 0;
}

.crg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(var(--crg-ink-rgb), 0.14);
	border-radius: 10px;
	background: var(--crg-surface);
	color: var(--crg-ink);
	font-weight: 600;
	text-decoration: none;
}

.crg-pagination .page-numbers:hover {
	border-color: var(--crg-accent);
	color: var(--crg-accent);
}

.crg-pagination .page-numbers.current {
	background: var(--crg-accent);
	border-color: var(--crg-accent);
	color: #fff;
}

/* --------------------------------------------------------------- A11y/motion */

.crg :focus-visible {
	outline: 3px solid rgba(var(--crg-accent-rgb), 0.55);
	outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
	.crg-card,
	.crg-card::after,
	.crg-tip {
		transition: none !important;
	}

	.crg-card:hover,
	.crg-card:focus-within {
		transform: none;
	}
}

/* ------------------------------------------------------------- Layout grid */

.crg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--crg-side-w, 320px);
	gap: 44px;
	align-items: start;
}

.crg-layout--left {
	grid-template-columns: var(--crg-side-w, 320px) minmax(0, 1fr);
}

.crg-layout--left .crg-main {
	order: 2;
}

.crg-layout--left .crg-sidebar {
	order: 1;
}

.crg-layout--full {
	display: block;
}

.crg-main {
	min-width: 0;
}

/* With a sidebar in play the card grid loses a column so cards keep their width. */
.crg-layout:not(.crg-layout--full) .crg-grid--3,
.crg-layout:not(.crg-layout--full) .crg-grid--4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
	.crg-layout,
	.crg-layout--left {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.crg-layout--left .crg-main,
	.crg-layout--left .crg-sidebar {
		order: 0;
	}

	.crg-layout:not(.crg-layout--full) .crg-grid--3,
	.crg-layout:not(.crg-layout--full) .crg-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.crg-layout:not(.crg-layout--full) .crg-grid--3,
	.crg-layout:not(.crg-layout--full) .crg-grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------- Sidebar */

/*
 * Sticky needs room to travel. The layout uses align-items:start so the main
 * column keeps its natural height, which would collapse the sidebar column to
 * its content height and leave the inner nothing to stick within. Stretching
 * the column back to the full row height is what makes sticky actually work.
 */
.crg-sidebar {
	align-self: stretch;
	min-width: 0;
	height: 100%;
}

.crg-sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/*
 * An overflow value other than visible on any ancestor silently kills sticky,
 * and themes set it routinely on content wrappers. Reassert it on ours.
 */
.crg-layout,
.crg-main,
.crg-sidebar,
.crg-single {
	overflow: visible;
}

@media (min-width: 1101px) {
	.crg-sidebar__inner--sticky {
		position: sticky;
		top: var(--crg-side-top, 96px);
		/* Long sidebars scroll internally rather than pinning past the viewport. */
		max-height: calc(100vh - var(--crg-side-top, 96px) - 24px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.crg-sidebar__inner--sticky::-webkit-scrollbar {
		width: 6px;
	}

	.crg-sidebar__inner--sticky::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: rgba(22, 24, 29, 0.18);
	}
}

.crg-side-block {
	padding: 20px 22px 22px;
	border-radius: var(--crg-radius, 14px);
	background: var(--crg-surface, #fff);
	box-shadow: var(--crg-shadow, 0 1px 2px rgba(22, 24, 29, 0.06), 0 10px 22px rgba(22, 24, 29, 0.08));
}

.crg-side-block__title {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--crg-soft, #FBDFC7);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--crg-ink, #16181D);
}

/* The widget area carries no chrome of its own so ad units sit flush. */
.crg-side-widgets {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.crg-side-widgets .crg-side-block--widget img {
	max-width: 100%;
	height: auto;
}

.crg-side-block--search {
	background: var(--crg-canvas, #F5F0E8);
	box-shadow: none;
}

.crg-search--side {
	position: relative;
	margin-bottom: 0;
}

/* Lists */

.crg-side-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.crg-side-list li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(22, 24, 29, 0.07);
}

.crg-side-list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.crg-side-list a {
	display: block;
	font-weight: 600;
	color: var(--crg-ink, #16181D);
	text-decoration: none;
}

.crg-side-list a:hover,
.crg-side-list a:focus-visible {
	color: var(--crg-accent, #F26B21);
}

.crg-side-list span {
	display: block;
	margin-top: 2px;
	font-size: 0.86rem;
	line-height: 1.45;
	color: rgba(22, 24, 29, 0.6);
}

.crg-side-list--compact li {
	padding: 7px 0;
}

/* Groups */

.crg-side-groups {
	margin: 0;
	padding: 0;
	list-style: none;
}

.crg-side-groups a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 9px;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--crg-ink, #16181D);
	text-decoration: none;
}

.crg-side-groups a:hover,
.crg-side-groups a:focus-visible {
	background: var(--crg-canvas, #F5F0E8);
	color: var(--crg-accent, #F26B21);
}

.crg-side-groups a.is-current {
	background: var(--crg-soft, #FBDFC7);
}

.crg-side-groups__n {
	flex: none;
	min-width: 24px;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(22, 24, 29, 0.07);
	font-size: 0.75rem;
	text-align: center;
	color: rgba(22, 24, 29, 0.6);
}

/* A to Z inside the sidebar */

.crg-letters--side {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 5px;
}

.crg-letters--side .crg-letter {
	min-width: 0;
	padding: 7px 0;
	text-align: center;
}

/* CTA */

.crg-side-block--cta {
	background: var(--crg-soft, #FBDFC7);
	box-shadow: none;
}

.crg-side-block--cta .crg-side-block__title {
	border-bottom-color: rgba(22, 24, 29, 0.14);
}

.crg-side-cta__text {
	margin: 0 0 14px;
	font-size: 0.92rem;
	line-height: 1.5;
	color: rgba(22, 24, 29, 0.75);
}

.crg-side-cta__link {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--crg-accent, #F26B21);
	font-weight: 700;
	font-size: 0.9rem;
	color: #fff;
	text-decoration: none;
}

.crg-side-cta__link:hover,
.crg-side-cta__link:focus-visible {
	background: var(--crg-ink, #16181D);
	color: #fff;
}

/* ------------------------------------------------- Related term quick nav */

.crg-quicknav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 22px 0 30px;
	padding: 14px 0;
	border-top: 1px solid rgba(22, 24, 29, 0.09);
	border-bottom: 1px solid rgba(22, 24, 29, 0.09);
}

.crg-quicknav__label {
	flex: none;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(22, 24, 29, 0.5);
}

/* The rail scrolls sideways on narrow screens instead of wrapping into a wall. */
.crg-quicknav__rail {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.crg-quicknav__pill {
	display: inline-block;
	padding: 8px 15px;
	border: 1px solid rgba(22, 24, 29, 0.12);
	border-radius: 999px;
	background: var(--crg-surface, #fff);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--crg-ink, #16181D);
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

/* Pills borrow the tooltip hook from autolink but not its inline-link styling. */
.crg-quicknav__pill.crg-term-link {
	border-bottom: 1px solid rgba(22, 24, 29, 0.12);
	cursor: pointer;
}

.crg-quicknav__pill:hover,
.crg-quicknav__pill:focus-visible,
.crg-quicknav__pill.crg-term-link:hover,
.crg-quicknav__pill.crg-term-link:focus-visible {
	transform: translateY(-2px);
	border-color: transparent;
	background: var(--crg-soft, #FBDFC7);
	box-shadow: 0 2px 4px rgba(22, 24, 29, 0.07), 0 8px 16px rgba(22, 24, 29, 0.09);
	color: var(--crg-ink, #16181D);
}

.crg-quicknav__pill--all {
	background: var(--crg-accent, #F26B21);
	border-color: transparent;
	color: #fff;
}

.crg-quicknav__pill--all:hover,
.crg-quicknav__pill--all:focus-visible {
	background: var(--crg-ink, #16181D);
	color: #fff;
}

@media (max-width: 600px) {
	.crg-quicknav__rail {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.crg-quicknav__pill {
		transition: none;
	}

	.crg-quicknav__pill:hover,
	.crg-quicknav__pill:focus-visible {
		transform: none;
	}
}
