.cg-source-authority,
.cg-related-context {
	width: min(100%, 980px);
	margin: 1.5rem auto 2rem;
	padding: 1.15rem 1.25rem;
	border: 1px solid rgba(227, 173, 0, .3);
	background: linear-gradient(135deg, rgba(227, 173, 0, .07), rgba(255, 255, 255, .018));
	color: #d7dbe3;
	line-height: 1.68;
}

/*
 * A Core panel is never a visual hero column. Keep late or cached insertions
 * out of layout until frontend.js moves them after the complete hero.
 */
[class*="hero-grid"] > .cg-source-authority,
[class*="hero-grid"] > .cg-related-context,
[class*="hero-grid"] > .cg-editorial-breadcrumbs {
	display: none !important;
}

.cg-source-authority p,
.cg-related-context p {
	margin: .55rem 0;
}

.cg-source-authority__badge {
	margin: 0 0 .65rem !important;
	color: #e3ad00;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.cg-source-authority__links,
.cg-related-context ul {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1rem;
	margin: .85rem 0 0;
	padding: 0;
	list-style: none;
}

.cg-source-authority a,
.cg-related-context a {
	color: #e3ad00;
	text-underline-offset: .18em;
}

.cg-editorial-breadcrumbs {
	width: min(100%, 980px);
	margin: 0 auto 1.4rem;
	color: rgba(244, 239, 227, .72);
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cg-editorial-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-editorial-breadcrumbs li + li::before {
	margin-right: .45rem;
	color: #e3ad00;
	content: "›";
}

.cg-editorial-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.cg-editorial-breadcrumbs a:hover,
.cg-editorial-breadcrumbs a:focus-visible {
	color: #e3ad00;
}

.cg-current-magisterium h2 {
	margin: .25rem 0 .7rem;
	color: #f7f4ed;
}

.cg-current-magisterium ul {
	margin: 1rem 0 0;
	padding-left: 1.25rem;
}

.cg-current-magisterium li + li {
	margin-top: .65rem;
}

@media (max-width: 640px) {
	.cg-source-authority,
	.cg-related-context {
		padding: 1rem;
	}

	.cg-source-authority__links,
	.cg-related-context ul {
		display: block;
	}

	.cg-source-authority__links a,
	.cg-related-context li {
		display: block;
		margin-top: .55rem;
	}
}
