/**********************************************************************
 * Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") -              *
 * www.consultingwerk.com and other contributors as listed            *
 * below. All Rights Reserved.                                        *
 *                                                                    *
 *  Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY    *
 *   KIND, either express or implied.                                 *
 *                                                                    *
 *  Contributors:                                                     *
 *                                                                    *
 **********************************************************************/
/*------------------------------------------------------------------------
    File        : style.css
    Purpose     : Consultingwerk theme for the compodoc API reference,
                  replacing compodoc's style.css. (scope: doc_assets/theme)
    Author(s)   : Janine Keser
    Created     : Oct 15, 2026
  ----------------------------------------------------------------------*/

@import "./reset.css";
@import "./bootstrap.min.css";
@import "./bootstrap-card.css";
@import "./prism.css";
@import "./ionicons.min.css";
@import "./compodoc.css";
@import "./tablesort.css";

/* Palette and type from the Consultingwerk website (Frontend/WebApp/Styles/_variables.scss) */
:root {
	--cw-blue-primary: #205a7d;
	--cw-orange: #f18926;
	--cw-gray: #a4a9ac;
	--cw-gray-light: #f2f6f9;
	--cw-gray-dim: #2f3438;
	--cw-ink: #141414;
	--cw-border-soft: #d8e0e6;
	--cw-text-muted: #7a8792;
	--cw-font: 'Neo Sans W01', Helvetica, Arial, sans-serif;
}

body {
	font-family: var(--cw-font);
	color: var(--cw-gray-dim);
	background: #ffffff;
}

/* Sidebar */
.menu {
	background: var(--cw-blue-primary);
	border-right: none;
}

.menu ul.list li.title {
	background: #ffffff;
	padding: 16px 20px;
	border-bottom: 3px solid var(--cw-orange);
}

.menu ul.list li.title a {
	padding: 0;
}

/* The logo is wider than the sidebar: scale it into the title row */
.menu ul.list li.title img,
.xs-menu ul.list li.title img {
	display: block;
	max-width: 100%;
	max-height: 48px;
	width: auto;
	height: auto;
}

.menu ul.list li a {
	color: #ffffff;
	font-weight: 400;
	text-decoration: none;
}

.menu ul.list li a:hover {
	color: var(--cw-orange);
}

.menu ul.list li a.active {
	color: var(--cw-orange);
	font-weight: 700;
}

.menu ul.list li a[data-type='chapter-link'],
.menu ul.list li.chapter .simple {
	color: #ffffff;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.menu ul.list li.divider {
	background: rgba(255, 255, 255, 0.25);
}

.menu ul.list li:nth-last-child(2) {
	background: none;
}

#book-search-input {
	background: #ffffff;
	border-bottom: 1px solid var(--cw-border-soft);
}

#book-search-input input {
	font-family: var(--cw-font);
}

/* Mobile navbar */
.navbar-default .navbar-brand,
.navbar a {
	color: var(--cw-blue-primary);
	text-decoration: none;
}

/* Content */
.content {
	color: var(--cw-gray-dim);
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5 {
	color: var(--cw-blue-primary);
	font-family: var(--cw-font);
	font-weight: 500;
}

a {
	color: var(--cw-blue-primary);
}

a:hover {
	color: var(--cw-orange);
}

.nav-tabs > li.active > a,
.nav-tabs .nav-link.active {
	color: var(--cw-blue-primary);
	border-bottom-color: var(--cw-orange);
}

code {
	padding: 0 5px;
	background: var(--cw-gray-light);
	border-radius: 3px;
	color: var(--cw-blue-primary);
}

pre {
	background: var(--cw-gray-light);
	border-radius: 3px;
}

.card {
	border-color: var(--cw-border-soft);
}

/* Dark mode: dark.css loads after this file, so these rules need the higher specificity of body.dark */
body.dark {
	background: var(--cw-ink);
	color: #fafafa;
}

body.dark .menu,
body.dark .menu ul.list {
	background: #102d3f;
}

body.dark .menu ul.list li.title {
	background: #ffffff;
}

body.dark .menu ul.list li a {
	color: #fafafa;
}

body.dark .menu ul.list li a.active,
body.dark a:hover {
	color: var(--cw-orange);
}

body.dark .content,
body.dark .breadcrumb-item,
body.dark .content h1,
body.dark .content h2,
body.dark .content h3,
body.dark .content h4,
body.dark .content h5 {
	color: #fafafa;
}

body.dark a {
	color: #8cc4e6;
}

body.dark code,
body.dark pre {
	background: rgba(255, 255, 255, 0.06);
	color: #8cc4e6;
}
