@charset "UTF-8";
.gold-border {
  border: 1px solid #f7a71b;
}

.bg-neutral-500 {
  background-color: #171C26 !important;
}

p {
  color: #f6f1ee;
  font-family: "OpenSans", sans-serif;
  margin-bottom: 1.625em;
}

label {
  color: #f6f1ee;
  font-family: "OpenSans", sans-serif;
  display: block;
  width: fit-content;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-menu {
  font-family: "Sudbury", "Merriweather", serif;
  font-weight: 400;
  color: #f6f1ee;
}

h1 {
  font-size: 3em;
  font-family: "Cinzel", serif;
  margin-bottom: 1em;
  display: block;
  width: fit-content;
  margin-inline: auto;
  position: relative;
}
h1::after {
  content: "";
  display: block;
  width: 120%;
  position: absolute;
  left: -10%;
  height: 10px;
  background-image: url(get-img("ui/flourish-line.svg"));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.page-light h1 {
  color: #0f0f0f;
}
.page-light h1::after {
  background-image: url(get-img("ui/flourish-line-dark.svg"));
}

h2 {
  font-size: 2em;
  display: block;
  width: fit-content;
  margin-inline: auto;
  position: relative;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

h1,
h2,
h3 {
  text-align: center;
}

a {
  color: #f7a71b;
  text-decoration: underline;
  text-underline-offset: 5px;
}
a:hover {
  text-decoration: underline;
  color: #754c04;
}

.fa,
.fas,
.fab {
  color: #f6f1ee;
}

.minor-drop-shadow {
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.25));
}

.archive-article {
  margin-top: 1rem;
}
.archive-date {
  text-align: left;
}
.archive-title {
  text-align: left;
}
.archive-header {
  padding-left: 1rem;
}
.archive-content {
  padding-inline: 2.5rem;
  padding-block: 1rem;
}

.toggle-button {
  border-radius: 5px;
  color: #f7a71b;
  background-color: #242c3d;
  font-size: 1.25rem;
  padding: 0.5rem;
  text-align: center;
  border: 2px solid #f7a71b;
}
@media (min-width: 768px) {
  .toggle-button:hover {
    background-color: #f7a71b;
    color: #242c3d;
    cursor: pointer;
  }
}
.toggle-button:hover {
  cursor: pointer;
}
.toggle-button:active, .toggle-button.toggle-active {
  background-color: #f7a71b;
  color: #242c3d;
  cursor: pointer;
}
.toggle-button:not(:first-child) {
  border-left: none;
}

.buttons {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.settings-panel {
  background-color: #171c26;
  padding: 2rem;
  border: 1px solid #364059;
  border-radius: 5px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  margin-bottom: 2rem;
  padding: 1rem;
  display: flex;
  gap: 3rem;
}
.settings-panel .filter-group {
  flex: 1;
}
.settings-panel .filter-group input::placeholder {
  color: #e6e9ef;
}
.settings-panel .buttons {
  display: flex;
  gap: 3rem;
  flex-wrap: nowrap;
  justify-content: space-between;
}
@media screen and (max-width: 768px) {
  .settings-panel {
    flex-direction: column;
    gap: 1rem;
  }
  .settings-panel .buttons {
    gap: 1rem;
    flex-wrap:nowrap;
    display: block!important;
  }
  .settings-panel .filter-group{
	  flex:1 1 0px !important;
	          width: 100%;
  }
}

.volume-wrapper {
  margin-top: 1rem;
}

.volume-header-buffer {
  
}



.volume-body {
  overflow: hidden;
  background-color: #171C26 !important;
  font-size: 1.2rem;
}

#table-of-contents:not(.sort-reverse) .book-body > .chapter-entry:first-child,
.sort-reverse .book-body > .chapter-entry:last-child {
  margin-top: 0;
}

.table-cell {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 1rem;
}

.head-book {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  padding: 0 !important;
}

.table-head {
  border-bottom: 1px solid #f7a71b;
  background-color: #171c26 !important;
  font-family: "Sudbury", "Merriweather", serif;
}
.table-head .table-head-cell {
  font-weight: bold;
  font-size: 1.2rem;
}
.table-head .head-book-title {
  text-align: center;
  position: relative;
  padding-block: 1rem;
  display: flex;
  align-items: baseline;
}
.table-head .head-book-title .book-title-num {
  margin-right: 0.5rem;
  font-weight: 500;
  font-family: "OpenSans", sans-serif;
  font-size: 1rem;
}
.table-head .head-book-title .book-title-text {
  font-family: "Sudbury", "Merriweather", serif;
}
.table-head .head-audiobook,
.table-head .head-ebook, .table-head .head-web {
  font-size: 1.1rem;
  font-family: "OpenSans", sans-serif;
  padding-block: 1rem !important;
  background-color: #1d2330;
  font-weight: 800!important;
}

.table-row, .head-book-versions {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
.table-row > .table-cell, .head-book-versions > .table-cell {
  flex: 1;
  padding: 0.75rem;
}
.table-row > .table-cell.is-one-third, .head-book-versions > .table-cell.is-one-third {
  flex: 0 0 33.33%;
}
.table-row > .table-cell.is-two-thirds, .head-book-versions > .table-cell.is-two-thirds {
  flex: 0 0 66.67%;
}

.table-row:last-child, .head-book-versions:last-child {
  margin-bottom: 0;
}


.no-compare-audio .body-audiobook,
.no-compare-audio .head-audiobook {
  display: none;
}

.no-compare-ebook .body-ebook,
.no-compare-ebook .head-ebook {
  display: none;
}

.no-compare-audio.no-compare-ebook {
  max-width: 30rem;
  margin-inline: auto;
}
.no-compare-audio.no-compare-ebook .table-head,
.no-compare-audio.no-compare-ebook .body-audiobook,
.no-compare-audio.no-compare-ebook .body-ebook {
  display: none;
}
.no-compare-audio.no-compare-ebook .head-web {
  width: 100% !important;
}
.no-compare-audio.no-compare-ebook.volume-table {
  padding-top: 0.75rem;
}

body {
  background-color: #171C26 !important;
}

article {
  background-color: transparent;
  width: 1750px;
}

#table-of-contents {
  margin-inline: auto;
  max-width: 1100px;
}
#table-of-contents .volume-header {
  max-width: 1100px;
  margin-inline: auto;
}

#table-of-contents,
.volume-body,
.book-body {
  display: flex;
  flex-direction: column;
}

#table-of-contents.sort-reverse {
  flex-direction: column-reverse;
}
#table-of-contents.sort-reverse .volume-body,
#table-of-contents.sort-reverse .book-body {
  flex-direction: column-reverse;
}

