/**
 * Optional CSS variables for nodebb-plugin-westgate-wiki:
 * wiki shell chrome, `.wiki-article-prose` (read + CKEditor), and compose CKEditor UI.
 * Loaded after tokens so --wg-* are available.
 */
:root {
	/* Shell: parity with forum .card / velvet panels (see _surfaces.scss) */
	--wiki-chrome-surface-bg: var(--wg-velvet-panel);
	--wiki-chrome-surface-border: var(--wg-border-soft);
	--wiki-chrome-radius: 8px;
	--wiki-chrome-heading-color: var(--wg-text);
	--wiki-chrome-page-title-font-family: var(--wg-font-display);
	--wiki-chrome-page-title-font-weight: 500;
	--wiki-chrome-muted-color: var(--wg-text-muted);
	--wiki-chrome-link-color: var(--wg-gold);
	--wiki-chrome-link-hover-color: #e0c878;
	--wiki-chrome-accent-color: var(--wg-gold-soft);
	--wiki-chrome-hero-bg: linear-gradient(
		180deg,
		rgba(42, 18, 34, 0.55) 0%,
		rgba(18, 16, 23, 0.98) 100%
	);
	--wiki-chrome-warning-border: rgba(194, 163, 90, 0.45);
	--wiki-chrome-danger: var(--wg-red);
	--wiki-chrome-danger-hover: #c55a5f;
	--wiki-redlink-color: #c06a6e;
	--wiki-redlink-action-color: #e8a0a0;
	--wiki-redlink-border-color: rgba(200, 90, 96, 0.45);

	/* Article panel: alias of chrome surface (plugin checks these first) */
	--wiki-panel-bg: var(--wg-velvet-panel);
	--wiki-panel-border-color: var(--wg-border-soft);

	--wiki-prose-font-family: var(--wg-font-text);
	--wiki-prose-heading-font-family: var(--wg-font-display);
	--wiki-prose-color: var(--wg-text-soft);
	--wiki-prose-heading-color: var(--wg-text);
	--wiki-prose-large-heading-color: var(--wg-gold);
	--wiki-prose-heading-font-weight: 500;
	--wiki-prose-heading-bold-font-weight: 700;
	--wiki-prose-heading-text-shadow: 2px 2px 10px rgb(0, 0, 0);
	--wiki-prose-h1-size: clamp(2.05rem, 4vw, 2.65rem);
	--wiki-prose-h2-size: clamp(1.68rem, 3vw, 2.12rem);
	--wiki-prose-h3-size: clamp(1.42rem, 2.2vw, 1.64rem);
	--wiki-prose-h4-size: 1.26rem;
	--wiki-prose-heading-rule: linear-gradient(
		90deg,
		rgba(194, 163, 90, 0.42),
		rgba(194, 163, 90, 0.1) 54%,
		transparent
	);

	--wiki-prose-link-color: var(--wg-gold);
	--wiki-prose-link-hover-color: #e0c878;

	--wiki-prose-blockquote-bg: rgba(35, 27, 23, 0.36);
	--wiki-prose-blockquote-border: rgba(194, 163, 90, 0.4);
	--wiki-prose-blockquote-color: var(--wg-text-soft);

	--wiki-prose-code-font-family: var(--wg-font-code);
	--wiki-prose-code-bg: rgba(8, 7, 10, 0.45);
	--wiki-prose-code-border: rgba(194, 163, 90, 0.12);
	--wiki-prose-code-color: var(--wg-text);

	--wiki-prose-pre-bg: linear-gradient(180deg, rgba(18, 15, 22, 0.92), rgba(8, 7, 10, 0.82));
	--wiki-prose-pre-border: rgba(194, 163, 90, 0.22);
	--wiki-prose-pre-color: var(--wg-text-soft);

	--wiki-prose-hr-color: rgba(194, 163, 90, 0.18);
	--wiki-prose-table-border: rgba(194, 163, 90, 0.12);
	--wiki-prose-table-head-color: var(--wg-ledger-ink-muted);
	--wiki-prose-table-hover-bg: rgba(194, 163, 90, 0.04);
	--wiki-prose-table-hover-color: var(--wg-text);

	--wiki-prose-caption-bg: rgba(8, 7, 10, 0.42);
	--wiki-prose-caption-color: var(--wg-text-muted);
	--wiki-prose-caption-font-family: var(--wg-font-text);
	--wiki-prose-footnote-border: rgba(194, 163, 90, 0.2);
	--wiki-prose-footnote-color: var(--wg-text-muted);
	--wiki-prose-footnote-marker-color: var(--wg-gold);
	--wiki-prose-footnote-popover-bg: linear-gradient(180deg, rgba(28, 20, 33, 0.98), rgba(14, 11, 17, 0.98));
	--wiki-prose-footnote-popover-border: rgba(194, 163, 90, 0.26);
	--wiki-prose-footnote-popover-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.035),
		0 14px 30px rgba(0, 0, 0, 0.46);
	--wiki-prose-footnote-target-bg: rgba(194, 163, 90, 0.08);
	--wiki-prose-image-bg: rgba(8, 7, 10, 0.36);
	--wiki-prose-image-border: rgba(194, 163, 90, 0.18);
	--wiki-prose-image-padding: 0;
	--wiki-prose-image-radius: 7px;
	--wiki-prose-image-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.025),
		0 8px 20px rgba(0, 0, 0, 0.18);
	--wiki-prose-media-iframe-border: rgba(194, 163, 90, 0.15);

	--wiki-prose-raw-embed-bg: rgba(8, 7, 10, 0.4);
	--wiki-prose-raw-embed-border: rgba(194, 163, 90, 0.25);
	--wiki-prose-raw-embed-color: var(--wg-text-muted);

	--wiki-compose-editable-bg: rgba(24, 15, 29, 0.94);
	--wiki-compose-editable-border-color: rgba(202, 164, 106, 0.2);
	--wiki-compose-editable-focus-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.026),
		0 0 0 1px rgba(194, 163, 90, 0.3),
		0 0 18px rgba(194, 163, 90, 0.08);

	--wiki-ck-base-background: #18141d;
	--wiki-ck-base-foreground: #1e1824;
	--wiki-ck-base-border: rgba(194, 163, 90, 0.22);
	--wiki-ck-base-text: #cfc5b7;
	/* CKEditor UI: .ck-reset_all and toolbar SVGs use --ck-color-text / currentColor */
	--wiki-ck-ui-text: rgba(244, 236, 220, 0.92);
	--wiki-ck-toolbar-icon-color: rgba(244, 236, 220, 0.9);
	--wiki-ck-tooltip-background: rgba(10, 8, 14, 0.96);
	--wiki-ck-tooltip-text: rgba(244, 236, 220, 0.95);
	--wiki-ck-focus-border: rgba(194, 163, 90, 0.45);
	--wiki-ck-focus-outer-shadow: rgba(194, 163, 90, 0.12);
	--wiki-ck-shadow-drop: rgba(0, 0, 0, 0.45);
	--wiki-ck-shadow-inner: rgba(0, 0, 0, 0.25);
	--wiki-ck-toolbar-background: #16121a;
	--wiki-ck-toolbar-border: rgba(194, 163, 90, 0.18);
	--wiki-ck-button-bg: transparent;
	--wiki-ck-button-hover-bg: rgba(194, 163, 90, 0.1);
	--wiki-ck-button-active-bg: rgba(194, 163, 90, 0.14);
	--wiki-ck-button-on-bg: rgba(194, 163, 90, 0.12);
	--wiki-ck-button-on-hover-bg: rgba(194, 163, 90, 0.18);
	--wiki-ck-button-on-active-bg: rgba(194, 163, 90, 0.22);
	--wiki-ck-button-on-color: #e6d9b8;
	--wiki-ck-dropdown-background: #1a1520;
	--wiki-ck-dropdown-border: rgba(194, 163, 90, 0.2);
	--wiki-ck-input-background: rgba(9, 8, 11, 0.55);
	--wiki-ck-input-border: rgba(194, 163, 90, 0.22);
	--wiki-ck-input-text: #e6e0d6;
	--wiki-ck-list-background: #1a1520;
	--wiki-ck-list-hover-bg: rgba(194, 163, 90, 0.1);
	--wiki-ck-list-on-bg: rgba(194, 163, 90, 0.16);
	--wiki-ck-list-on-text: #f0e6cc;
	--wiki-ck-panel-background: #1a1520;
	--wiki-ck-panel-border: rgba(194, 163, 90, 0.2);
	--wiki-ck-switch-off-bg: #2a2430;
	--wiki-ck-label-bg: #16121a;

	--wiki-fab-bg: rgba(18, 15, 22, 0.9);
	--wiki-fab-border-color: rgba(194, 163, 90, 0.18);
	--wiki-fab-shadow: var(--wg-velvet-shadow);
	--wiki-fab-btn-bg: rgba(194, 163, 90, 0.075);
	--wiki-fab-btn-border: rgba(216, 194, 138, 0.24);
	--wiki-fab-danger-bg: rgba(142, 52, 56, 0.16);

	--wiki-editor-table-handle-layer: 4;
	--wiki-editor-floating-toolbar-layer: 20;
	--wiki-editor-toolbar-layer: 30;

	--wiki-article-drawer-layer: 1010;
	--wiki-article-drawer-backdrop-layer: 1005;
}

