/* pasPortal dashboard style sheet: Standard purple (the portal's own theme values, light and dark).
   Linked last (after portal-theme.css), so any value changed here wins at the same specificity. */

/* Light (also the paper areas, which are light in every theme). */
:root, .PortalPaper, .jodit-wysiwyg, .jodit-placeholder, .PortalContrastMarks {
	--portal-accent: #55359a;
	--portal-accent-hover: #43287e;
	--portal-accent-soft: #eee3f7;
	--portal-accent-text: #6b5392;
	--portal-brand: #8f72c8;
	--portal-link: #6b5392;
	--portal-link-hover: #08718c;
	--portal-surface-raised: #f6f0fb;
	--portal-header-background: #1d1a2c;
	--portal-header-hover-background: #2d2943;
	--portal-header-muted: #a7a3bd;
	--portal-header-highlight: #4fd2f0;
	--portal-menu-background: #3c2a70;
	--portal-menu-gradient-start: #1d1a2c;
	--portal-menu-gradient-middle: #3c2a70;
	--portal-menu-gradient-end: #55359a;
	--portal-menu-hover-background: #6a45ad;
	--portal-menu-selected-text: #52318d;
	--portal-menu-dropdown-selected-text: #55359a;
	--portal-menu-dropdown-hover-background: #55359a;
	--portal-module-header-background: #f6f0fb;
	--portal-module-header-text: #3c2a70;
	--portal-footer-background: #1d1a2c;
	--portal-popup-toolbar-background: #55359a;
	--portal-popup-panel-background: #f6f0fb;
	--portal-tile-image-background: #f6f0fb;
	--portal-tile-label: #55359a;
	--portal-tabulator-header-text: #52318d;
	--portal-tabulator-accent: #2f0058;
	--portal-tabulator-row-marker-alternate: #d8ccee;
	--portal-video-label-text: #52318d;
	--portal-hosted-application-emboss-text: #6b5392;
}

/* Dark, when the browser prefers dark and the viewer has not chosen light. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--portal-accent: #7457d1;
		--portal-accent-hover: #5f42b8;
		--portal-accent-soft: #322b4c;
		--portal-accent-text: #b3a1f2;
		--portal-brand: #8f72c8;
		--portal-link: #b3a1f2;
		--portal-header-hover-background: #2a263c;
		--portal-header-muted: #a29eb5;
		--portal-menu-background: #2a2150;
		--portal-menu-gradient-start: #15121f;
		--portal-menu-gradient-middle: #2a2150;
		--portal-menu-gradient-end: #3c2a70;
		--portal-menu-hover-background: #3e3060;
		--portal-menu-selected-text: #c4b5f7;
		--portal-menu-dropdown-selected-text: #c4b5f7;
		--portal-menu-dropdown-hover-background: #7457d1;
		--portal-module-header-background: #2e2a42;
		--portal-module-header-text: #d6cdf6;
		--portal-popup-toolbar-background: #342c50;
		--portal-tile-label: #c4b5f7;
		--portal-tabulator-header-text: #d6cdf6;
		--portal-tabulator-accent: #b3a1f2;
		--portal-tabulator-row-marker-alternate: #4a3f6e;
		--portal-video-label-text: #b3a1f2;
		--portal-hosted-application-emboss-text: #52318d;
	}
}

/* Dark, when the viewer chose dark with the header toggle. */
:root[data-theme="dark"] {
	--portal-accent: #7457d1;
	--portal-accent-hover: #5f42b8;
	--portal-accent-soft: #322b4c;
	--portal-accent-text: #b3a1f2;
	--portal-brand: #8f72c8;
	--portal-link: #b3a1f2;
	--portal-header-hover-background: #2a263c;
	--portal-header-muted: #a29eb5;
	--portal-menu-background: #2a2150;
	--portal-menu-gradient-start: #15121f;
	--portal-menu-gradient-middle: #2a2150;
	--portal-menu-gradient-end: #3c2a70;
	--portal-menu-hover-background: #3e3060;
	--portal-menu-selected-text: #c4b5f7;
	--portal-menu-dropdown-selected-text: #c4b5f7;
	--portal-menu-dropdown-hover-background: #7457d1;
	--portal-module-header-background: #2e2a42;
	--portal-module-header-text: #d6cdf6;
	--portal-popup-toolbar-background: #342c50;
	--portal-tile-label: #c4b5f7;
	--portal-tabulator-header-text: #d6cdf6;
	--portal-tabulator-accent: #b3a1f2;
	--portal-tabulator-row-marker-alternate: #4a3f6e;
	--portal-video-label-text: #b3a1f2;
	--portal-hosted-application-emboss-text: #52318d;
}
/* The menu bar takes the Welcome banner's gradient: the same 120-degree sweep through the menu colours above (light and dark), with
   the banner's soft cyan glow at the right. */
.NavigationMenuContainer {
	background-image: radial-gradient(circle at 85% 20%, rgba(79, 210, 240, 0.28), transparent 45%), linear-gradient(120deg, var(--portal-menu-gradient-start) 0%, var(--portal-menu-gradient-middle) 55%, var(--portal-menu-gradient-end) 100%);
}

/* Under 600px the bar is a different shape (narrow): the same colours left to right and no glow, so it continues the banner's
   bottom edge (where the banner's glow has faded) instead of a steep diagonal. */
@media (max-width: 599.98px) {
	.NavigationMenuContainer {
		background-image: linear-gradient(to right, var(--portal-menu-gradient-start) 0%, var(--portal-menu-gradient-middle) 55%, var(--portal-menu-gradient-end) 100%);
	}
}
