/** plugin: Drawer Sidebar #3.6 code **/
/* BEGIN Drawer Sidebar */
:root {
	--drawer-bg-x: 120px;
	--drawer-w: 45px;
}
@media (min-width:768px) and (max-width: 1920px) {
	body:not(#map-body):not(.sidebar-collapse) {
		/* Tweak content margins to account for smaller sidebar */
		.main-sidebar ~ :is(.content-wrapper, #footer),
		.main-sidebar ~ form .content-wrapper {
			margin-left: var(--drawer-w);
		}
		/* Main sidebar positioning */
		.main-sidebar {
			position: fixed;
			transform: translateX(calc(-1 * (240px - var(--drawer-w))));
			transition: all .5s linear;
			z-index: 801; /* For dashboard map controls */

			.sidebar {
				max-height: calc(100vh - 3rem - 160px);
				padding-bottom: 4rem;
				direction: rtl;
				overflow-y: scroll;
				scrollbar-width: none;

				.pl-4 {
					padding-left: .5rem;
				}
				.px-2 {
					transition: padding-right .5s linear;
				}
			}
			/* Chrome/Safari/Webkit */
			.sidebar::-webkit-scrollbar {
				width: 0px;
			}
		}
		.main-sidebar:hover {
			transform: unset;
		}
		.main-sidebar:not(:hover) {
			background-position-x: var(--drawer-bg-x);

			/* Navigation styling */
			:is(a, div, span) {
				visibility: hidden;
			}
			i {
				visibility: visible;
			}
			li:is(.px-2, .pt-4) { /* pt-4 for Settings */
				padding-right: calc((var(--drawer-w) - 20px) / 4);
				padding-top: 0;
			}

			/* Campaign settings: undo section indentation */
			.sidebar:has(.section-overview) .sidebar-submenu {
				margin-right: calc((var(--drawer-w) - 20px) / -4);
			}
		}
	}
}
/* END Drawer Sidebar */
/** end plugin: Drawer Sidebar #3.6 code **/
/** plugin: Context-Aware Classes #1.7 code **/
:root { --summernote-insert-context-aware-classes: enabled; }

.entity-content .dashboard-only { display: none; }
#campaign-dashboard .dashboard-only { display: initial; }

#campaign-dashboard .no-dashboard {	display: none; }

@media (min-width: 768px) {
	.entity-content .mobile-only { display: none; }
}
@media (max-width: 767px) {
	.entity-content .no-mobile { display: none; }
}

.entity-content .tooltip-only {	display: none; }
.tippy-box .tooltip-only { display: initial; }
.tippy-box .no-tooltip { display: none; }

.entity-content .marker-only { display: none; }
.marker-popup-entry .marker-only { display: initial; }

.entity-content .marker-details-only { display: none; }
#sidebar-marker .marker-details-only { display: initial; }

#map-body .no-map, .map-dashboard .no-map { display: none; }

@media print {
	.no-print { display: none; }
}
@media screen {
	.print-only { display: none; }
}

.editor-only { display: none; }
.note-editing-area .editor-only { display: initial; }

.entity-content .transclusion-only { display: none; }
.mention-entry-content .transclusion-only { display: initial; }
.mention-entry-content .no-transclusion { display: none; }
/** end plugin: Context-Aware Classes #1.7 code **/
/** plugin: Entry Box Backgrounds #2.3 code **/
/* BEGIN Entity Box Backgrounds by Salvatos */
@media screen {
    .sidebar-section-box {
        --sidebar-section-background: hsl(var(--b1)/1);
        --sidebar-section-padding: 10px;
        border-radius: .25rem;
        box-shadow: 0 1px 1px rgba(0,0,0,.1);
    }

    /* Post headings */
    .post-header {
        background-color: var(--box-background, hsl(var(--b1)/1));
        border-radius: .25rem;
        padding: .2rem .5rem;
    }
    .post-title {
        margin: 0;
    }
}
/* END Entity Box Backgrounds by Salvatos */
/** end plugin: Entry Box Backgrounds #2.3 code **/
/** plugin: Pin Privacy Icons #2 code **/
/* BEGIN Pinned Attribute Privacy Icons By Salvatos */
:is(.pinned-attribute, .pinned-relation) > strong::after {
	font-family: "Font Awesome 6 Pro";
	font-size: 10px;
	color: hsl(var(--bc) / .5);
}
/* Non-admins will never see anything but public attributes,
   so there’s no use showing them any icon for attributes */
.is-admin .pinned-attribute > strong::after {
	content: var(--public-attribute-icon, " \f3c1");
}
.is-admin .pinned-attribute[data-private="true"] > strong::after {
	content: var(--public-attribute-icon, " \f023");
}
/* Connections matter for everyone */
/* All: unlocked */
.pinned-relation[data-visibility="1"] > strong::after {
	content: var(--public-attribute-icon, " \f3c1");
}
/* Admins: locked */
.pinned-relation[data-visibility="2"] > strong::after {
	content: var(--private-attribute-icon, " \f023");
}
/* Me & Admins: person-lock */
.pinned-relation[data-visibility="3"] > strong::after {
	content: var(--self-admins-connection-icon, "\f502");
}
/* Only Me: spy */
.pinned-relation[data-visibility="4"] > strong::after {
	content: var(--self-only-connection-icon, "\f21b");
}
/* Campaign members: group */
.pinned-relation[data-visibility="5"] > strong::after {
	content: var(--members-only-connection-icon, "\f0c0");
}
/* END Pinned Attribute Privacy Icons By Salvatos */
/** end plugin: Pin Privacy Icons #2 code **/
/** plugin: Cleaner Printing #0.5 code **/
/* BEGIN Cleaner Printing */
@media print {
	:root {
		/* Force entity-content to use grey-on-white Base theme colors */
		--box-background: unset;
		--body-text: #636b6f;
		--header-text: #222;
		--body-background: unset;
	}
  	
  	/* Ensure that the browser uses its default light theme settings */
  	html {
		color-scheme: light;
	}
	
	/* Remove custom overall and section backgrounds and force dark grey font */
	html, body, .wrapper, .content-wrapper, .content, .entity-name, .box, .bg-box, td, th {
		background: none !important;
		background-color: unset !important;
		box-shadow: unset !important;
    	color: #222 !important;
	}
	
	/* Unnecessary space at the top */
	.content {
		padding-top: 0;
	}
	
	/* Remove various unwanted sections from entity Overview and subpages (Attributes, Abilities, etc.) */
	.entity-name-header :not(.entity-name),
	.entity-header .header-buttons,
	.entity-submenu,
	.entity-history,
	.entity-empty-pin,
	#toc, /* For Auto TOC script users */
	.box-header i,
	.btn-new-post,
  	a[role="button"],
  	a[data-toggle="tooltip"],
  	i.fa-chevron-up, i.fa-chevron-down,
	header,
	footer,
  	.main-sidebar,
  	.alert {
		display: none !important;
	}
  
  	/* Sidebar nuisance */
  	#main-content {
		margin-left: 0 !important;
	}
	
	/* Attributes: live edit*/
	.live-edit-parsed::after {
		content: "";
	}
}
/* END Cleaner Printing */
/** end plugin: Cleaner Printing #0.5 code **/
/** plugin: Profile Pane Reorder #1 code **/
.profile .list-none {order:0}
.profile .notifications {order:1}
.profile .releases {order:2}
.profile .subscription {order:3}
.profile .marketplace {order:4}
/** end plugin: Profile Pane Reorder #1 code **/
/** plugin: External Link Icon and Styling #1.6 code **/
/* BEGIN External Link Icon and Styling by Salvatos */
:root {
	--external-link-color: var(--link-text);
	--external-link-hover-color: var(--link-hover);
	--external-link-font: inherit;
	--external-link-size: inherit;
	--external-link-weight: inherit;
	--external-link-decoration: inherit;
    --intercampaign-link-color: var(--link-text);
	--intercampaign-link-hover-color: var(--link-hover);
}
:is(.entity-content, .note-editable) {
  a[href*="//"]:not([href*="kanka.io"]) {
	color: var(--external-link-color, hsl(var(--p)));
	font-family: var(--external-link-font);
	font-size: var(--external-link-size);
	font-weight: var(--external-link-weight);
	text-decoration: var(--external-link-decoration);
  }
  a[href*="//"]:not([href*="kanka.io"]):hover {
    color: var(--external-link-hover-color, hsl(var(--pf)));
  }
  a[href*="//"]:not([href*="kanka.io"])::after {
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    content: "\f35d";
    font-size: 9px;
    vertical-align: top;
    margin-left: 2px;
  }
}
/* Inter-campaign mentions (in imported entities) */
.external-mention {
    color: var(--intercampaign-link-color, hsl(var(--p)));
	font-family: var(--external-link-font);
	font-size: var(--external-link-size);
	font-weight: var(--external-link-weight);
	text-decoration: var(--external-link-decoration);
}
.external-mention:hover {
    color: var(--intercampaign-link-hover-color, hsl(var(--pf)));
}
.external-mention::after {
    font-family: "Font Awesome 6 Pro";
	font-weight: 900;
	content: "\f127";
	font-size: 10px;
	margin-left: 3px;
}
/* END External Link Icon and Styling by Salvatos */
/** end plugin: External Link Icon and Styling #1.6 code **/