/* Wiki surfaces: match forum category/topic panel depth. */
.westgate-wiki .card.wiki-page-hero,
.westgate-wiki .card.wiki-hero,
.westgate-wiki .card.wiki-section-hero,
.westgate-wiki .card.wiki-page-content,
.westgate-wiki .card.wiki-namespace-index,
.westgate-wiki .card.wiki-article-toc,
.westgate-wiki .card.wiki-sidebar-panel,
.westgate-wiki .card.wiki-sidebar-card,
.westgate-wiki .card.wiki-status-card,
.westgate-wiki .card.wiki-card,
.westgate-wiki .card.wiki-topic-card,
.westgate-wiki .card.wiki-compose-form {
	background: var(--wg-velvet-panel) !important;
	border: 1px solid var(--wg-border) !important;
	border-radius: 8px !important;
	box-shadow: var(--wg-velvet-shadow) !important;
	color: var(--wg-text-soft);
	isolation: isolate;
}

.westgate-wiki .card.wiki-page-content,
.westgate-wiki .card.wiki-article-toc,
.westgate-wiki .card.wiki-sidebar-panel,
.westgate-wiki .card.wiki-sidebar-card {
	background: var(--wg-velvet-panel) !important;
	border-color: var(--wg-border) !important;
	font-family: var(--wg-font-text);
}

.westgate-wiki .wiki-article-drawers {
	--wiki-article-drawer-bottom: max(6.5rem, env(safe-area-inset-bottom, 0px));
}

.westgate-wiki .wiki-article-drawer {
	z-index: var(--wiki-article-drawer-layer, 1010);
}

.westgate-wiki .wiki-article-drawer-backdrop {
	z-index: var(--wiki-article-drawer-backdrop-layer, 1005);
}

.westgate-wiki .card.wiki-card:hover,
.westgate-wiki .card.wiki-topic-card:hover {
	background: var(--wg-velvet-panel-hover) !important;
	border-color: rgba(194, 163, 90, 0.22) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.035),
		inset 0 0 38px rgba(120, 36, 84, 0.14),
		0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

.westgate-wiki .card > .card-body {
	background: transparent !important;
}

.westgate-wiki .wiki-page-content.card > .card-body {
	padding: 1rem !important;
}

.westgate-wiki .wiki-page-heading__title {
	font-size: clamp(2rem, 5vw, 2.65rem);
	font-weight: var(--wiki-chrome-page-title-font-weight);
	line-height: 1.05;
}

.westgate-wiki .wiki-page-heading__title--subpage {
	align-items: baseline;
	column-gap: 0.22em;
	display: flex;
	flex-wrap: wrap;
	row-gap: 0.08em;
}

.westgate-wiki .wiki-page-heading__title-part {
	min-inline-size: 0;
}

.westgate-wiki .wiki-page-heading__title-part--parent {
	color: color-mix(in srgb, var(--wg-text-muted) 78%, var(--wg-gold-soft) 22%);
	text-shadow: none;
}

.westgate-wiki .wiki-page-heading__title-separator {
	color: var(--wg-gold);
	font-family: var(--wg-font-ui);
	font-weight: 100;
	line-height: 1;
	text-shadow: 0 0 10px rgba(194, 163, 90, 0.28);
}

.westgate-wiki .wiki-article-prose :where(h1, h2, h3, h4),
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(h1, h2, h3, h4),
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(h1, h2, h3, h4) {
	color: var(--wiki-prose-heading-color) !important;
	font-family: var(--wiki-prose-heading-font-family);
	font-weight: var(--wiki-prose-heading-font-weight);
	letter-spacing: 0;
	line-height: 1.08;
	text-shadow: var(--wiki-prose-heading-text-shadow);
}

.westgate-wiki .wiki-article-prose :where(h1, h2, h3, h4, h5, h6) :where(strong, b),
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(h1, h2, h3, h4, h5, h6) :where(strong, b),
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(h1, h2, h3, h4, h5, h6) :where(strong, b) {
	font-weight: var(--wiki-prose-heading-bold-font-weight) !important;
}

.westgate-wiki .wiki-article-prose :where(h1, h2),
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(h1, h2),
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(h1, h2) {
	color: var(--wiki-prose-large-heading-color) !important;
	margin-block: 0 0.55em;
}

.westgate-wiki .wiki-article-prose h1,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content h1,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content h1 {
	padding-block-end: 0.24em;
	position: relative;
}

.westgate-wiki .wiki-article-prose h1::after,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content h1::after,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content h1::after {
	content: "";
	display: block;
	inline-size: min(14rem, 48%);
	block-size: 1px;
	margin-block-start: 0.24em;
	background: var(--wiki-prose-heading-rule);
}

