/* Base */
body {
  margin: 0;
  background: #121212;
  color: #e0e0e0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

a {
  color: #6db3f2;
}

a:hover {
  color: #9ccfff;
}

.container {
  max-width: 720px;
  margin: 36px auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@media (max-width: 760px) {
  nav {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
  }
}

nav::-webkit-scrollbar {
  display: none;
}

nav .nav-track {
  display: inline-block;
}

nav a {
  margin-right: 14px;
  color: #6db3f2;
  text-decoration: none;
  display: inline-block;
}

nav a:hover {
  text-decoration: underline;
  color: #9ccfff;
}

nav .nav-spacer {
  display: inline-block;
  width: 30px;
}

/* Typography */
h1 {
  font-size: 2.3rem;
  font-weight: normal;
  margin: 1.5rem 0 0.3rem;
  color: #f0f0f0;
}

h2 {
  font-size: 1.3rem;
  font-weight: normal;
  margin: 2.2rem 0 0.8rem;
  color: #d0d0d0;
}

p {
  margin: 0.9rem 0;
  font-size: 1.05rem;
}

.muted {
  color: #888;
}

/* Hero (index page) */
.hero {
  max-width: 720px;
  margin: 0 auto 0.8rem;
  padding: 0 20px;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

@media (max-width: 760px) {
  .hero {
    max-width: none;
    padding: 0;
    margin: 0 0 0.7rem;
  }

  .hero img {
    border-radius: 0;
  }
}

/* Collapsible sections (startup-ma page) */
details {
  margin: 0.8rem 0;
  border: 1px solid #333;
  border-radius: 4px;
  background: #1a1a1a;
}

details[open] {
  background: #1e1e1e;
}

summary {
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: normal;
  color: #d0d0d0;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+ ";
  color: #666;
  font-family: monospace;
}

details[open] summary::before {
  content: "- ";
}

summary:hover {
  background: #252525;
}

.chapters {
  padding: 0 1rem 1rem 1rem;
}

.chapter {
  margin: 0.7rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.chapter-num {
  position: absolute;
  left: 0;
  color: #666;
  font-size: 0.9rem;
}

.chapter-title {
  font-size: 0.95rem;
  color: #c0c0c0;
}

.chapter-desc {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.2rem;
  line-height: 1.5;
}

.part-intro {
  padding: 0 1rem 0.5rem 1rem;
  font-size: 0.9rem;
  color: #999;
  font-style: italic;
  border-bottom: 1px solid #333;
  margin-bottom: 0.5rem;
}

/* Contact box */
.contact {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
  font-size: 0.95rem;
  border: 1px solid #333;
}

/* Forms */
.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #c0c0c0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  border: 1px solid #444;
  border-radius: 4px;
  box-sizing: border-box;
  background: #1e1e1e;
  color: #e0e0e0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6db3f2;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background: #6db3f2;
  color: #121212;
  border: none;
  padding: 0.7rem 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.form-submit:hover {
  background: #9ccfff;
}

/* Footer */
footer {
  margin-top: 2.2rem;
  font-size: 0.9rem;
  color: #666;
}

/* Questionnaire */
.hidden {
  display: none !important;
}

.intro-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
}

.intro-list li {
  margin: 0.5rem 0;
  color: #c0c0c0;
}

/* Assessment section box */
.assessment-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.assessment-box h2 {
  margin-top: 0;
}

.assessment-box > p {
  margin-bottom: 1rem;
}

.q-start-btn {
  background: #6db3f2;
  color: #121212;
  border: none;
  padding: 0.9rem 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 0.5rem;
}

.q-start-btn:hover {
  background: #9ccfff;
}

/* Progress bar */
.q-progress {
  margin-bottom: 1.5rem;
}

.q-progress-bar {
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.q-progress-fill {
  height: 100%;
  background: #6db3f2;
  transition: width 0.3s ease;
  width: 10%;
}

.q-progress-text {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

.q-hint {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
  margin: -0.5rem 0 1rem 0;
}

/* Question container */
#question-container h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Answer buttons */
.q-answer-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.q-answer-btn:hover {
  background: #252525;
  border-color: #6db3f2;
}

.q-answer-btn.selected {
  background: #1e3a5f;
  border-color: #6db3f2;
}

/* Back button */
.q-back-btn {
  background: transparent;
  border: 1px solid #444;
  color: #888;
  padding: 0.6rem 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

.q-back-btn:hover {
  border-color: #666;
  color: #c0c0c0;
}

/* Warning banner */
.q-warning {
  background: #3d2a1a;
  border: 1px solid #6b4423;
  border-radius: 4px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #e0c0a0;
  line-height: 1.6;
}

/* Results */
#results-section h1 {
  margin-top: 0;
}

#result-description {
  margin-bottom: 2rem;
}

#result-description ul {
  padding-left: 1.2rem;
  margin: 0.8rem 0;
}

#result-description li {
  margin: 0.4rem 0;
}

/* Result box */
.q-result-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.q-result-box h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #f0f0f0;
}

/* Recommended chapters */
.q-chapters {
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
}

.q-chapters h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: #c0c0c0;
}