.volume-wrapper:last-child .chapter-entry:last-child a {
  position: relative;
}
.volume-wrapper:last-child .chapter-entry:last-child a::after {
  content: "🐀";
  margin-left: 1rem;
  position: absolute;
  right: -1.5rem;
}
/* ── Volume Header Card ───────────────────────────────── */
.volume-wrapper {
  background: #1a1e29;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  margin-bottom: 0rem;
}

/* Row 1: Volume title + chevron */
.volume-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #1a1e29;
  border-bottom: 1px solid rgba(255,165,0,0.3);
}
.volume-header .volume-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  
  padding-bottom: 0.25rem;
  display: inline-block;
}
.volume-header .collapse-button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.volume-header .collapse-button:hover {
  color: #FFA500;
}

/* Row 2: cover, book info, “View Book Detail” */
.volume-icon-wrapper {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #1a1e29;
}
.volume-term-image {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}
.volume-icon-wrapper h4.volume-title {
  font-size: 1rem;
  color: #fff;
  font-family: sans-serif;
}
.volume-icon-wrapper h3.volume-title {
  font-size: 1.125rem;
  color: #fff;
  text-align: left;
}
.book-custom-titles{
	flex: 1 1 auto;
    margin: 0;
}
.volume-icon-wrapper .view-book-detail {
  flex: 0 0 auto;
  margin-left: 1rem;
  color: #FFA500;
  font-weight: 600;
  text-decoration: none;
}
.volume-icon-wrapper .view-book-detail:hover {
  text-decoration: underline;
}


/* you can reuse your existing .toc-head/.toc-row rules for styling the cells */





/* ── Notification Bar ───────────────────────── */
#new-reader-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,165,0, .03);
  border: 1px solid #FFA500;
  border-radius: 4px;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  color: #fff;
}
#new-reader-bar .notification-content i {
  margin-right: .5rem;
  color: #FFA500;
}
#new-reader-bar .notification-content a {
  color: #FFA500;
  text-decoration: underline;
}
#new-reader-bar .notification-close {
  background: none;
  border: none;
  color: #FFA500;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ── Toolbar (updated) ────────────────────────────────── */