.westgate-wiki .wiki-article-prose,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content {
	h1:is(
		[style*="text-align: left"],
		[style*="text-align:left"],
		[style*="text-align: center"],
		[style*="text-align:center"],
		[style*="text-align: right"],
		[style*="text-align:right"]
	) {
		display: table;
		max-inline-size: 100%;

		&::after {
			inline-size: 100%;
		}
	}

	h1:is([style*="text-align: left"], [style*="text-align:left"]) {
		margin-inline: 0 auto;
	}

	h1:is([style*="text-align: center"], [style*="text-align:center"]) {
		margin-inline: auto;

		&::after {
			background: var(
				--wiki-prose-heading-rule-center,
				linear-gradient(
					90deg,
					transparent,
					rgba(194, 163, 90, 0.28) 22%,
					rgba(194, 163, 90, 0.82) 50%,
					rgba(194, 163, 90, 0.28) 78%,
					transparent
				)
			);
		}
	}

	h1:is([style*="text-align: right"], [style*="text-align:right"]) {
		margin-inline: auto 0;

		&::after {
			background: var(
				--wiki-prose-heading-rule-right,
				linear-gradient(
					270deg,
					rgba(194, 163, 90, 0.82),
					rgba(194, 163, 90, 0.24) 54%,
					transparent
				)
			);
		}
	}

	h1:has(> :where(strong, b, em, i, u, span, a):only-child)::after {
		content: none;
	}

	h1 > :where(strong, b, em, i, u, span, a):only-child {
		display: inline-block;
		max-width: 100%;

		&::after {
			background: var(--wiki-prose-heading-rule);
			block-size: 1px;
			content: "";
			display: block;
			inline-size: 100%;
			margin-block-start: 0.24em;
		}
	}

	h1:is(
		[style*="text-align: center"],
		[style*="text-align:center"]
	) > :where(strong, b, em, i, u, span, a):only-child::after {
		background: var(
			--wiki-prose-heading-rule-center,
			linear-gradient(
				90deg,
				transparent,
				rgba(194, 163, 90, 0.28) 22%,
				rgba(194, 163, 90, 0.82) 50%,
				rgba(194, 163, 90, 0.28) 78%,
				transparent
			)
		);
	}

	h1:is(
		[style*="text-align: right"],
		[style*="text-align:right"]
	) > :where(strong, b, em, i, u, span, a):only-child::after {
		background: var(
			--wiki-prose-heading-rule-right,
			linear-gradient(
				270deg,
				rgba(194, 163, 90, 0.82),
				rgba(194, 163, 90, 0.24) 54%,
				transparent
			)
		);
	}
}

.westgate-wiki .wiki-article-prose :where(h3, h4),
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(h3, h4),
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(h3, h4) {
	margin-block: 0 0.38em;
	color: #efe6d7 !important;
}

.westgate-wiki .wiki-article-prose :where(:not(figure, img)) ~ :where(h1, h2),
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(:not(figure, img)) ~ :where(h1, h2),
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(:not(figure, img)) ~ :where(h1, h2) {
	margin-block-start: 1.05em;
}

.westgate-wiki .wiki-article-prose :where(:not(figure, img)) ~ :where(h3, h4),
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content :where(:not(figure, img)) ~ :where(h3, h4),
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content :where(:not(figure, img)) ~ :where(h3, h4) {
	margin-block-start: 0.85em;
}

.westgate-wiki .wiki-article-prose h1,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content h1,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content h1 {
	font-size: var(--wiki-prose-h1-size);
}

.westgate-wiki .wiki-article-prose h2,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content h2,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content h2 {
	font-size: var(--wiki-prose-h2-size);
}

.westgate-wiki .wiki-article-prose h3,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content h3,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content h3 {
	font-size: var(--wiki-prose-h3-size);
}

.westgate-wiki .wiki-article-prose h4,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content h4,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content h4 {
	font-size: var(--wiki-prose-h4-size);
}

.westgate-wiki .wiki-page-heading__meta,
.westgate-wiki .wiki-page-byline,
.westgate-wiki .wiki-section-description,
.westgate-wiki .wiki-hub-tagline,
.westgate-wiki .wiki-topic-count,
.westgate-wiki .wiki-card-description,
.westgate-wiki .wiki-index-entry-desc,
.westgate-wiki .wiki-index-entry-meta {
	color: var(--wg-text-muted) !important;
}

.westgate-wiki .wiki-breadcrumb-trail {
	color: var(--wg-text-muted);
	font-family: var(--wg-font-ui);
	font-weight: 600;
	letter-spacing: 0.08em;
}

.westgate-wiki .wiki-breadcrumb-trail__text--current,
.westgate-wiki .wiki-breadcrumb-trail__action {
	color: var(--wg-text);
}

.westgate-wiki :where(.wiki-card h2, .wiki-topic-card h2, .wiki-section-heading h2, .wiki-subsection-card h3) {
	font-family: var(--wg-font-display);
	letter-spacing: 0;
}

.westgate-wiki :where(.wiki-card-link, .wiki-card h2 a, .wiki-topic-list a, .wiki-index-entry-title, .wiki-index-jump-link, .wiki-page-byline__userlink) {
	color: var(--wg-gold) !important;
	text-decoration-color: rgba(194, 163, 90, 0.5);
}

.westgate-wiki :where(.wiki-card-link, .wiki-card h2 a, .wiki-topic-list a, .wiki-index-entry-title, .wiki-index-jump-link, .wiki-page-byline__userlink):hover,
.westgate-wiki :where(.wiki-card-link, .wiki-card h2 a, .wiki-topic-list a, .wiki-index-entry-title, .wiki-index-jump-link, .wiki-page-byline__userlink):focus {
	color: #e0c878 !important;
	text-decoration-color: currentColor;
}

.westgate-wiki .wiki-sidebar-disclosure__summary {
	background: linear-gradient(180deg, rgba(255, 244, 221, 0.025), rgba(0, 0, 0, 0.075)) !important;
	border-bottom-color: rgba(194, 163, 90, 0.11) !important;
	color: var(--wg-text);
	font-family: var(--wg-font-ui);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: none;
}

.westgate-wiki .wiki-sidebar-disclosure__summary:focus {
	box-shadow: inset 0 0 0 2px rgba(194, 163, 90, 0.28) !important;
}

.westgate-wiki .wiki-article-toc__ol.wiki-article-toc__ol--nest {
	border-inline-start-color: rgba(194, 163, 90, 0.18);
}

.westgate-wiki .wiki-article-toc__link,
.westgate-wiki .wiki-sidebar-nav-ns,
.westgate-wiki .wiki-sidebar-root {
	color: #d8c28a !important;
	font-family: var(--wg-font-ui);
}

.westgate-wiki .wiki-sidebar-nav-page,
.westgate-wiki .wiki-sidebar-list a,
.westgate-wiki .wiki-sidebar-parent-path,
.westgate-wiki .wiki-topic-parent-path {
	color: var(--wg-text-muted) !important;
	font-family: var(--wg-font-ui);
}

.westgate-wiki :where(.wiki-topic-list a, .wiki-index-entry-title, .wiki-sidebar-nav-page) {
	align-items: baseline;
	display: inline-flex;
	flex-wrap: nowrap;
	min-inline-size: 0;
	white-space: nowrap;
}

.westgate-wiki .wiki-sidebar-parent-path,
.westgate-wiki .wiki-topic-parent-path {
	display: inline-flex;
	align-items: baseline;
	column-gap: 0.34em;
	color: color-mix(in srgb, var(--wg-text-muted) 78%, var(--wg-gold-soft) 22%) !important;
	font-size: 0.82em;
	font-weight: 600;
	text-transform: none;
}

.westgate-wiki .wiki-sidebar-parent-path__part,
.westgate-wiki .wiki-topic-parent-path__part {
	min-inline-size: 0;
}

.westgate-wiki .wiki-topic-title-separator {
	display: inline-block;
	margin-inline: 0.34em;
	color: var(--wg-gold);
	font-family: var(--wg-font-ui);
	font-weight: 700;
	text-shadow: 0 0 8px rgba(194, 163, 90, 0.22);
}

.westgate-wiki .wiki-namespace-directory {
	--wiki-tree-indent: 1.28rem;
	--wiki-tree-line-color: rgba(194, 163, 90, 0.34);
	margin-block-start: 0.78rem;
}