.q-chapters-intro {
  font-size: 0.9rem;
  color: #999;
  margin: 0.5rem 0 1rem;
  font-style: italic;
}

.q-chapters-intro a {
  color: #6db3f2;
  text-decoration: none;
}

.q-chapters-intro a:hover {
  text-decoration: underline;
}

.q-chapter-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 0.95rem;
}

.q-chapter-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.q-chapter-num {
  color: #6db3f2;
  margin-right: 0.5rem;
}

.q-chapter-link {
  color: #c0c0c0;
  text-decoration: none;
  display: block;
}

.q-chapter-link:hover {
  color: #e0e0e0;
}

.q-chapter-link:hover .q-chapter-num {
  color: #9ccfff;
}

/* Restart button */
.q-restart-btn {
  background: transparent;
  border: 1px solid #444;
  color: #888;
  padding: 0.6rem 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}

.q-restart-btn:hover {
  border-color: #666;
  color: #c0c0c0;
}

/* Inbound Assessment Signal Badges */
.inbound-signal-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: normal;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-high {
  background: #1e3a2a;
  color: #6fcf97;
  border: 1px solid #2d5a3d;
}

.signal-medium {
  background: #3a3520;
  color: #e0c070;
  border: 1px solid #5a5030;
}

.signal-low {
  background: #3a2020;
  color: #e07070;
  border: 1px solid #5a3030;
}

/* Inbound Next Steps */
.inbound-next-steps {
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.inbound-step-item {
  padding: 0.5rem 0 0.5rem 1.2rem;
  position: relative;
  color: #c0c0c0;
  font-size: 0.95rem;
  border-bottom: 1px solid #2a2a2a;
}

.inbound-step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.inbound-step-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #6db3f2;
}

/* Resources Section */
.resources-section {
  margin: 2rem 0;
}

.resources-section h2 {
  margin-bottom: 1rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

.resource-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  border-color: #444;
  background: #1e1e1e;
}

.resource-title {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.resource-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 0.8rem;
}

.resource-link {
  font-size: 0.9rem;
  color: #6db3f2;
  text-decoration: none;
}

.resource-link:hover {
  color: #9ccfff;
  text-decoration: underline;
}

/* Resource Page Styles */
.resource-page {
  max-width: 720px;
  margin: 0 auto;
}

.resource-page h1 {
  margin-bottom: 0.5rem;
}

