/* ============================================================
   SettlementRadar Bookstore — Task #1527573
   /books + /books/:slug pages

   Typography: Fraunces (display) + DM Sans (body)
   Colors: emerald #00875A primary, dark navy book covers
   Design: premium editorial bookstore aesthetic
   ============================================================ */

/* ─── Page Wrapper ─────────────────────────────────────────── */
.bk-page {
  background: #ffffff;
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
}

/* ─── HERO SECTION ─────────────────────────────────────────── */
.bk-hero {
  background: linear-gradient(160deg, #06101f 0%, #0d1f12 55%, #06101f 100%);
  color: #fff;
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 135, 90, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 135, 90, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.bk-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 135, 90, 0.2);
  border: 1px solid rgba(0, 135, 90, 0.4);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00e5a0;
  margin-bottom: 24px;
  position: relative;
}

.bk-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #00e5a0;
  border-radius: 50%;
  animation: bk-pulse 2s ease-in-out infinite;
}

@keyframes bk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.bk-hero__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 20px;
  position: relative;
}

.bk-hero__title em {
  font-style: italic;
  color: #00e5a0;
  font-weight: 900;
}

.bk-hero__sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative;
}

.bk-hero__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.bk-hero__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #00875A;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 135, 90, 0.4);
  letter-spacing: -0.01em;
}

.bk-hero__cta-primary:hover {
  background: #006B4D;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 135, 90, 0.45);
  color: #fff !important;
  text-decoration: none;
}

.bk-hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.bk-hero__cta-secondary:hover { color: #fff; text-decoration: none; }

.bk-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
  position: relative;
}

.bk-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bk-hero__stat-num {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: #00e5a0;
  line-height: 1;
}

.bk-hero__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7); /* WCAG AA fix: was 0.55 (6.18:1) → 0.7 (9.6:1) on #06101f */
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bk-hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ─── SECTION LABELS ────────────────────────────────────────── */
.bk-section-header {
  text-align: center;
  padding: 64px 24px 48px;
}

.bk-section-header__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00875A;
  margin-bottom: 12px;
}

.bk-section-header__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.bk-section-header__sub {
  font-size: 18px;
  color: #4B5563;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── BOOK GRID ─────────────────────────────────────────────── */
.bk-grid-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.bk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .bk-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
  .bk-grid { grid-template-columns: 1fr; gap: 20px; }
  .bk-grid-wrap { padding: 0 16px 60px; }
}

/* ─── BOOK CARD ─────────────────────────────────────────────── */
.bk-card {
  background: #ffffff;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.bk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
  border-color: #00875A;
}

/* Book Cover */
.bk-card__cover {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bk-card__cover-bg {
  position: absolute;
  inset: 0;
}

.bk-card__cover-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.bk-card__cover-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 41px
  );
}

.bk-card__cover-content {
  position: relative;
  text-align: center;
  padding: 24px;
  z-index: 1;
}

.bk-card__icon {
  font-size: 44px;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.bk-card__cover-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 0;
}

.bk-card__cover-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

/* Card Body */
.bk-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bk-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bk-card__meta-chip {
  font-size: 11px;
  font-weight: 600;
  color: #00643E;
  background: #E6F9F3;
  border-radius: 100px;
  padding: 3px 9px;
  letter-spacing: 0.03em;
}

.bk-card__title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bk-card__subtitle {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 16px;
  line-height: 1.45;
}

.bk-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bk-card__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  line-height: 1.45;
}

.bk-card__bullets li::before {
  content: '✓';
  color: #00875A;
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

.bk-card__footer {
  margin-top: auto;
  border-top: 1px solid #F3F4F6;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bk-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bk-card__price {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: #0A0A0A;
}

.bk-card__price-note {
  font-size: 13px;
  color: #6B7280;
}

.bk-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bk-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #00875A;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
  min-height: 44px;
  text-align: center;
}

.bk-btn-primary:hover {
  background: #006B4D;
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none;
}

.bk-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F9FAFB;
  color: #374151 !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid #E5E7EB;
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
  min-height: 44px;
  text-align: center;
}

.bk-btn-secondary:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #374151 !important;
  text-decoration: none;
}

