/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * This file is licensed under the terms of the MIT License (see LICENSE.md).
 */

/* --------- GENERIC STYLES ---------------------------------------------------------------------------- */

:root {
	--ck-sample-base-spacing: 2em;
	--ck-sample-color-white: #fff;
	--ck-sample-color-green: rgb(116, 60, 205);
	--ck-sample-container-width: 1285px;
	--ck-sample-sidebar-width: 290px;
	--ck-sample-editor-min-height: 400px;
	--ck-sample-font-family: "Source Sans Pro", system-ui, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--ck-border-radius: 0;
}

body, html {
	padding: 0;
	margin: 0;

	font-family: var(--ck-sample-font-family);
	font-size: 16px;
	line-height: 1.5;
}

body {
	height: 100%;
	color: #2D3A4A;
}

body * {
	box-sizing: border-box;
}

@media print {
	body {
		margin: 0 !important;
	}
}

a {
	color: #38A5EE;
}

/* --------- LAYOUT STYLES ---------------------------------------------------------------------------- */

header .centered {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
	min-height: 8em;
}

header h1 a {
	font-size: 20px;
	display: flex;
	align-items: center;
	color: #2D3A4A;
	text-decoration: none;
}

header h1 img {
	display: block;
	height: 48px;
}

header nav ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

header nav ul li {
	display: inline-block;
}

header nav ul li+li {
	margin-left: 1em;
}

header nav ul li a {
	font-weight: bold;
	text-decoration: none;
	color: #2D3A4A;
}

header nav ul li a:hover {
	text-decoration: underline;
}

main .message {
	padding: 0 0 var(--ck-sample-base-spacing);
	background: var(--ck-sample-color-green);
	color: var(--ck-sample-color-white);
}

main .message::after {
	content: "";
	z-index: -1;
	display: block;
	height: 10em;
	width: 100%;
	background: var(--ck-sample-color-green);
	position: absolute;
	left: 0;
}

main .message h2 {
	position: relative;
	padding-top: 1em;
	font-size: 2em;
}

footer {
	margin: calc(2*var(--ck-sample-base-spacing)) var(--ck-sample-base-spacing);
	font-size: .8em;
	text-align: center;
	color: rgba(0, 0, 0, .4);
}

.centered {
	/* Hide overlapping comments. */
	overflow: hidden;

	max-width: var(--ck-sample-container-width);
	margin: 0 auto;
}

/* --------- EDITOR STYLES ---------------------------------------------------------------------------- */

.editor,
/* Classic demo. */
main .ck-editor[role='application'] .ck.ck-content,
/* Document demo. */
.ck.editor__editable[role='textbox'],
/* Inline & Balloon demo. */
.ck.editor[role='textbox'] {
	background: #fff;
	font-size: 1em;
	line-height: 1.6em;
	min-height: var(--ck-sample-editor-min-height);
	padding: 1.5em 2em;
}

main .ck-editor[role='application'] .ck-comments-archive .ck-content {
	min-height: auto;
	padding: 0;
	background: none;
}

.ck-heading-dropdown {
	width: 105px !important;
}

.editor-container__sidebar {
	padding: 0 10px;
	position: relative;
	min-width: var(--ck-sample-sidebar-width);
	font-size: 20px;
	background: hsl(0, 0%, 98%);
	border: 1px solid hsl(0, 0%, 77%);
	border-left: 0;
	overflow: hidden;
	min-height: 100%;

	/* #2733. Do not overlap the left border if the sidebar is longer than content. */
	box-shadow: -1px 0 0 0 hsl(0, 0%, 77%);
}

.editor-container__sidebar.narrow {
	min-width: 60px;
}

.editor-container__sidebar.hidden {
	display: none;
}

.presence {
	width: 100%;
	border: 1px solid var(--ck-color-base-border);
	border-bottom: 0;
	background: var(--ck-color-base-background);
	padding: var(--ck-spacing-small);

	/* Make `border-bottom` as `box-shadow` to not overlap with the editor border. */
	box-shadow: 0 1px 0 0 hsl(0, 0%, 77%);

	/* Make `z-index` bigger than `.editor` to properly display tooltips. */
	z-index: 20;
}

.presence .ck.ck-presence-list__counter {
	order: 2;
	margin-left: var(--ck-spacing-large)
}

.revision-history__sidebar {
	background-color: #fff;
}

/* --------- DEDICATED EDITOR STYLES ---------------------------------------------------------------------------- */

.main-container {
	--ck-border-radius: 0;
	font-family: var(--ck-sample-font-family);
	min-height: 1065.830px;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--ck-sample-container-width);
	padding: 10px;
	background-color: var(--ck-color-base-background);
	box-sizing: content-box;
}

.ck-content {
	font-family: var(--ck-sample-font-family);
	line-height: 1.6;
	word-break: break-word;
}

.editor-container__editor-wrapper {
	display: flex;
	width: fit-content;
}

.editor-container__toolbar {
	z-index: 1;
}

.editor-container_include-annotations .editor-container__editor .ck.ck-editor__editable {
	margin-right: 0;
}

.editor-container_classic-editor .editor-container__editor {
	max-width: calc(var(--ck-sample-container-width) - var(--ck-sample-sidebar-width));
}

.editor-container__sidebar {
	min-width: var(--ck-sample-sidebar-width);
	max-width: var(--ck-sample-sidebar-width);
}

.revision-history {
	display: none;
}

.revision-history__wrapper {
	display: flex;
}

.revision-history__wrapper .ck.ck-editor {
	margin: 0;
	max-width: calc(var(--ck-sample-container-width) - var(--ck-sample-sidebar-width));
}

.revision-history__wrapper .revision-history__sidebar {
	border: 1px solid var(--ck-color-base-border);
	border-left: 0;
	width: var(--ck-sample-sidebar-width);
	min-height: 100%;
}

.revision-history__wrapper .revision-history__sidebar .ck-revision-history-sidebar {
	height: 100%;
}