.settings-panel {
  background: #1a1e29;                              /* solid dark bg */
  border: 1px solid rgba(255,255,255, 0.12);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* 1) Search/Input */
.settings-panel .filter-group {
  flex: 1 1 300px;
}
.settings-panel .filter-group input {
  width: 100%;
  padding: .9rem 1rem;
  background: rgba(255,255,255, 0.05);
  border: 1px solid rgba(255,255,255, 0.3);
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
}
.settings-panel .filter-group input::placeholder {
  color: rgba(255,255,255, 0.5);
}

/* 2) Compare Versions with checkboxes */
.settings-panel .compare-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.settings-panel .compare-group label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.settings-panel .compare-group label + label::before {
  content: "|";
  color: rgba(255,255,255, 0.5);
  margin: 0 0.5rem;
}
.settings-panel .compare-group input[type="checkbox"] {
  /* modern browsers will tint the box and check */
  accent-color: #ffa500;
  width: 1rem;
  height: 1rem;
}

/* 3) Sort & Expand buttons */
.settings-panel button {
  background: transparent;
  border: 1px solid rgba(255,255,255, 0.3);
  border-radius: 4px;
  padding: 0.5rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.settings-panel button i {
  font-size: 1rem;
}

/* 4) Labels */
.settings-panel .settings-panel-label {
  color: #fff;
  font-size: 1rem;
  white-space: nowrap;
}

/* Responsive: stack under 768px */
@media (max-width: 768px) {
  .settings-panel {
    flex-direction: column;
    gap: 0.75rem;
  }
  .settings-panel .filter-group { order: 1; }
  .settings-panel .compare-group { order: 2; }
}
/* TOC */

.volume-wrapper{
	background-color: #171c26;
    padding: 2rem;
    border: 1px solid #364059;
    border-radius: 5px;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    margin-bottom: 2rem;
    padding: 0rem;
}

.volume-header {
    position: relative;
    
    margin-bottom: 0;
    padding: 0;
    background-color: #171c26;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: none;
    border-top: none;
    border-bottom: 1px solid #364059;
    padding:5px;
    text-align: left !important;
}
.book-header {
    position: relative;
    margin-bottom: 0;
    padding: 0;
    background-color: #171c26;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: none;
    border-top: none;
    border-bottom: 1px solid #364059;
    padding:5px;
    text-align: left !important;
}
.volume-header h2 {
  font-size: 2rem;
  height: 100%;
  font-family: sans-serif;
  text-align: left;
}
.volume-header .collapse-button {
  position: absolute;
  right: 10px;
  top: 2px;
  font-size: 2rem;
  line-height: 2rem;
  background:none !important;
  border: none;
}
.volume-header .collapse-button i{
	color: white;
	width: 20px;
}
.volume-body{
	background-color: #171c26!important;
}
.chapter-entry {
	background-color: #171c26!important;
	border-bottom: solid 1px #273041;
}
.table-row:nth-child(even), .head-book-versions:nth-child(even),.table-row:nth-child(odd), .head-book-versions:nth-child(odd) { {
	background-color: #171c26!important;
}

/* ==========================================================================
   Volume Header + Book Row
   ========================================================================== */

/* 1) Reset container so header + book row stack */
.volume-header-buffer {
  display: block;
  margin: 0;
  padding: 0;
}

/* 2) Row #1 — “Volume 1” and the collapse arrow */
.volume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,165,0, 0.3);
  background: #1a1e29;
}
.volume-header .volume-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  display: inline-block;
  border-bottom: 2px solid #FFA500;
  padding-bottom: 0.25rem;
}
.volume-header .collapse-button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
}
.volume-header .collapse-button:hover {
  color: #FFA500;
}

/* 3) Row #2 — Book cover, title & “View Book Detail” link */
.volume-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #1a1e29;
}
.volume-icon-wrapper .volume-term-image {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  margin-right: 1rem;
}
.volume-icon-wrapper h3.volume-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
}
.volume-icon-wrapper .view-book-detail {
  flex: 0 0 auto;
  color: #FFA500;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.volume-icon-wrapper .view-book-detail:hover {
  text-decoration: underline;
}

/* 4) Small screen: stack book row contents */
@media (max-width: 600px) {
  .volume-icon-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .volume-icon-wrapper .view-book-detail {
    margin-top: 0.5rem;
  }
}
/* ── Volume Header Card ───────────────────────────────── */
.volume-wrapper {
  background: #1a1e29;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.book-header{
	    background-color: #171c26 !important;
}