/* ─── BUNDLE SECTION ────────────────────────────────────────── */
.bk-bundle {
  background: linear-gradient(160deg, #06101f 0%, #0d1f12 100%);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.bk-bundle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,135,90,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.bk-bundle__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.bk-bundle__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,135,90,0.25);
  border: 1px solid rgba(0,229,160,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00e5a0;
  margin-bottom: 28px;
}

.bk-bundle__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bk-bundle__title em {
  font-style: italic;
  color: #00e5a0;
}

.bk-bundle__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Value comparison */
.bk-bundle__compare {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px 36px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.bk-bundle__price-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.bk-bundle__price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6); /* WCAG AA fix: was 0.5 (5.34:1) → 0.6 (7.17:1) on #06101f */
}

.bk-bundle__price-amount {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.bk-bundle__price-amount--strike {
  text-decoration: line-through;
  color: rgba(255,255,255,0.35);
}

.bk-bundle__price-amount--free {
  color: #00e5a0;
}

.bk-bundle__vs {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}

.bk-bundle__arrow {
  font-size: 24px;
  opacity: 0.5;
}

/* Value stack */
.bk-bundle__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.bk-bundle__stack-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.bk-bundle__stack-item-check {
  color: #00e5a0;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.bk-bundle__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #00875A;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,135,90,0.45);
  letter-spacing: -0.01em;
}

.bk-bundle__cta:hover {
  background: #006B4D;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,135,90,0.5);
  color: #fff !important;
  text-decoration: none;
}

.bk-bundle__note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ─── SOCIAL PROOF SECTION ──────────────────────────────────── */
.bk-proof {
  background: #F9FAFB;
  padding: 64px 24px;
}

.bk-proof__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.bk-proof__header {
  text-align: center;
  margin-bottom: 40px;
}

.bk-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .bk-proof__grid { grid-template-columns: 1fr; gap: 16px; }
}

.bk-proof__card {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
}

.bk-proof__stars {
  color: #F59E0B;
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.bk-proof__quote {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 16px;
  font-style: italic;
}

.bk-proof__author {
  font-size: 13px;
  font-weight: 600;
  color: #0A0A0A;
}

.bk-proof__location {
  font-size: 12px;
  color: #6B7280;
}

.bk-proof__amount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E6F9F3;
  color: #00643E;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 8px;
}

/* ─── STICKY BOTTOM CTA (mobile) ────────────────────────────── */
.bk-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 16, 31, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  z-index: 300;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.bk-sticky__text {
  flex: 1;
  min-width: 0;
}

.bk-sticky__title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-sticky__sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7); /* WCAG AA fix: was 0.55 → 0.7 ensures 9.6:1 on #06101f */
}

.bk-sticky__btn {
  flex-shrink: 0;
  background: #00875A;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.18s;
}

.bk-sticky__btn:hover { background: #006B4D; color: #fff !important; }

@media (max-width: 640px) {
  .bk-sticky { display: flex; }
  .bk-page { padding-bottom: 80px; }
}

/* ═══════════════════════════════════════════════════════════════
   BOOK READER PAGE (/books/:slug)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reader Layout ─────────────────────────────────────────── */
.br-page {
  background: #ffffff;
  min-height: 100vh;
}

.br-cover-banner {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.br-cover-banner__bg {
  position: absolute;
  inset: 0;
}

.br-cover-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.br-cover-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.br-cover-banner__icon {
  font-size: 52px;
  display: block;
  margin-bottom: 8px;
}

.br-cover-banner__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

.br-cover-banner__sub {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 6px 0 0;
}

.br-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .br-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
}

/* ─── TOC Sidebar ────────────────────────────────────────────── */
.br-sidebar {
  position: sticky;
  top: 100px;
}

.br-sidebar__book-info {
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.br-sidebar__book-price {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: #0A0A0A;
  margin-bottom: 12px;
}

.br-sidebar__book-price span {
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
}

.br-sidebar__btn {
  display: block;
  width: 100%;
  background: #00875A;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  margin-bottom: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.br-sidebar__btn:hover { background: #006B4D; color: #fff !important; }

.br-sidebar__btn--outline {
  background: transparent;
  border: 1.5px solid #E5E7EB;
  color: #374151 !important;
}

.br-sidebar__btn--outline:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
  color: #374151 !important;
}

.br-sidebar__pro-note {
  font-size: 12px;
  color: #6B7280;
  text-align: center;
  margin-top: 8px;
}

.br-toc {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

.br-toc__header {
  padding: 14px 16px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
}

.br-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.br-toc__item {
  border-bottom: 1px solid #F3F4F6;
}

.br-toc__item:last-child { border-bottom: none; }

.br-toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 12px;
  color: #4B5563;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.br-toc__link:hover {
  background: #F9FAFB;
  color: #00875A;
  text-decoration: none;
}

.br-toc__link--active {
  background: #E6F9F3;
  color: #00643E;
  font-weight: 600;
}

.br-toc__chapter-num {
  font-size: 10px;
  font-weight: 700;
  color: #9CA3AF;
  min-width: 16px;
}

.br-toc__lock {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ─── Chapter Content ───────────────────────────────────────── */
.br-content {
  min-width: 0;
}

.br-content__progress {
  background: #F3F4F6;
  border-radius: 100px;
  height: 4px;
  margin-bottom: 32px;
  overflow: hidden;
}

.br-content__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00875A, #00e5a0);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.br-chapter {
  margin-bottom: 48px;
}

.br-chapter + .br-chapter {
  border-top: 2px solid #F3F4F6;
  padding-top: 48px;
}

.br-chapter__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00875A;
  margin-bottom: 8px;
}

.br-chapter__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.br-chapter__body {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #1F2A37;
}

.br-chapter__body h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A0A0A;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.br-chapter__body p { margin: 0 0 20px; }
.br-chapter__body p:last-child { margin-bottom: 0; }

.br-chapter__body strong { color: #0A0A0A; font-weight: 700; }

.br-chapter__body ul,
.br-chapter__body ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.br-chapter__body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.br-chapter__body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: #F9FAFB;
  border-left: 3px solid #00875A;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4B5563;
}

.br-chapter__body a {
  color: #00875A;
  text-decoration: underline;
  text-decoration-color: rgba(0,135,90,0.4);
  transition: text-decoration-color 0.15s;
}

.br-chapter__body a:hover { text-decoration-color: #00875A; }

/* ─── Paywall Gate ──────────────────────────────────────────── */
.br-paywall {
  margin-top: 48px;
  border-top: 2px solid #F3F4F6;
  padding-top: 48px;
}

.br-paywall__fade {
  position: relative;
  margin-bottom: 0;
  pointer-events: none;
  user-select: none;
}

.br-paywall__fade::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, #ffffff 70%);
}

.br-paywall__fade-text {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: #0A0A0A;
  margin: 0 0 12px;
  opacity: 0.7;
  filter: blur(0px);
}

.br-paywall__fade-para {
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
  opacity: 0.4;
  filter: blur(2px);
}

.br-paywall__gate {
  background: linear-gradient(160deg, #06101f 0%, #0d1f12 100%);
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-top: -60px;
}

.br-paywall__gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,135,90,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.br-paywall__lock-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  position: relative;
}

.br-paywall__gate-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  position: relative;
}