.westgate-wiki .wiki-directory-filter {
	background:
		linear-gradient(180deg, rgba(255, 244, 221, 0.028), rgba(0, 0, 0, 0.1)),
		rgba(8, 7, 10, 0.4) !important;
	border-color: rgba(194, 163, 90, 0.18) !important;
	border-radius: 7px !important;
	box-shadow: inset 0 1px 0 rgba(255, 244, 221, 0.035);
	color: var(--wg-text-soft) !important;
	font-family: var(--wg-font-ui);
	min-block-size: 2.28rem;
}

.westgate-wiki .wiki-directory-filter::placeholder {
	color: color-mix(in srgb, var(--wg-text-muted) 82%, transparent);
}

.westgate-wiki .wiki-directory-filter:focus {
	background:
		linear-gradient(180deg, rgba(255, 244, 221, 0.04), rgba(0, 0, 0, 0.08)),
		rgba(14, 11, 17, 0.76) !important;
	border-color: rgba(194, 163, 90, 0.38) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.04),
		0 0 0 0.18rem rgba(194, 163, 90, 0.09) !important;
	color: var(--wg-text) !important;
}

.westgate-wiki .wiki-index-jump--dynamic {
	background: rgba(8, 7, 10, 0.18);
	border-block: 1px solid rgba(194, 163, 90, 0.1);
	gap: 0.36rem;
	margin-block: 0.72rem 0.9rem !important;
	padding-block: 0.46rem;
}

