/* ============================================================
   Book Reader — in-page flipbook for the Ramsaroop book section
   Premium / restrained / editorial. Navy chrome, ivory paper,
   gold accents. WCAG AA+. Written for the existing site tokens.
   ============================================================ */

:root {
  --br-navy: #0B1F33;
  --br-navy-2: #122A42;
  --br-ink: #232A31;
  --br-ink-soft: #4A525B;
  --br-ivory: #F7F3EA;
  --br-ivory-2: #EFEADD;
  --br-gold: #C6A15B;
  --br-gold-deep: #8B6914;
  --br-serif: Georgia, 'Times New Roman', 'Songti SC', serif;
  --br-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --br-page-w: 420px;
  --br-page-h: 580px;
  --br-page-pad-x: 46px;
  --br-page-pad-y: 44px;
}

/* ---------- Launcher added to the book section ---------- */
.br-launch {
  background: linear-gradient(160deg, #0d2033 0%, #16304a 100%);
  border: 1px solid rgba(198,161,91,0.35);
  border-radius: 14px;
  padding: 2.25rem;
  margin: 0 auto 3rem;
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 18px 44px rgba(11,31,51,0.45);
}
.br-launch-cover {
  flex: 0 0 170px;
}
.br-launch-cover img {
  width: 170px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  display: block;
}
.br-launch-body { flex: 1 1 300px; min-width: 240px; text-align: left; }
.br-launch-body h3 {
  font-family: var(--br-serif);
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.br-launch-body .br-launch-sub {
  color: #cdd6e0;
  font-size: 0.95rem;
  margin: 0 0 1rem;
  font-weight: 300;
}
.br-launch-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.br-open-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--br-gold);
  color: #0B1F33;
  border: none;
  font-family: var(--br-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.br-open-btn:hover, .br-open-btn:focus-visible { background: #d4b572; }
.br-open-btn:focus-visible { outline: 3px solid #d4b572; outline-offset: 3px; }
.br-chapter-list-btn {
  background: transparent;
  color: #e6eef7;
  border: 1px solid rgba(255,255,255,0.28);
  font-family: var(--br-sans);
  font-size: 0.9rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.br-chapter-list-btn:hover, .br-chapter-list-btn:focus-visible { background: rgba(255,255,255,0.08); }
.br-chapter-list-btn:focus-visible { outline: 3px solid #d4b572; outline-offset: 3px; }
.br-launch-note { width: 100%; color: #93a3b5; font-size: 0.85rem; margin-bottom: 0; }

/* ---------- Reader overlay ---------- */
.br-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--br-sans);
}
.br-root.br-open { display: flex; }
.br-root[hidden] { display: none; }
.br-scrim {
  position: absolute; inset: 0;
  background: rgba(5,12,20,0.88);
  backdrop-filter: blur(2px);
}
.br-sheet {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0a1a2b 0%, #0B1F33 28%, #10263b 100%);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}

/* top bar */
.br-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(198,161,91,0.25);
  background: rgba(10,26,43,0.85);
}
.br-close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #eaf1f8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.br-close:hover, .br-close:focus-visible { background: rgba(255,255,255,0.1); border-color: #d4b572; }
.br-close:focus-visible { outline: 3px solid #d4b572; outline-offset: 2px; }
.br-titles { flex: 1 1 auto; min-width: 0; }
.br-titles .br-book-name {
  display: block;
  color: #9fb0c2;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.1rem;
}
.br-chapter-title {
  margin: 0;
  color: #fff;
  font-family: var(--br-serif);
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.br-top-actions { flex: 0 0 auto; display: flex; gap: 0.6rem; align-items: center; }
.br-contents-btn, .br-continuous-link {
  font-family: var(--br-sans);
  font-size: 0.82rem;
  color: #dbe6f0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.br-contents-btn:hover, .br-contents-btn:focus-visible,
.br-continuous-link:hover, .br-continuous-link:focus-visible { background: rgba(255,255,255,0.09); }
.br-contents-btn:focus-visible, .br-continuous-link:focus-visible { outline: 3px solid #d4b572; outline-offset: 2px; }

/* contents dropdown */
.br-contents-wrap { position: relative; }
.br-contents-panel {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  width: 300px; max-width: 82vw;
  background: #0f2438;
  border: 1px solid rgba(198,161,91,0.4);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  padding: 0.6rem;
  display: none;
  max-height: 60vh;
  overflow: auto;
}
.br-contents-wrap.br-open .br-contents-panel { display: block; }
.br-contents-panel h3 {
  margin: 0.2rem 0.5rem 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9fb0c2; font-weight: 600;
}
.br-contents-item {
  display: block; width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #e8eef5;
  font-size: 0.88rem;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--br-sans);
}
.br-contents-item:hover, .br-contents-item:focus-visible { background: rgba(214,181,114,0.14); color: #fff; }
.br-contents-item:focus-visible { outline: 2px solid #d4b572; outline-offset: 1px; }
.br-contents-item .br-ci-num { color: var(--br-gold); margin-right: 0.4rem; font-weight: 600; }

/* stage / book area */
.br-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  position: relative;
}
.br-bookview {
  position: relative;
  height: var(--br-page-h);
  outline: none;
}
.br-page-holder {
  position: relative;
  width: var(--br-page-w);
  height: var(--br-page-h);
}
.br-page {
  position: absolute;
  top: 0; left: 0;
  width: var(--br-page-w);
  height: var(--br-page-h);
  background:
    radial-gradient(120% 160% at 100% 0%, #fbf8f1 0%, #f4efe3 55%, #ece5d3 100%);
  border-radius: 3px 10px 10px 3px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(0,0,0,0.05),
    inset 14px 0 26px -18px rgba(11,31,51,0.35);
  color: var(--br-ink);
  padding: var(--br-page-pad-y) var(--br-page-pad-x);
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--br-serif);
  font-size: var(--br-font-size, 17px);
  line-height: var(--br-line-height, 1.62);
}
/* closed cover look for chapter start page handled in JS with .br-page--cover */

.br-page-banner {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--br-gold-deep);
  font-family: var(--br-sans);
  font-weight: 600;
  margin: 0 0 0.7rem;
}
.br-page-title {
  font-family: var(--br-serif);
  font-size: 1.55rem;
  line-height: 1.18;
  color: #1b2a38;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.br-page-meta {
  font-family: var(--br-sans);
  font-size: 0.8rem;
  color: #6b7480;
  margin: 0 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(139,105,20,0.25);
}
.br-page p { margin: 0 0 0.85em; }
.br-page p:last-child { margin-bottom: 0; }
.br-page h2 {
  font-family: var(--br-serif);
  font-size: 1.18rem;
  color: #2a3a48;
  margin: 0.9em 0 0.4em;
  line-height: 1.25;
  font-weight: 600;
  break-after: avoid;
}
.br-page ul, .br-page ol { margin: 0 0 0.85em; padding-left: 1.2em; }
.br-page li { margin-bottom: 0.4em; }
.br-page a {
  color: #7a5a12;
  text-underline-offset: 2px;
}
.br-page-footer {
  position: absolute;
  left: var(--br-page-pad-x);
  right: var(--br-page-pad-x);
  bottom: var(--br-page-pad-y);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #8a93a0;
  font-family: var(--br-sans);
  font-size: 0.72rem;
  border-top: 1px solid rgba(139,105,20,0.18);
  padding-top: 0.45rem;
}
.br-page-footer .br-pg-num { color: var(--br-gold-deep); font-weight: 600; }

/* page turn animation layer */
.br-turn {
  position: absolute;
  top: 0; left: 0;
  width: var(--br-page-w);
  height: var(--br-page-h);
  z-index: 5;
  pointer-events: none;
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.48s cubic-bezier(0.4, 0.15, 0.2, 1);
}
.br-turn .br-page {
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.br-turn.br-turn-prev { transform-origin: right center; }
.br-turn.br-turn-go.br-turn-next { transform: perspective(1800px) rotateY(-108deg); }
.br-turn.br-turn-go.br-turn-prev { transform: perspective(1800px) rotateY(108deg); }

/* bottom bar */
.br-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(198,161,91,0.22);
  background: rgba(10,26,43,0.85);
}
.br-nav-btn {
  flex: 0 0 auto;
  width: 50px; height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #eaf1f8;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.br-nav-btn:hover:not(:disabled), .br-nav-btn:focus-visible { background: rgba(255,255,255,0.1); border-color: #d4b572; }
.br-nav-btn:focus-visible { outline: 3px solid #d4b572; outline-offset: 2px; }
.br-nav-btn:disabled { opacity: 0.35; cursor: default; }
.br-progress {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}
.br-progress-label {
  color: #dbe6f0;
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
  font-weight: 400;
}
.br-progress-label .br-prog-strong { color: #fff; font-weight: 600; }
.br-progress-track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}
.br-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c6a15b, #d4b572);
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* end state */
.br-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  width: 100%; height: 100%;
}
.br-end h3 {
  font-family: var(--br-serif);
  color: #1b2a38;
  font-size: 1.5rem;
  margin: 0;
}
.br-end p { color: #5a636e; margin: 0; max-width: 34ch; }
.br-end a {
  font-family: var(--br-sans);
  color: #7a5a12;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .br-turn { transition: none; }
  .br-open-btn, .br-close, .br-nav-btn, .br-contents-btn,
  .br-chapter-list-btn, .br-continuous-link, .br-page { transition: none !important; }
}

/* focus visibility helpers */
.br-root :focus-visible { outline: 3px solid #d4b572; outline-offset: 2px; }

/* responsive */
@media (max-width: 600px) {
  :root {
    --br-page-pad-x: 30px;
    --br-page-pad-y: 34px;
  }
  .br-launch { padding: 1.5rem; }
  .br-launch-cover { flex-basis: 130px; }
  .br-launch-cover img { width: 130px; }
  .br-top { padding: 0.7rem 0.8rem; gap: 0.6rem; }
  .br-continuous-link { display: none; }
  .br-bottom { padding: 0.75rem 0.8rem; gap: 0.7rem; }
  .br-stage { padding: 0.6rem 0.75rem; }
  .br-page { font-size: var(--br-font-size, 16px); }
}

@media (min-width: 1400px) {
  .br-page { font-size: var(--br-font-size, 18px); }
}

/* ============================================================
   Cover entry point (About the Book) — primary entry to reader
   ============================================================ */
.book-cover-entry {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.book-cover-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, outline-color 0.22s ease;
  outline: 3px solid transparent;
  outline-offset: 4px;
}
.book-cover-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11,31,51,0.4);
}
.book-cover-link:focus-visible {
  outline: 3px solid var(--br-gold);
  outline-offset: 4px;
}
.book-cover-link:active { transform: translateY(-1px) scale(0.99); }
.book-cover-link img { display: block; }
.book-cover-link:hover img,
.book-cover-link:focus img { filter: brightness(1.03) saturate(1.03); }
.book-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.book-start-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--br-gold);
  color: #0B1F33;
  border-radius: 999px;
  padding: 0.78rem 1.4rem;
  font-family: var(--br-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(11,31,51,0.25);
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
.book-start-btn:hover, .book-start-btn:focus-visible { background: #d4b572; transform: translateY(-2px); }
.book-start-btn:focus-visible { outline: 3px solid #8B6914; outline-offset: 3px; }
.book-start-btn:active { transform: translateY(0); }
.book-continue-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: transparent;
  color: var(--br-navy);
  border: 1.5px solid var(--br-gold);
  border-radius: 999px;
  padding: 0.72rem 1.3rem;
  font-family: var(--br-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.book-continue-btn:hover, .book-continue-btn:focus-visible { background: rgba(198,161,91,0.12); border-color: #8B6914; }
.book-continue-btn:focus-visible { outline: 3px solid var(--br-gold); outline-offset: 3px; }

/* launcher cover is now an anchor too */
.br-launch-cover { display: block; text-decoration: none; cursor: pointer; border-radius: 8px; }
.br-launch-cover:hover img { transform: translateY(-3px); }
.br-launch-cover:focus-visible { outline: 3px solid #d4b572; outline-offset: 3px; }
.br-launch-cover img { transition: transform 0.2s ease; }
.br-launch-continue {
  display: inline-flex; align-items: center;
  color: #dbe6f0; font-family: var(--br-sans); font-size: 0.9rem; font-weight: 500;
  text-underline-offset: 3px;
}
.br-launch-continue:hover { color: #fff; }
.br-launch-continue[style*="display: none"] { display: none; }

/* ============================================================
   Reader chrome additions: chapter nav bar
   ============================================================ */
.br-chapnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(198,161,91,0.18);
  background: rgba(9,22,37,0.6);
}
.br-chap-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  color: #dbe6f0;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-family: var(--br-sans);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.br-chap-btn:hover:not(:disabled), .br-chap-btn:focus-visible { background: rgba(255,255,255,0.09); border-color: #d4b572; }
.br-chap-btn:focus-visible { outline: 3px solid #d4b572; outline-offset: 2px; }
.br-chap-btn:disabled { opacity: 0.35; cursor: default; }
.br-chap-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  color: #c9d5e0;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* ============================================================
   Reader settings panel (text size + theme)
   ============================================================ */
.br-settings-wrap { position: relative; }
.br-settings-btn {
  width: 44px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  color: #eaf1f8;
  font-family: var(--br-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.br-settings-btn:hover, .br-settings-btn:focus-visible { background: rgba(255,255,255,0.1); border-color: #d4b572; }
.br-settings-btn:focus-visible { outline: 3px solid #d4b572; outline-offset: 2px; }
.br-settings-panel {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  width: 240px; max-width: 82vw;
  background: #0f2438;
  border: 1px solid rgba(198,161,91,0.4);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  padding: 0.75rem 0.8rem;
  display: none;
  z-index: 10;
}
.br-settings-wrap.br-open .br-settings-panel { display: block; }
.br-set-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.3rem 0; }
.br-set-row + .br-set-row { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 0.35rem; padding-top: 0.6rem; }
.br-set-label { color: #9fb0c2; font-size: 0.78rem; letter-spacing: 0.04em; }
.br-size-btns { display: flex; gap: 0.5rem; }
.br-size-btn {
  width: 38px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #eaf1f8;
  font-family: var(--br-sans);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.br-size-btn:hover, .br-size-btn:focus-visible { background: rgba(255,255,255,0.12); }
.br-size-btn:focus-visible { outline: 3px solid #d4b572; outline-offset: 2px; }
.br-theme-btn {
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #eaf1f8;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--br-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.br-theme-btn:hover, .br-theme-btn:focus-visible { background: rgba(255,255,255,0.12); }
.br-theme-btn:focus-visible { outline: 3px solid #d4b572; outline-offset: 2px; }

/* ============================================================
   Light reading theme (restrained warm ivory chrome + white paper)
   ============================================================ */
.br-sheet.br-theme-light {
  background: linear-gradient(180deg, #f7f1e4 0%, #efe7d4 100%);
  box-shadow: 0 30px 90px rgba(30,20,5,0.35);
}
.br-sheet.br-theme-light .br-top,
.br-sheet.br-theme-light .br-bottom {
  background: rgba(249,244,232,0.92);
  border-color: rgba(139,105,20,0.28);
}
.br-sheet.br-theme-light .br-chapnav { background: rgba(240,232,214,0.7); border-color: rgba(139,105,20,0.2); }
.br-sheet.br-theme-light .br-book-name,
.br-sheet.br-theme-light .br-set-label { color: #6b5a2f; }
.br-sheet.br-theme-light .br-chapter-title,
.br-sheet.br-theme-light .br-chap-label { color: #2b2a24; }
.br-sheet.br-theme-light .br-close,
.br-sheet.br-theme-light .br-settings-btn,
.br-sheet.br-theme-light .br-contents-btn,
.br-sheet.br-theme-light .br-chap-btn,
.br-sheet.br-theme-light .br-size-btn,
.br-sheet.br-theme-light .br-theme-btn,
.br-sheet.br-theme-light .br-nav-btn {
  border-color: rgba(139,105,20,0.4);
  color: #3a3220;
}
.br-sheet.br-theme-light .br-close:hover, .br-sheet.br-theme-light .br-close:focus-visible,
.br-sheet.br-theme-light .br-settings-btn:hover, .br-sheet.br-theme-light .br-settings-btn:focus-visible,
.br-sheet.br-theme-light .br-contents-btn:hover, .br-sheet.br-theme-light .br-contents-btn:focus-visible,
.br-sheet.br-theme-light .br-chap-btn:hover:not(:disabled), .br-sheet.br-theme-light .br-chap-btn:focus-visible,
.br-sheet.br-theme-light .br-size-btn:hover, .br-sheet.br-theme-light .br-size-btn:focus-visible,
.br-sheet.br-theme-light .br-theme-btn:hover, .br-sheet.br-theme-light .br-theme-btn:focus-visible,
.br-sheet.br-theme-light .br-nav-btn:hover:not(:disabled), .br-sheet.br-theme-light .br-nav-btn:focus-visible {
  background: rgba(139,105,20,0.12);
}
.br-sheet.br-theme-light .br-progress-label { color: #4a4030; }
.br-sheet.br-theme-light .br-progress-label .br-prog-strong { color: #2b2a24; }
.br-sheet.br-theme-light .br-progress-track { background: rgba(139,105,20,0.25); }
.br-sheet.br-theme-light .br-contents-panel,
.br-sheet.br-theme-light .br-settings-panel {
  background: #fbf7ec;
  border-color: rgba(139,105,20,0.45);
  box-shadow: 0 16px 40px rgba(60,40,5,0.3);
}
.br-sheet.br-theme-light .br-contents-panel h3 { color: #6b5a2f; }
.br-sheet.br-theme-light .br-contents-item { color: #2b2a24; }
.br-sheet.br-theme-light .br-contents-item:hover, .br-sheet.br-theme-light .br-contents-item:focus-visible { background: rgba(198,161,91,0.2); color: #1c1a14; }
.br-sheet.br-theme-light .br-contents-item .br-ci-num { color: #8B6914; }
.br-sheet.br-theme-light .br-page {
  background:
    radial-gradient(120% 160% at 100% 0%, #ffffff 0%, #fbfaf5 55%, #f4f0e4 100%);
  color: #26241d;
}
.br-sheet.br-theme-light .br-page-banner { color: #8B6914; }
.br-sheet.br-theme-light .br-page-footer { color: #8a8070; border-color: rgba(139,105,20,0.2); }
.br-sheet.br-theme-light .br-end h3 { color: #26241d; }
.br-sheet.br-theme-light .br-end p { color: #55513f; }

@media (max-width: 600px) {
  .br-chapnav { padding: 0.4rem 0.75rem; gap: 0.4rem; }
  .br-chap-btn { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
  .br-chap-btn .br-chap-btn-label { display: none; }
  .br-chap-label { font-size: 0.74rem; }
  .book-cover-entry { gap: 0.9rem; }
  .book-start-btn { padding: 0.7rem 1.2rem; }
}