.br-paywall__gate-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.6;
  position: relative;
}

.br-paywall__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto 24px;
  position: relative;
}

@media (max-width: 480px) {
  .br-paywall__options { grid-template-columns: 1fr; }
  .br-paywall__gate { padding: 36px 20px; }
}

.br-paywall__opt {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  transition: border-color 0.18s, background 0.18s;
}

.br-paywall__opt:hover {
  border-color: rgba(0,229,160,0.4);
  background: rgba(255,255,255,0.1);
}

.br-paywall__opt--featured {
  border-color: rgba(0,229,160,0.45);
  background: rgba(0,135,90,0.15);
}

.br-paywall__opt-badge {
  display: inline-block;
  background: #00875A;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-bottom: 4px;
}

.br-paywall__opt-price {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.br-paywall__opt-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.br-paywall__opt-cta {
  display: block;
  background: #fff;
  color: #0A0A0A !important;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  margin-top: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.br-paywall__opt-cta:hover {
  background: #F3F4F6;
  text-decoration: none;
  color: #0A0A0A !important;
}

.br-paywall__opt--featured .br-paywall__opt-cta {
  background: #00875A;
  color: #fff !important;
}

.br-paywall__opt--featured .br-paywall__opt-cta:hover {
  background: #006B4D;
  color: #fff !important;
}

.br-paywall__reassurance {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  position: relative;
}

/* ─── Chapter Nav ────────────────────────────────────────────── */
.br-chapter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid #F3F4F6;
  padding-top: 32px;
  margin-top: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.br-chapter-nav__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.5px solid #E5E7EB;
  background: #fff;
  transition: background 0.18s, border-color 0.18s;
  min-height: 44px;
}

.br-chapter-nav__btn:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
  text-decoration: none;
  color: #374151;
}

.br-chapter-nav__progress {
  font-size: 12px;
  color: #6B7280;
}

/* ─── More Books Strip ──────────────────────────────────────── */
.br-more-books {
  background: #F9FAFB;
  padding: 48px 24px;
  border-top: 1px solid #E5E7EB;
}

.br-more-books__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.br-more-books__title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 24px;
}

.br-more-books__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .br-more-books__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .br-more-books__grid { grid-template-columns: 1fr 1fr; }
}

.br-mini-book {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: block;
}

.br-mini-book:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #00875A;
  text-decoration: none;
}

.br-mini-book__cover {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
}

.br-mini-book__title {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #0A0A0A;
  line-height: 1.35;
}

/* ─── Purchased State ────────────────────────────────────────── */
.br-purchased-banner {
  background: #E6F9F3;
  border: 1.5px solid #A7F3D0;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #00643E;
  font-weight: 600;
}

/* ─── AMAZON BADGE — Task #1529107 ─────────────────────────── */
/* Subtle trust badge. Secondary to the $25 primary CTA. */

.bk-amazon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 4px 8px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.bk-amazon-badge:hover {
  color: #374151;
  border-color: #9CA3AF;
  background: #F3F4F6;
  text-decoration: none;
}

.bk-amazon-badge__icon {
  font-size: 12px;
  line-height: 1;
}

/* Placement in book card footer — sits below the action buttons */
.bk-card__amazon-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sidebar variant for individual book pages */
.br-sidebar__amazon-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7280;
  text-decoration: none;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #F9FAFB;
  transition: color 0.15s, border-color 0.15s;
  font-weight: 500;
}

.br-sidebar__amazon-link:hover {
  color: #374151;
  border-color: #9CA3AF;
}

.br-sidebar__amazon-link__icon {
  font-size: 13px;
  flex-shrink: 0;
}