.resource-intro {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.checklist-section {
  margin: 1.5rem 0;
}

.checklist-section h2 {
  font-size: 1.1rem;
  color: #6db3f2;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #333;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  margin: 0.6rem 0;
  padding: 0.5rem 0;
}

.checklist-box {
  width: 18px;
  height: 18px;
  border: 1px solid #555;
  border-radius: 3px;
  margin-right: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-text {
  font-size: 0.95rem;
  color: #c0c0c0;
  line-height: 1.5;
}

.checklist-text.sub-item {
  padding-left: 1.5rem;
  color: #999;
  font-size: 0.9rem;
}

.email-template {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.2rem;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #c0c0c0;
}

.email-template .subject {
  color: #6db3f2;
  margin-bottom: 1rem;
}

.email-template .placeholder {
  color: #e8a838;
}

.deck-section {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.2rem;
  margin: 1rem 0;
}

.deck-section h3 {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.deck-section p {
  font-size: 0.9rem;
  color: #999;
  margin: 0.3rem 0;
}

.resource-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #666;
}

.resource-footer a {
  color: #6db3f2;
}

/* Full-width resource card */
.resource-card-full {
  grid-column: 1 / -1;
}

/* Tools Section */
.tools-section {
  margin: 2rem 0;
}

.tools-section h2 {
  margin-bottom: 1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.2rem;
}

.tool-card:hover {
  border-color: #444;
  background: #1e1e1e;
}

.tool-card-full {
  grid-column: 1 / -1;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.tool-header:hover {
  background: rgba(109, 179, 242, 0.08);
}

.tool-header:hover .tool-start-btn {
  background: #6db3f2;
  color: #121212;
}

.tool-title {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.tool-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}

.tool-start-btn {
  background: transparent;
  border: 1px solid #6db3f2;
  color: #6db3f2;
  padding: 0.5rem 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-start-btn:hover {
  background: #6db3f2;
  color: #121212;
}

.tool-content {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
}

/* Connect Section */
.connect-section {
  margin: 2rem 0;
}

.connect-section h2 {
  margin-bottom: 0.5rem;
}

.connect-section p {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.connect-link {
  font-size: 0.9rem;
  color: #6db3f2;
  text-decoration: none;
}

.connect-link:hover {
  color: #9ccfff;
  text-decoration: underline;
}

/* Valuation Tool Specific Styles */
.valuation-range-box {
  background: #1e3a5f;
  border: 1px solid #3a6ea5;
  border-radius: 4px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  text-align: center;
}

.valuation-range-label {
  font-size: 0.85rem;
  color: #9ccfff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.valuation-range-value {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.valuation-range-note {
  font-size: 0.85rem;
  color: #a0c4e8;
  font-style: italic;
}

.valuation-factors {
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}

.valuation-factor-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 0.95rem;
  color: #c0c0c0;
}

.valuation-factor-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.valuation-factor-positive {
  color: #7fba7f;
}

.valuation-factor-negative {
  color: #d4a574;
}

.valuation-factor-neutral {
  color: #a0a0a0;
}

/* Book Page Styles */
.book-page {
  max-width: 720px;
  margin: 0 auto;
}

/* Book Header (on chapter pages) */
.book-header {
  padding: 1rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid #333;
}

.book-title-link {
  font-size: 1.1rem;
  color: #6db3f2;
  text-decoration: none;
}

.book-title-link:hover {
  text-decoration: underline;
}

.book-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-left: 0.5rem;
}

/* Book Index Page */
.book-title-header {
  text-align: center;
  margin: 2rem 0 2.5rem;
}

.book-title-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
}

.book-subtitle-large {
  font-size: 1.2rem;
  color: #999;
  margin: 0.5rem 0;
  font-style: italic;
}

.book-author {
  font-size: 1rem;
  color: #888;
  margin: 0.5rem 0;
}

.book-intro {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.book-intro p {
  margin: 0.8rem 0;
}

.book-start-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #6db3f2;
  text-decoration: none;
  font-weight: 500;
}

.book-start-link:hover {
  text-decoration: underline;
}

/* Table of Contents */
.book-toc {
  margin: 2rem 0;
}

.book-toc h2 {
  margin-bottom: 1.5rem;
}

.toc-section {
  margin-bottom: 1.5rem;
}

.toc-part {
  font-size: 1rem;
  color: #6db3f2;
  margin: 1.5rem 0 0.8rem;
  font-weight: normal;
}

.toc-item {
  display: block;
  padding: 0.5rem 0;
  color: #c0c0c0;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid #252525;
}

.toc-item:hover {
  color: #e0e0e0;
  background: #1a1a1a;
  margin: 0 -0.5rem;
  padding: 0.5rem 0.5rem;
}

.toc-item.toc-special {
  font-style: italic;
  color: #999;
}

.toc-num {
  display: inline-block;
  width: 2rem;
  color: #666;
}

/* Chapter Navigation */
.chapter-nav-top,
.chapter-nav-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin: 0;
}

.chapter-nav-top {
  border-bottom: 1px solid #333;
}

.chapter-nav-bottom {
  border-top: 1px solid #333;
}

.chapter-nav-link {
  color: #6db3f2;
  text-decoration: none;
  font-size: 0.9rem;
}

.chapter-nav-link:hover {
  text-decoration: underline;
}

.chapter-nav-link.disabled {
  color: #555;
  cursor: default;
}

.chapter-progress {
  color: #888;
  font-size: 0.85rem;
}

.chapter-toc-link {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
}

.chapter-toc-link:hover {
  color: #c0c0c0;
  text-decoration: underline;
}

/* Chapter Content */
.chapter-content {
  margin: 2.5rem 0;
}

.chapter-header {
  margin-bottom: 2.5rem;
}

.part-label {
  display: block;
  font-size: 0.85rem;
  color: #6db3f2;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chapter-header h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 0;
}

.chapter-number {
  display: block;
  font-size: 1.1rem;
  color: #888;
  font-weight: normal;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.chapter-body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.chapter-body p {
  margin: 1.2rem 0;
}

/* Email formatting */
.email-block {
  background: #1a1a1a;
  border-left: 3px solid #444;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

.email-block p {
  margin: 0.5rem 0;
}

.email-header {
  color: #6db3f2;
  font-weight: 500;
}

.short-line {
  margin: 0.4rem 0 !important;
}

/* Q&A formatting */
.qa-block {
  background: #1a1a1a;
  border-left: 3px solid #6db3f2;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.qa-block p {
  margin: 0.8rem 0;
}

.qa-question {
  color: #6db3f2;
  font-weight: 600;
  margin-top: 1.2rem !important;
  margin-bottom: 0.5rem !important;
}

.qa-question:first-child {
  margin-top: 0 !important;
}

.qa-answer {
  padding-left: 1.5rem;
  color: #d4d4d4;
  line-height: 1.7;
}

/* Term sheet formatting */
.term-sheet-block {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.term-sheet-block .ts-header {
  text-align: center;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #6db3f2;
}

.term-sheet-block .ts-section {
  margin: 1rem 0;
  display: flex;
  align-items: flex-start;
}

.term-sheet-block .ts-section > div {
  display: flex;
  width: 100%;
}

.term-sheet-block .ts-label {
  font-weight: 600;
  flex-shrink: 0;
  width: 200px;
  color: #aaa;
}

.term-sheet-block .ts-content {
  flex: 1;
  padding-left: 0;
}

.term-sheet-block .ts-indent-1 {
  padding-left: 2rem;
  margin: 0.3rem 0;
}

.term-sheet-block .ts-indent-2 {
  padding-left: 4rem;
  margin: 0.3rem 0;
}

.term-sheet-block .ts-footer {
  margin-top: 2rem;
  padding-left: 200px;
  font-style: italic;
  color: #888;
}

.term-sheet-block .ts-signature {
  margin-top: 2rem;
  font-weight: 600;
  text-align: center;
}

/* Text emphasis */
.chapter-body strong {
  font-weight: 600;
}

.chapter-body em {
  font-style: italic;
}

/* Sub-headers in chapters */
.chapter-body .sub-header {
  font-weight: 700;
  margin: 1.5rem 0 0.8rem 0;
  font-size: 1.05rem;
}

/* Indented subsections */
.chapter-body .sub-section {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

/* Table styling */
.chapter-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #1a1a1a;
  border: 1px solid #333;
  font-size: 0.9rem;
}

.chapter-body table thead {
  background: #252525;
}

.chapter-body table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #6db3f2;
  border-bottom: 2px solid #444;
}

.chapter-body table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2a2a2a;
  vertical-align: top;
}

.chapter-body table tbody tr:hover {
  background: #222;
}

.chapter-body table tbody tr:last-child td {
  border-bottom: none;
}

.chapter-body table ul {
  margin: 0;
  padding-left: 1.2rem;
}

.chapter-body table li {
  margin: 0.3rem 0;
  line-height: 1.5;
}

/* Chapter Feedback */
.chapter-feedback {
  text-align: center;
  padding: 1rem 0;
  color: #888;
  font-size: 0.9rem;
}

.chapter-feedback a {
  color: #6db3f2;
}

/* Book Copyright */
.book-copyright {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.85rem;
  color: #888;
}

.book-copyright p {
  margin: 0.5rem 0;
}

.book-copyright a {
  color: #6db3f2;
}

.copyright-details {
  font-size: 0.8rem;
  color: #666;
}

/* Responsive */
@media (max-width: 600px) {
  .book-title-header h1 {
    font-size: 2rem;
  }

  .chapter-header h1 {
    font-size: 1.5rem;
  }

  .chapter-nav-top,
  .chapter-nav-bottom {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .chapter-progress {
    order: -1;
    width: 100%;
    text-align: center;
    padding-bottom: 0.5rem;
  }
}

