/**
 * SIGILAR GitBook Theme
 * Colors: Gold (#D4AF37), parchment, brown. Fonts: Cinzel, Cormorant.
 */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant:ital,wght@0,400;0,600;1,400&display=swap');

/* --- SIGILAR Color Variables --- */
:root {
  --sigilar-gold: #D4AF37;
  --sigilar-gold-light: #e8c968;
  --sigilar-gold-dark: #a88b28;
  --sigilar-brown: #3a2a1e;
  --sigilar-brown-light: #5a4a3a;
  --sigilar-parchment: #f5efe6;
  --sigilar-parchment-dark: #e8dfd4;
  --sigilar-text: #2a2218;
  --sigilar-text-muted: #5a4a3a;
  --sigilar-bg: #1a0f08;
}

/* --- Body & Base --- */
body {
  font-family: 'Cormorant', Georgia, serif !important;
  color: var(--sigilar-text) !important;
  background-color: var(--sigilar-parchment) !important;
}

/* --- Sidebar (book-summary) --- */
.book-summary {
  background: linear-gradient(180deg, var(--sigilar-brown) 0%, #2d2018 100%) !important;
  border-right: 1px solid var(--sigilar-gold-dark) !important;
  color: var(--sigilar-parchment) !important;
}

/* Logo in sidebar header */
.book-summary::before {
  content: "";
  display: block;
  width: 100%;
  height: 80px;
  background: url('../graphic/logo-transparent.png') no-repeat center;
  background-size: contain;
  padding: 20px 15px;
  box-sizing: border-box;
}

#book-search-input {
  border-bottom-color: rgba(212, 175, 55, 0.3) !important;
  background: rgba(0, 0, 0, 0.15) !important;
}

#book-search-input input {
  color: var(--sigilar-parchment) !important;
}

#book-search-input input::placeholder {
  color: rgba(245, 239, 230, 0.6) !important;
}

/* Sidebar navigation */
.book-summary ul.summary li a,
.book-summary ul.summary li span {
  color: rgba(245, 239, 230, 0.9) !important;
}

.book-summary ul.summary li a:hover {
  color: var(--sigilar-gold) !important;
}

.book-summary ul.summary li.active>a {
  color: var(--sigilar-gold) !important;
  font-weight: 600;
}

.book-summary ul.summary li.header {
  color: var(--sigilar-gold) !important;
  font-family: 'Cinzel', serif !important;
}

.book-summary ul.summary li.divider {
  background: rgba(212, 175, 55, 0.3) !important;
}

/* --- Main content area --- */
.book-body {
  background: var(--sigilar-parchment) !important;
}

.markdown-section {
  color: var(--sigilar-text) !important;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section h5,
.markdown-section h6 {
  font-family: 'Cinzel', serif !important;
  color: var(--sigilar-brown) !important;
}

.markdown-section h1 {
  border-bottom: 2px solid var(--sigilar-gold) !important;
  padding-bottom: 0.3em;
}

.markdown-section a {
  color: var(--sigilar-gold-dark) !important;
}

.markdown-section a:hover {
  color: var(--sigilar-gold) !important;
}

.markdown-section blockquote {
  border-left-color: var(--sigilar-gold) !important;
  color: var(--sigilar-text-muted) !important;
}

.markdown-section code {
  background: var(--sigilar-parchment-dark) !important;
  color: var(--sigilar-brown) !important;
}

.markdown-section pre {
  background: var(--sigilar-brown) !important;
  color: var(--sigilar-parchment) !important;
}

.markdown-section pre>code {
  background: transparent !important;
  color: inherit !important;
}

.markdown-section table th,
.markdown-section table td {
  border-color: var(--sigilar-gold-dark) !important;
}

.markdown-section table tr:nth-child(2n) {
  background-color: var(--sigilar-parchment-dark) !important;
}

.markdown-section hr {
  background-color: var(--sigilar-gold) !important;
  opacity: 0.5;
}

/* --- Header bar --- */
.book-header {
  background: var(--sigilar-brown) !important;
  border-bottom: 1px solid var(--sigilar-gold-dark) !important;
}

.book-header h1 a,
.book-header .btn {
  color: var(--sigilar-parchment) !important;
}

.book-header .btn:hover {
  color: var(--sigilar-gold) !important;
}

/* --- Navigation arrows --- */
.navigation {
  color: var(--sigilar-gold-dark) !important;
}

.navigation:hover {
  color: var(--sigilar-gold) !important;
}