.westgate-wiki .wiki-index-jump-link {
	background:
		linear-gradient(180deg, rgba(255, 244, 221, 0.035), rgba(0, 0, 0, 0.1)),
		rgba(194, 163, 90, 0.045) !important;
	border-color: rgba(194, 163, 90, 0.16) !important;
	box-shadow: inset 0 1px 0 rgba(255, 244, 221, 0.03);
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.westgate-wiki .wiki-index-jump-link:hover,
.westgate-wiki .wiki-index-jump-link:focus,
.westgate-wiki .wiki-index-jump-link.is-active {
	background:
		linear-gradient(180deg, rgba(194, 163, 90, 0.14), rgba(81, 25, 61, 0.12)),
		rgba(194, 163, 90, 0.08) !important;
	border-color: rgba(216, 194, 138, 0.36) !important;
	color: #fff4dd !important;
	transform: translateY(-1px);
}

.westgate-wiki .wiki-index-list {
	list-style: none;
	padding-inline-start: 0;
}

.westgate-wiki .wiki-index-list:has(.wiki-index-entry--subpage) {
	column-count: auto;
	column-gap: 0;
	display: block;
}

.westgate-wiki .wiki-namespace-directory .wiki-index-entry {
	margin-block: 0 0.42rem;
	position: relative;
}

.westgate-wiki .wiki-namespace-directory .wiki-index-entry-main {
	align-items: center;
	min-block-size: 1.8rem;
	padding: 0.18rem 0;
	position: relative;
	transition: color 0.16s ease, text-shadow 0.16s ease;
}

.westgate-wiki .wiki-namespace-directory .wiki-index-entry:not(.wiki-index-entry--subpage) .wiki-index-entry-main::before {
	background: radial-gradient(circle, #e0c878 0 30%, rgba(194, 163, 90, 0.28) 31% 58%, transparent 59%);
	block-size: 0.42rem;
	content: "";
	inline-size: 0.42rem;
	margin-inline: 0.28rem 0.26rem;
}

.westgate-wiki .wiki-index-entry--subpage {
	list-style: none;
	margin-block: -0.16rem 0.28rem;
	margin-inline-start: calc(var(--wiki-title-depth, 1) * var(--wiki-tree-indent, 1.28rem));
	padding-inline-start: 0.84rem;
	position: relative;
}

.westgate-wiki .wiki-namespace-directory .wiki-index-entry--subpage .wiki-index-entry-main {
	min-block-size: 1.62rem;
	padding-block: 0.1rem;
}

.westgate-wiki .wiki-index-entry--subpage::before {
	background: linear-gradient(90deg, var(--wiki-tree-line-color, rgba(194, 163, 90, 0.34)), rgba(194, 163, 90, 0.12));
	position: absolute;
	block-size: 1px;
	content: "";
	inline-size: 0.86rem;
	inset-block-start: 1.02rem;
	inset-inline-start: -0.08rem;
}

.westgate-wiki .wiki-index-entry--subpage::after {
	background: linear-gradient(180deg, rgba(194, 163, 90, 0.08), var(--wiki-tree-line-color, rgba(194, 163, 90, 0.34)));
	block-size: 1.18rem;
	content: "";
	inline-size: 1px;
	inset-block-start: -0.12rem;
	inset-inline-start: -0.08rem;
	position: absolute;
}

.westgate-wiki .wiki-index-entry--subpage .wiki-topic-parent-path,
.westgate-wiki .wiki-index-entry--subpage .wiki-topic-title-separator,
.westgate-wiki .wiki-topic-list__item--subpage .wiki-topic-parent-path,
.westgate-wiki .wiki-topic-list__item--subpage .wiki-topic-title-separator {
	display: none;
}

.westgate-wiki .wiki-index-entry--subpage .wiki-index-entry-title,
.westgate-wiki .wiki-topic-list__item--subpage a {
	color: color-mix(in srgb, var(--wg-gold) 86%, var(--wg-text-muted) 14%) !important;
}

.westgate-wiki .wiki-namespace-directory .wiki-index-entry-title {
	line-height: 1.28;
	min-inline-size: 0;
	overflow-wrap: anywhere;
	text-decoration: none !important;
	white-space: normal;
}

.westgate-wiki .wiki-namespace-directory .wiki-index-entry-main:hover .wiki-index-entry-title,
.westgate-wiki .wiki-namespace-directory .wiki-index-entry-main:focus-within .wiki-index-entry-title {
	color: #fff4dd !important;
	text-shadow: 0 0 10px rgba(194, 163, 90, 0.16);
}

.westgate-wiki .wiki-index-entry--subpage[style*="--wiki-title-depth: 2"] .wiki-index-entry-title,
.westgate-wiki .wiki-topic-list__item--subpage[style*="--wiki-title-depth: 2"] a {
	color: color-mix(in srgb, var(--wg-gold) 78%, var(--wg-text-muted) 22%) !important;
	font-size: 0.96em;
}

.westgate-wiki .wiki-index-entry--subpage[style*="--wiki-title-depth: 3"] .wiki-index-entry-title,
.westgate-wiki .wiki-topic-list__item--subpage[style*="--wiki-title-depth: 3"] a {
	color: color-mix(in srgb, var(--wg-gold) 70%, var(--wg-text-muted) 30%) !important;
	font-size: 0.93em;
}

.westgate-wiki .wiki-topic-list__item--subpage {
	--wiki-tree-indent: 1rem;
	--wiki-tree-line-color: rgba(194, 163, 90, 0.36);
	list-style: none;
	margin-block-start: -0.15rem;
	margin-inline-start: calc(var(--wiki-title-depth, 1) * var(--wiki-tree-indent));
	padding-inline-start: 0.52rem;
	position: relative;
}

.westgate-wiki .wiki-topic-list__item--subpage::before {
	background: linear-gradient(90deg, var(--wiki-tree-line-color), rgba(194, 163, 90, 0.12));
	position: absolute;
	block-size: 1px;
	content: "";
	inline-size: 0.66rem;
	inset-block-start: 0.7em;
	inset-inline-start: -0.3rem;
}

.westgate-wiki .wiki-topic-list__item--subpage::after {
	background: linear-gradient(180deg, rgba(194, 163, 90, 0.08), var(--wiki-tree-line-color));
	block-size: 0.44em;
	content: "";
	inline-size: 1px;
	inset-block-start: 0.28em;
	inset-inline-start: -0.3rem;
	position: absolute;
}

.westgate-wiki .wiki-sidebar-page-title,
.westgate-wiki .wiki-topic-title-leaf {
	display: inline;
	min-inline-size: 0;
}

.westgate-wiki .wiki-directory-status {
	color: var(--wg-text-muted) !important;
	font-family: var(--wg-font-ui);
	margin-block-start: 0.72rem;
}

.westgate-wiki .wiki-article-toc__link {
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.35;
}

.westgate-wiki .wiki-sidebar-merged-nav h2,
.westgate-wiki .wiki-sidebar-card h2 {
	color: var(--wg-text);
	font-family: var(--wg-font-display);
	font-weight: 600;
	letter-spacing: 0;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 10px rgba(104, 32, 76, 0.16);
}

.westgate-wiki .wiki-sidebar-nav-ns,
.westgate-wiki .wiki-sidebar-nav-page,
.westgate-wiki .wiki-sidebar-root,
.westgate-wiki .wiki-sidebar-list a {
	line-height: 1.35;
	text-decoration: none;
}

.westgate-wiki .wiki-sidebar-directory {
	--wiki-sidebar-tree-indent: 1.1rem;
	--wiki-sidebar-tree-line-color: rgba(194, 163, 90, 0.26);
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-nav-rows--child-pages {
	border-inline-start-color: rgba(194, 163, 90, 0.16) !important;
	margin-inline-start: 0.42rem;
	padding-inline-start: 0.66rem;
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-nav-row--page {
	position: relative;
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-nav-row--page:has(.wiki-sidebar-parent-path) {
	--wiki-sidebar-row-depth: 1;
	margin-block-start: 0.26rem;
	padding-inline-start: calc(0.35rem + (var(--wiki-sidebar-row-depth) * var(--wiki-sidebar-tree-indent)));
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-nav-row--page:has(.wiki-sidebar-parent-path__part:nth-of-type(3)) {
	--wiki-sidebar-row-depth: 2;
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-nav-row--page:has(.wiki-sidebar-parent-path__part:nth-of-type(5)) {
	--wiki-sidebar-row-depth: 3;
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-nav-row--page:has(.wiki-sidebar-parent-path__part:nth-of-type(7)) {
	--wiki-sidebar-row-depth: 4;
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-nav-row--page:has(.wiki-sidebar-parent-path)::before {
	background: linear-gradient(90deg, var(--wiki-sidebar-tree-line-color), rgba(194, 163, 90, 0.08));
	block-size: 1px;
	content: "";
	inline-size: 0.7rem;
	inset-block-start: 0.78em;
	inset-inline-start: calc(0.18rem + ((var(--wiki-sidebar-row-depth, 1) - 1) * var(--wiki-sidebar-tree-indent)));
	position: absolute;
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-nav-row--page:has(.wiki-sidebar-parent-path)::after {
	background: linear-gradient(180deg, rgba(194, 163, 90, 0.06), var(--wiki-sidebar-tree-line-color));
	block-size: 0.58em;
	content: "";
	inline-size: 1px;
	inset-block-start: 0.22em;
	inset-inline-start: calc(0.18rem + ((var(--wiki-sidebar-row-depth, 1) - 1) * var(--wiki-sidebar-tree-indent)));
	position: absolute;
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-nav-page {
	align-items: baseline;
	display: inline-flex;
	flex-direction: row;
	gap: 0;
	min-inline-size: 0;
	max-inline-size: 100%;
	white-space: normal;
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-parent-path,
.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-parent-path + .wiki-topic-title-separator {
	display: none !important;
}

.westgate-wiki .wiki-sidebar-directory .wiki-sidebar-page-title {
	display: inline;
	min-inline-size: 0;
	overflow-wrap: anywhere;
}

.westgate-wiki .wiki-sidebar-nav-ns:hover,
.westgate-wiki .wiki-sidebar-nav-ns:focus,
.westgate-wiki .wiki-sidebar-nav-page:hover,
.westgate-wiki .wiki-sidebar-nav-page:focus,
.westgate-wiki .wiki-sidebar-root:hover,
.westgate-wiki .wiki-sidebar-root:focus,
.westgate-wiki .wiki-sidebar-list a:hover,
.westgate-wiki .wiki-sidebar-list a:focus {
	text-decoration: underline !important;
	text-decoration-color: rgba(194, 163, 90, 0.55);
	text-underline-offset: 0.12em;
}

.westgate-wiki .wiki-sidebar-nav-row {
	border-radius: 6px;
	transition: background 0.16s ease, color 0.16s ease;
}

.westgate-wiki .wiki-sidebar-nav-row.is-active .wiki-sidebar-nav-page,
.westgate-wiki .wiki-sidebar-list .is-active a {
	color: var(--wg-gold) !important;
}

.westgate-wiki .wiki-sidebar-divider,
.westgate-wiki .wiki-index-section-rule,
.westgate-wiki .wiki-index-letter {
	border-color: rgba(194, 163, 90, 0.13) !important;
}

.westgate-wiki .wiki-index-entry-badge {
	background: rgba(194, 163, 90, 0.055) !important;
	border-color: rgba(194, 163, 90, 0.14) !important;
}

.westgate-wiki .wiki-fab-dock--floating {
	z-index: var(--wiki-article-drawer-backdrop-layer, 1005);
}

.westgate-wiki .wiki-fab-dock-inner {
	background: rgba(18, 15, 22, 0.9) !important;
	border-color: rgba(194, 163, 90, 0.18) !important;
	border-radius: 8px !important;
	box-shadow: var(--wg-velvet-shadow) !important;
}

.westgate-wiki .wiki-fab-btn {
	background: rgba(194, 163, 90, 0.075) !important;
	border-color: rgba(216, 194, 138, 0.24) !important;
	border-radius: 6px !important;
	color: var(--wg-gold) !important;
	text-decoration: none !important;
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.westgate-wiki .wiki-fab-btn:hover,
.westgate-wiki .wiki-fab-btn:focus,
.westgate-wiki .wiki-fab-btn:active {
	background: rgba(194, 163, 90, 0.13) !important;
	border-color: rgba(216, 194, 138, 0.44) !important;
	color: #fff4dd !important;
	text-decoration: none !important;
}

.westgate-wiki .wiki-fab-btn--danger,
.westgate-wiki .wiki-fab-btn.wiki-delete-page {
	background: rgba(142, 52, 56, 0.16) !important;
	border-color: rgba(197, 90, 95, 0.36) !important;
	color: #d98286 !important;
}

.westgate-wiki .wiki-fab-btn--danger:hover,
.westgate-wiki .wiki-fab-btn--danger:focus,
.westgate-wiki .wiki-fab-btn.wiki-delete-page:hover,
.westgate-wiki .wiki-fab-btn.wiki-delete-page:focus {
	background: rgba(142, 52, 56, 0.24) !important;
	border-color: rgba(197, 90, 95, 0.54) !important;
	color: #f0a2a5 !important;
	text-decoration: none !important;
}

.westgate-wiki-compose .wiki-compose-form {
	padding: 1rem !important;
}

.westgate-wiki-compose .wiki-editor__content .column-resize-handle,
.westgate-wiki-compose .wiki-editor-table-resize-handle {
	z-index: var(--wiki-editor-table-handle-layer, 4) !important;
}

.westgate-wiki-compose .wiki-editor__toolbar-mount,
.westgate-wiki-compose .wiki-editor-table-sticky-row {
	z-index: var(--wiki-editor-toolbar-layer, 30) !important;
}

.westgate-wiki-compose .wiki-editor-context-tools,
.westgate-wiki-compose .wiki-editor-image-tools,
.westgate-wiki-compose .wiki-editor-table-cell-popover {
	z-index: var(--wiki-editor-floating-toolbar-layer, 20) !important;
}

.westgate-wiki-compose .form-label {
	color: var(--wg-text-soft);
	font-family: var(--wg-font-ui);
	font-weight: 600;
}

.westgate-wiki-compose .text-muted,
.westgate-wiki-compose .small {
	color: var(--wg-text-muted) !important;
}

.westgate-wiki-compose .ck.ck-editor {
	--ck-spacing-tiny: 0.28rem;
	--ck-spacing-small: 0.42rem;
	--ck-spacing-standard: 0.62rem;
	--ck-color-button-default-background: var(--wiki-ck-button-bg);
	--ck-color-button-default-hover-background: var(--wiki-ck-button-hover-bg);
	--ck-color-button-default-active-background: var(--wiki-ck-button-active-bg);
	--ck-color-button-on-background: var(--wiki-ck-button-on-bg);
	--ck-color-button-on-hover-background: var(--wiki-ck-button-on-hover-bg);
	--ck-color-button-on-active-background: var(--wiki-ck-button-on-active-bg);
	--ck-color-button-on-color: var(--wiki-ck-button-on-color);
	color: var(--wiki-ck-ui-text);
}

.westgate-wiki-compose .ck.ck-toolbar {
	background: var(--wiki-ck-toolbar-background) !important;
	border-color: var(--wiki-ck-toolbar-border) !important;
	border-radius: 8px 8px 0 0 !important;
	padding: 0.28rem !important;
}

.westgate-wiki-compose .ck.ck-toolbar__items {
	gap: 0.12rem;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button {
	background: var(--wiki-ck-button-bg) !important;
	border: 1px solid transparent !important;
	border-radius: 5px !important;
	color: var(--wiki-ck-toolbar-icon-color) !important;
	min-height: 2rem;
	min-width: 2rem;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button:hover,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button:focus,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button:active,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button:hover,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button:focus,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button:active,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button.ck-on,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button.ck-on {
	background: var(--wiki-ck-button-hover-bg) !important;
	border-color: rgba(194, 163, 90, 0.2) !important;
	color: #fff4dd !important;
	box-shadow: inset 0 1px 0 rgba(255, 244, 221, 0.035);
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button.ck-on,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button.ck-on {
	background: var(--wiki-ck-button-on-bg) !important;
	border-color: rgba(194, 163, 90, 0.3) !important;
	color: var(--wiki-ck-button-on-color) !important;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button.ck-on:hover,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button.ck-on:focus,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button.ck-on:hover,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button.ck-on:focus {
	background: var(--wiki-ck-button-on-hover-bg) !important;
	color: #fff4dd !important;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button:focus-visible,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button:focus-visible {
	outline: 2px solid rgba(194, 163, 90, 0.28) !important;
	outline-offset: 1px;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button.ck-disabled,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button.ck-disabled {
	background: transparent !important;
	border-color: transparent !important;
	color: rgba(185, 178, 166, 0.42) !important;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button .ck-icon,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button .ck-icon {
	color: currentColor !important;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button .ck-icon *,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-dropdown__button .ck-icon * {
	fill: currentColor !important;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-splitbutton {
	border-radius: 5px !important;
	overflow: hidden;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-splitbutton > .ck.ck-button,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-splitbutton > .ck.ck-dropdown__button {
	border-radius: 0 !important;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-splitbutton:hover > .ck.ck-button,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-splitbutton:hover > .ck.ck-dropdown__button {
	background: var(--wiki-ck-button-hover-bg) !important;
	border-color: rgba(194, 163, 90, 0.2) !important;
	color: #fff4dd !important;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-color-selector__remove-color,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-input-color__button,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button_with-text {
	background: var(--wiki-ck-button-bg) !important;
	color: var(--wiki-ck-toolbar-icon-color) !important;
}

.westgate-wiki-compose .ck.ck-toolbar .ck.ck-color-selector__remove-color:hover,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-color-selector__remove-color:focus,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-input-color__button:hover,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-input-color__button:focus,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button_with-text:hover,
.westgate-wiki-compose .ck.ck-toolbar .ck.ck-button_with-text:focus {
	background: var(--wiki-ck-button-hover-bg) !important;
	border-color: rgba(194, 163, 90, 0.2) !important;
	color: #fff4dd !important;
}

.westgate-wiki-compose .ck.ck-editor__main > .ck.ck-editor__editable,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose {
	background: var(--wiki-compose-editable-bg) !important;
	border-color: var(--wiki-compose-editable-border-color) !important;
	border-radius: 0 0 8px 8px !important;
	color: var(--wg-text-soft) !important;
}

.westgate-wiki .wiki-article-prose pre,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content pre,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content pre {
	background: var(--wiki-prose-pre-bg) !important;
	border: 1px solid var(--wiki-prose-pre-border) !important;
	border-radius: 7px !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.035),
		inset 0 0 0 1px rgba(8, 7, 10, 0.45),
		inset 0 -8px 24px rgba(0, 0, 0, 0.22),
		0 8px 18px rgba(0, 0, 0, 0.18) !important;
	color: var(--wiki-prose-pre-color) !important;
}

.westgate-wiki .wiki-article-prose pre code,
.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content pre code,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content pre code {
	background: transparent !important;
	border: 0 !important;
	color: var(--wiki-prose-pre-color) !important;
	font-family: var(--wg-font-code) !important;
}

.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-content pre[data-language]::after,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-content pre[data-language]::after,
.westgate-wiki-compose .ck-code-block-language-label {
	background: rgba(194, 163, 90, 0.14) !important;
	border: 1px solid rgba(194, 163, 90, 0.22) !important;
	border-radius: 0 0 0 5px !important;
	color: var(--wg-text-soft) !important;
	font-family: var(--wg-font-ui) !important;
	font-size: 0.72rem !important;
	font-weight: 600 !important;
}

.westgate-wiki-compose .ck-source-editing-area,
.westgate-wiki-compose .ck-source-editing-area textarea,
.westgate-wiki-compose .ck.ck-source-editing-area,
.westgate-wiki-compose textarea.ck-source-editing-area {
	background: rgba(9, 8, 11, 0.92) !important;
	color: var(--wg-text-soft) !important;
}

.westgate-wiki-compose .ck-source-editing-area textarea,
.westgate-wiki-compose textarea.ck-source-editing-area {
	border-color: rgba(194, 163, 90, 0.24) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.025),
		inset 0 0 0 1px rgba(8, 7, 10, 0.45) !important;
	caret-color: var(--wg-gold);
	font-family: var(--wg-font-code) !important;
}

.westgate-wiki-compose .ck-source-editing-area textarea:focus,
.westgate-wiki-compose textarea.ck-source-editing-area:focus {
	border-color: rgba(194, 163, 90, 0.45) !important;
	box-shadow: var(--wiki-compose-editable-focus-shadow) !important;
	outline: none !important;
}

.westgate-wiki-compose .wiki-article-prose .ck.ck-editor__editable_inline.ck-focused,
.westgate-wiki-compose .ck.ck-editor__editable_inline.wiki-article-prose.ck-focused {
	border-color: rgba(194, 163, 90, 0.45) !important;
	box-shadow: var(--wiki-compose-editable-focus-shadow) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-dropdown__panel,
body:has(#westgate-wiki-compose) .ck.ck-balloon-panel:not(.ck-powered-by-balloon),
body:has(#westgate-wiki-compose) .ck.ck-dialog {
	--ck-color-button-default-background: var(--wiki-ck-button-bg);
	--ck-color-button-default-hover-background: var(--wiki-ck-button-hover-bg);
	--ck-color-button-default-active-background: var(--wiki-ck-button-active-bg);
	--ck-color-button-action-background: rgba(194, 163, 90, 0.18);
	--ck-color-button-action-hover-background: rgba(194, 163, 90, 0.26);
	--ck-color-button-action-active-background: rgba(194, 163, 90, 0.32);
	--ck-color-button-action-disabled-background: transparent;
	--ck-color-button-action-text: #fff4dd;
	--ck-color-button-on-background: var(--wiki-ck-button-on-bg);
	--ck-color-button-on-hover-background: var(--wiki-ck-button-on-hover-bg);
	--ck-color-button-on-active-background: var(--wiki-ck-button-on-active-bg);
	--ck-color-button-on-color: var(--wiki-ck-button-on-color);
	--ck-color-input-disabled-background: rgba(9, 8, 11, 0.34);
	--ck-color-input-disabled-border: rgba(194, 163, 90, 0.12);
	--ck-color-input-disabled-text: rgba(185, 178, 166, 0.42);
	--ck-color-labeled-field-label-background: var(--wiki-ck-panel-background);
	background: var(--wiki-ck-panel-background) !important;
	border-color: var(--wiki-ck-panel-border) !important;
	color: var(--wiki-ck-ui-text) !important;
	font-family: var(--wg-font-ui) !important;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-balloon-panel:not(.ck-powered-by-balloon) :where(.ck, .ck-label, .ck-button__label, .ck-form__header__label, .ck-labeled-field-view__status),
body:has(#westgate-wiki-compose) .ck.ck-dialog :where(.ck, .ck-label, .ck-button__label, .ck-form__header__label, .ck-labeled-field-view__status) {
	color: inherit;
	font-family: var(--wg-font-ui) !important;
	letter-spacing: 0 !important;
}

body:has(#westgate-wiki-compose) .ck.ck-form__header {
	background: linear-gradient(180deg, rgba(255, 244, 221, 0.025), rgba(0, 0, 0, 0.075)) !important;
	border-bottom-color: rgba(194, 163, 90, 0.16) !important;
	color: var(--wg-text) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-form__header .ck-form__header__label {
	color: var(--wg-text) !important;
	font-family: var(--wg-font-ui) !important;
	font-size: 0.96rem !important;
	font-weight: 700 !important;
}

body:has(#westgate-wiki-compose) .ck.ck-dropdown__panel .ck.ck-button:not(.ck-color-grid__tile),
body:has(#westgate-wiki-compose) .ck.ck-balloon-panel:not(.ck-powered-by-balloon) .ck.ck-button:not(.ck-color-grid__tile),
body:has(#westgate-wiki-compose) .ck.ck-dialog .ck.ck-button:not(.ck-color-grid__tile) {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--wiki-ck-ui-text) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-dropdown__panel .ck.ck-button:not(.ck-color-grid__tile):hover,
body:has(#westgate-wiki-compose) .ck.ck-dropdown__panel .ck.ck-button:not(.ck-color-grid__tile):focus,
body:has(#westgate-wiki-compose) .ck.ck-balloon-panel:not(.ck-powered-by-balloon) .ck.ck-button:not(.ck-color-grid__tile):hover,
body:has(#westgate-wiki-compose) .ck.ck-balloon-panel:not(.ck-powered-by-balloon) .ck.ck-button:not(.ck-color-grid__tile):focus,
body:has(#westgate-wiki-compose) .ck.ck-dialog .ck.ck-button:not(.ck-color-grid__tile):hover,
body:has(#westgate-wiki-compose) .ck.ck-dialog .ck.ck-button:not(.ck-color-grid__tile):focus {
	background: var(--wiki-ck-button-hover-bg) !important;
	border-color: rgba(194, 163, 90, 0.2) !important;
	color: #fff4dd !important;
}

body:has(#westgate-wiki-compose) .ck.ck-dropdown__panel .ck.ck-button:not(.ck-color-grid__tile).ck-on,
body:has(#westgate-wiki-compose) .ck.ck-balloon-panel:not(.ck-powered-by-balloon) .ck.ck-button:not(.ck-color-grid__tile).ck-on,
body:has(#westgate-wiki-compose) .ck.ck-dialog .ck.ck-button:not(.ck-color-grid__tile).ck-on {
	background: var(--wiki-ck-button-on-bg) !important;
	border-color: rgba(194, 163, 90, 0.28) !important;
	color: var(--wiki-ck-button-on-color) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-balloon-panel:not(.ck-powered-by-balloon) .ck.ck-button-action,
body:has(#westgate-wiki-compose) .ck.ck-dialog .ck.ck-button-action {
	background: rgba(194, 163, 90, 0.18) !important;
	border-color: rgba(194, 163, 90, 0.3) !important;
	color: #fff4dd !important;
	font-weight: 700 !important;
}

body:has(#westgate-wiki-compose) .ck.ck-balloon-panel:not(.ck-powered-by-balloon) .ck.ck-button.ck-disabled,
body:has(#westgate-wiki-compose) .ck.ck-dialog .ck.ck-button.ck-disabled {
	background: transparent !important;
	border-color: transparent !important;
	color: rgba(185, 178, 166, 0.42) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-labeled-field-view > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
body:has(#westgate-wiki-compose) .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
	background: var(--wiki-ck-panel-background) !important;
	color: var(--wg-text-soft) !important;
	font-family: var(--wg-font-ui) !important;
	font-size: 0.78rem !important;
	font-weight: 500 !important;
	text-shadow: none !important;
}

body:has(#westgate-wiki-compose) .ck.ck-labeled-field-view.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
body:has(#westgate-wiki-compose) .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
	color: rgba(185, 178, 166, 0.58) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck-results-counter,
body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck-labeled-field-view__status {
	color: var(--wg-text-muted) !important;
	font-family: var(--wg-font-ui) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-balloon-panel.ck-find-and-replace-form,
body:has(#westgate-wiki-compose) .ck.ck-dialog .ck.ck-find-and-replace-form {
	background: var(--wiki-ck-panel-background) !important;
	border-color: var(--wiki-ck-panel-border) !important;
	color: var(--wiki-ck-ui-text) !important;
	font-family: var(--wg-font-ui) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck.ck-form__header,
body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs,
body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck-find-and-replace-form__actions {
	background: transparent !important;
	color: var(--wiki-ck-ui-text) !important;
	font-family: var(--wg-font-ui) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form h2.ck-form__header__label,
body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck-form__header__label,
body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck-button__label,
body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck-label {
	color: inherit !important;
	font-family: var(--wg-font-ui) !important;
	letter-spacing: 0 !important;
	text-shadow: none !important;
}

body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck.ck-input,
body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form input.ck-input-text {
	background: rgba(9, 8, 11, 0.68) !important;
	border-color: rgba(194, 163, 90, 0.24) !important;
	color: var(--wg-text) !important;
	font-family: var(--wg-font-ui) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck.ck-input::placeholder,
body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form input.ck-input-text::placeholder {
	color: rgba(185, 178, 166, 0.62) !important;
	opacity: 1 !important;
}

body:has(#westgate-wiki-compose) .ck.ck-find-and-replace-form .ck.ck-button-find {
	color: #fff4dd !important;
	font-family: var(--wg-font-ui) !important;
	font-weight: 700 !important;
}

.westgate-wiki-compose .ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label,
body:has(#westgate-wiki-compose) .ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-button__label {
	font-family: var(--wg-font-ui) !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
}

body:has(#westgate-wiki-compose) .ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck[class*="ck-heading_heading"] .ck-button__label {
	font-family: var(--wg-font-display) !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
}

body:has(#westgate-wiki-compose) .ck.ck-dropdown.ck-heading-dropdown .ck-heading_heading1 .ck-button__label {
	font-size: 1.35rem !important;
}

body:has(#westgate-wiki-compose) .ck.ck-dropdown.ck-heading-dropdown .ck-heading_heading2 .ck-button__label {
	font-size: 1.16rem !important;
}

body:has(#westgate-wiki-compose) .ck.ck-dropdown.ck-heading-dropdown .ck-heading_heading3 .ck-button__label,
body:has(#westgate-wiki-compose) .ck.ck-dropdown.ck-heading-dropdown .ck-heading_heading4 .ck-button__label {
	font-size: 1rem !important;
}

body:has(#westgate-wiki-compose) .ck.ck-color-selector,
body:has(#westgate-wiki-compose) .ck.ck-color-grid {
	background: var(--wiki-ck-panel-background) !important;
	color: var(--wiki-ck-ui-text) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-color-grid__label {
	color: var(--wg-text-soft) !important;
	font-family: var(--wg-font-ui) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-color-grid__tile {
	border-radius: 5px !important;
	color: inherit;
}

body:has(#westgate-wiki-compose) .ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered {
	box-shadow: 0 0 0 1px rgba(244, 236, 220, 0.58) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-color-grid__tile:hover:not(.ck-disabled),
body:has(#westgate-wiki-compose) .ck.ck-color-grid__tile:focus:not(.ck-disabled) {
	box-shadow:
		inset 0 0 0 1px rgba(8, 7, 10, 0.76),
		0 0 0 2px rgba(216, 194, 138, 0.66) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-color-grid__tile.ck-on {
	box-shadow:
		inset 0 0 0 1px rgba(8, 7, 10, 0.86),
		0 0 0 2px rgba(246, 223, 163, 0.82) !important;
}

body:has(#westgate-wiki-compose) .ck .ck-insert-table-dropdown__grid {
	background: transparent !important;
	padding: 0.75rem !important;
}

body:has(#westgate-wiki-compose) .ck .ck-insert-table-dropdown-grid-box {
	background: rgba(194, 163, 90, 0.075) !important;
	border: 1px solid rgba(216, 194, 138, 0.26) !important;
	border-radius: 4px !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.035),
		0 0 0 1px rgba(8, 7, 10, 0.36) !important;
}

body:has(#westgate-wiki-compose) .ck .ck-insert-table-dropdown-grid-box:hover,
body:has(#westgate-wiki-compose) .ck .ck-insert-table-dropdown-grid-box:focus {
	background: rgba(194, 163, 90, 0.18) !important;
	border-color: rgba(216, 194, 138, 0.52) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.055),
		0 0 0 1px rgba(194, 163, 90, 0.24) !important;
	outline: none !important;
}

body:has(#westgate-wiki-compose) .ck .ck-insert-table-dropdown-grid-box.ck-on {
	background: rgba(194, 163, 90, 0.28) !important;
	border-color: rgba(246, 223, 163, 0.64) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.08),
		0 0 0 1px rgba(194, 163, 90, 0.34) !important;
}

body:has(#westgate-wiki-compose) .ck .ck-insert-table-dropdown__label {
	color: var(--wg-text-soft) !important;
	font-family: var(--wg-font-ui) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-emoji-picker,
body:has(#westgate-wiki-compose) .ck.ck-emoji-picker .ck-emoji-picker__categories,
body:has(#westgate-wiki-compose) .ck.ck-emoji-picker .ck-emoji-picker__content {
	background: var(--wiki-ck-panel-background) !important;
	color: var(--wiki-ck-ui-text) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-emoji-picker :where(.ck-label, .ck-labeled-field-view__label, .ck-emoji-picker__title) {
	background: var(--wiki-ck-panel-background) !important;
	color: var(--wg-text-soft) !important;
	font-family: var(--wg-font-ui) !important;
	text-shadow: none !important;
}

body:has(#westgate-wiki-compose) .ck.ck-emoji-picker :where(.ck-input, .ck-input-text, input[type="text"], input[type="search"]) {
	background: rgba(9, 8, 11, 0.74) !important;
	border-color: rgba(194, 163, 90, 0.26) !important;
	color: var(--wg-text) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.025),
		0 0 0 1px rgba(8, 7, 10, 0.42) !important;
	caret-color: var(--wg-gold);
}

body:has(#westgate-wiki-compose) .ck.ck-emoji-picker :where(.ck-input, .ck-input-text, input[type="text"], input[type="search"]):focus {
	border-color: rgba(194, 163, 90, 0.5) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 244, 221, 0.026),
		0 0 0 1px rgba(194, 163, 90, 0.28) !important;
	outline: none !important;
}

body:has(#westgate-wiki-compose) .ck.ck-emoji-picker :where(.ck-input, .ck-input-text, input)::placeholder {
	color: rgba(185, 178, 166, 0.6) !important;
	opacity: 1 !important;
}

body:has(#westgate-wiki-compose) .ck.ck-emoji-picker .ck-emoji-grid__tile,
body:has(#westgate-wiki-compose) .ck.ck-emoji-picker .ck-emoji-categories__item {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--wiki-ck-ui-text) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-emoji-picker .ck-emoji-grid__tile:hover,
body:has(#westgate-wiki-compose) .ck.ck-emoji-picker .ck-emoji-grid__tile:focus,
body:has(#westgate-wiki-compose) .ck.ck-emoji-picker .ck-emoji-categories__item:hover,
body:has(#westgate-wiki-compose) .ck.ck-emoji-picker .ck-emoji-categories__item:focus,
body:has(#westgate-wiki-compose) .ck.ck-emoji-picker .ck-emoji-categories__item.ck-on {
	background: var(--wiki-ck-button-hover-bg) !important;
	border-color: rgba(194, 163, 90, 0.2) !important;
	box-shadow: inset 0 1px 0 rgba(255, 244, 221, 0.035) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-list__item .ck-button:hover,
body:has(#westgate-wiki-compose) .ck.ck-list__item .ck-button.ck-on {
	color: var(--wiki-ck-list-on-text) !important;
}

body:has(#westgate-wiki-compose) .ck.ck-input,
body:has(#westgate-wiki-compose) .ck.ck-labeled-field-view__input-wrapper input,
body:has(#westgate-wiki-compose) .ck.ck-textarea {
	background: var(--wiki-ck-input-background) !important;
	border-color: var(--wiki-ck-input-border) !important;
	color: var(--wiki-ck-input-text) !important;
}
