/* ====== BOOKDOWN CUSTOM CLEAN STYLE (NON-FLOATING TOC) ====== */

/* --- BODY --- */
body {
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.7;
  color: #222;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* --- HEADERS --- */
h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  color: #0A4D68;
  font-weight: 600;
  margin-top: 1.2em;
}

/* --- LINKS --- */
a {
  color: #0A4D68;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- SIDEBAR KIRI --- */
.book .book-summary {
  width: 230px;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  padding-top: 10px;
  position: relative;
}

/* === LOGO === */
.book .book-summary img {
  display: block;
  margin: 25px auto 10px auto;
  border-radius: 50%;
  width: 120px;
}

/* === JUDUL DAN TEKS === */
.book .book-summary h2 {
  text-align: center;
  color: #0A4D68;
  font-size: 1.2em;
  margin: 10px 0;
  font-weight: 600;
}

.book .book-summary p {
  text-align: center;
  font-size: 0.85em;
  color: #555;
  margin-bottom: 20px;
}

/* --- TOOLBAR (SEARCH + ICONS) --- */
.book .book-summary .book-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 15px 0 25px 0;
}

/* --- SEARCH BAR --- */
.book .book-summary .book-search {
  width: 85%;
  display: block;
}
.book .book-summary .book-search input {
  width: 100%;
  border: 1px solid #13B4C3;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.9em;
  color: #0A4D68;
}
.book .book-summary .book-search input::placeholder {
  color: #9bbfcf;
}

/* --- ICONS --- */
.book .book-summary .icon-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.book .book-summary .icon-links a {
  color: #0A4D68 !important;
  font-size: 1.2em;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.book .book-summary .icon-links a:hover {
  color: #13B4C3 !important;
  transform: scale(1.1);
}

/* --- CHAPTER LIST --- */
.book .book-summary .summary {
  margin-top: 10px;
}
.book .book-summary .summary li li {
  display: none !important;
}
.book .book-summary .summary li a {
  color: #0A4D68;
}
.book .book-summary .summary li.active > a {
  color: #13B4C3;
  font-weight: 600;
}

/* --- CONTENT AREA --- */
.book .book-body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

/* --- ISI UTAMA --- */
.book .book-body .page-wrapper {
  flex: 1;
  max-width: 850px;
  margin: 0 auto;
  padding: 50px;
  background-color: #ffffff;
}

/* ===== NON-FLOATING TOC (FINAL) ===== */

/* Layout tiga kolom */
.book {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 20px;
}

/* Sidebar kiri */
.book .book-summary {
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  padding: 15px;
}

/* Isi tengah */
.book .book-body .page-wrapper {
  background: #fff;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* TOC kanan */
.book .book-body .book-toc {
  background: #ffffff;
  border-left: 3px solid #0A4D68;
  padding: 15px 20px;
  font-size: 0.9em;
  overflow-y: auto;
  position: static !important; /* paksa non-floating */
  top: auto !important;
  right: auto !important;
  width: auto;
  height: auto;
  box-shadow: none !important;
}

/* Pastikan body penuh */
.book .book-body {
  display: contents;
}
