body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f5f5f5;
  color: #111;
}

/* Top bar */
.top-bar {
  background: #e0e0e0;
  border-bottom: 1px solid #ccc;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

select {
  padding: 0.4rem;
  font-size: 1rem;
}

.donation-link,
.nav-button {
  padding: 0.45rem 0.8rem;
  border: 1px solid #999;
  background: #fff;
  text-decoration: none;
  color: #111;
  border-radius: 4px;
  font-size: 1rem;
}

.donation-link:hover,
.nav-button:hover {
  background: #f0f0f0;
}

.copyright-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  padding: 1rem 0;
}

/* Page container */
.page-container {
  max-width: 800px;
  margin: 1.5rem auto;
  background: #fff;
  padding: 1.5rem;
  border: 1px solid #ddd;
}

.chapter-title {
  margin-top: 0;
  font-size: 1.6rem;
  color: #111;
}

p {
  text-align: left;
  line-height: 1.7;
  margin: 1rem 0;
  font-size: 1.05rem;
}

/* Epigraph */
.epigraph {
  font-style: italic;
  text-align: center;
  margin: 1.5rem 0;
  padding: 0.5rem 0;
  opacity: 0.85;
  font-size: 1.1rem;
}

/* Inset */
.inset {
  border-left: 4px solid #999;
  background: #f9f9f9;
  padding: 0.8rem 1rem;
  margin: 1.2rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.inset-title {
  font-weight: bold;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

/* Lists */
ul,
ol {
  margin: 1rem 0 1rem 2rem;
  padding-left: 1.2rem;
}

li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    align-items: stretch;
  }

  select {
    width: 100%;
  }

  .donation-link,
  .nav-button {
    width: 100%;
    text-align: center;
  }

  .page-container {
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 1rem;
  }

  .chapter-title {
    font-size: 1.4rem;
  }

  p {
    font-size: 1.1rem;
  }

  .epigraph {
    font-size: 1.2rem;
  }

  .inset {
    padding: 1rem;
    font-size: 1.1rem;
  }
}

/* Text size toggle */
body.large-text p,
body.large-text li,
body.large-text .inset,
body.large-text .epigraph {
  font-size: 1.25rem;
  line-height: 1.85;
}

body.large-text .chapter-title {
  font-size: 1.9rem;
}

  .video-box {
      position: relative;
      width: 100%;
      max-width: 560px;
      margin: 25px auto;
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(212,175,55,0.4);
      overflow: hidden;
    }

    .video-box::before {
      content: "";
      display: block;
      padding-top: 56.25%;
    }

    .video-box iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }
.support-box {
  float: right;
  width: 280px;              /* same width as your existing inset */
  margin: 0 0 20px 20px;     /* space between box and text */
  padding: 15px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-size: 0.9em;
  line-height: 1.4;
  border-radius: 4px;        /* optional: softens the box */
}

.support-box h3 {
  margin-top: 0;
  font-size: 1.1em;
}

.support-button {
  display: block;
  margin: 10px 0;
  padding: 8px 10px;
  background: #eee;
  border: 1px solid #bbb;
  text-align: center;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
}

.support-button:hover {
  background: #e2e2e2;
}

.support-note {
  font-size: 0.85em;
  color: #666;
}

/* Mobile behavior: float collapses and becomes full-width */
@media (max-width: 600px) {
  .support-box {
    float: none;
    width: 100%;
    margin: 20px 0;
  }
}
.donation-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.9em;
  text-align: center;
  color: #555;
}
.donation-footer a {
  color: #0066cc;
  text-decoration: none;
}
.donation-footer a:hover {
  text-decoration: underline;
}

