/* ===================================================================
   Design tokens — carried forward from the book's own print identity
   (deep red accent, Poppins headers, warm serif body) so the reading
   app and the ebook feel like the same object, not two products.
   =================================================================== */
:root {
  --bg: #FAF7F2;          /* warm paper, not stark white */
  --bg-raised: #FFFFFF;
  --text: #2B2B2B;
  --text-muted: #6B6558;
  --accent: #8C1D1D;
  --accent-soft: #F3E4E1;
  --border: #E8E1D6;
  --shadow: rgba(43, 43, 43, 0.08);
  --font-body: 'Lora', Georgia, serif;
  --font-display: 'Poppins', -apple-system, sans-serif;
  --reading-size: 1.125rem;
  --radius: 10px;
}

[data-theme="dark"] {
  --bg: #17140F;           /* warm near-black, not pure black */
  --bg-raised: #211D17;
  --text: #E9E2D5;
  --text-muted: #A69B89;
  --accent: #E08A7D;       /* lightened, warmed red — legible on dark */
  --accent-soft: #332420;
  --border: #35302A;
  --shadow: rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; -webkit-touch-callout: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  transition: background .25s ease, color .25s ease;
  overscroll-behavior-y: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button { font-family: var(--font-display); cursor: pointer; touch-action: manipulation; }

[hidden] { display: none !important; }

/* ===================================================================
   Cover — immersive front splash shown on first load
   =================================================================== */
.cover {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background:
    radial-gradient(1100px 500px at 50% -10%, var(--accent-soft) 0%, transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  overflow-y: auto;
}
/* Exit: fade the whole cover, then stop trapping input */
.cover-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.cover-inner {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cover-fade .7s ease both;
}
@keyframes cover-fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.cover-badge {
  display: inline-block;
  padding: 7px 18px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: clamp(26px, 5vh, 44px);
}
.cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  font-size: clamp(2rem, 7.2vw, 3.35rem);
  letter-spacing: -0.01em;
  margin: 0;
}
.cover-rule {
  width: 58px;
  height: 3px;
  border: none;
  background: var(--accent);
  border-radius: 3px;
  margin: clamp(22px, 4vh, 34px) auto;
}
.cover-author {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 clamp(24px, 4.5vh, 40px);
}
.cover-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 34em;
  margin: 0 0 clamp(26px, 5vh, 44px);
}
.cover-start {
  border: none;
  background: var(--accent);
  color: #FBF3F1;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 46px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cover-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cover-buy { min-width: 250px; }
.cover-link {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px;
}
.cover-link:hover { color: var(--accent); }
.cover-start:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cover-note {
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 36em;
  margin-top: clamp(26px, 5vh, 44px);
}

/* ===================================================================
   App shell
   =================================================================== */
.app { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  border: none;
  background: transparent;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.icon-btn:hover { background: var(--accent-soft); }

.progress-rail {
  height: 2px;
  background: var(--border);
  position: sticky;
  top: calc(60px + env(safe-area-inset-top, 0px));
  z-index: 19;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .1s linear;
}

.layout { flex: 1; display: flex; position: relative; }

/* Chapter drawer — off-canvas on mobile, static sidebar on desktop */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(300px, 84vw);
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 30;
  overflow-y: auto;
  padding: 76px 0 24px;
  padding-top: calc(76px + env(safe-area-inset-top, 0px));
}
.drawer.open { transform: translateX(0); }
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 25;
}

.chapter-list { padding: 0 8px 24px; }
.chapter-part-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding: 18px 12px 6px;
}
.chapter-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  border-radius: 8px;
}
.chapter-item:hover { background: var(--accent-soft); }
.chapter-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chapter-item-minutes {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.reading-pane {
  flex: 1;
  min-width: 0;
  padding: 32px 20px 170px;
  scroll-behavior: smooth;
}
.chapter-content {
  max-width: 660px;
  margin: 0 auto;
  font-size: var(--reading-size);
  line-height: 1.75;
}
.chapter-content h1 {
  font-family: var(--font-display);
  font-size: 1.7em;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.9em;
  color: var(--text);
}
.chapter-content h2 {
  font-family: var(--font-display);
  font-size: 1.2em;
  font-weight: 600;
  color: var(--accent);
  margin: 1.6em 0 0.6em;
}
.chapter-content h3 {
  font-family: var(--font-display);
  font-size: 1.02em;
  font-weight: 600;
  margin: 1.4em 0 0.5em;
}
.chapter-content p { margin: 0 0 1.15em; }
.chapter-content strong { color: var(--text); }
.chapter-content em { color: var(--text-muted); }
.chapter-content a { color: var(--accent); overflow-wrap: anywhere; }
.chapter-content hr {
  border: none;
  border-top: 1px solid var(--border);
  width: 40%;
  margin: 2.2em auto;
}
.chapter-content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px;              /* bleed to the pane edges */
  padding: 0 20px;
}
.chapter-content table { border-collapse: collapse; width: max-content; min-width: 100%; margin: 1.4em 0; font-size: 0.85em; }
.chapter-content th, .chapter-content td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; overflow-wrap: anywhere; }
.chapter-content th { font-family: var(--font-display); background: var(--accent-soft); }
.chapter-content li { margin-bottom: 0.5em; }

/* Sentence highlight during listen mode — the signature moment */
.speaking-sentence {
  background: var(--accent-soft);
  border-radius: 4px;
  box-shadow: 0 0 0 3px var(--accent-soft);
  transition: background .15s ease;
}

.chapter-flip {
  max-width: 660px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.flip-btn {
  flex: 1;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}
.flip-btn:hover { border-color: var(--accent); color: var(--accent); }
.flip-btn:disabled { opacity: 0.35; cursor: default; }

/* ===================================================================
   Auth modal (buy / sign-in)
   =================================================================== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 20px;
}
.auth-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 380px;
  width: 100%;
  padding: 28px 24px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 60px -20px var(--shadow);
}
.auth-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
}
.auth-close:hover { color: var(--accent); }
.auth-title {
  font-family: var(--font-display);
  margin: 0 0 6px;
}
.auth-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}
.auth-email {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 14px;
}
.coin-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.coin-pill {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.coin-pill:hover { border-color: var(--accent); }
.coin-pill.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  font-weight: 600;
}
.auth-submit { width: 100%; }
.auth-msg {
  min-height: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 12px 0 0;
  line-height: 1.5;
}

/* ===================================================================
   Affiliate dashboard (in the drawer)
   =================================================================== */
.affiliate-section {
  border-top: 1px solid var(--border);
  margin: 8px 8px 24px;
  padding: 18px 12px 6px;
}
.aff-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.aff-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.55;
}
.aff-slogan {
  font-size: 0.8rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 14px;
  line-height: 1.45;
  font-weight: 500;
}
.aff-marketing {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 8px;
  padding: 7px 10px;
  margin: 0 0 14px;
}
.aff-marketing:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.aff-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 12px 0 6px;
}
.aff-link-row { display: flex; gap: 8px; }
.aff-link {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.74rem;
}
.aff-copy {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  border-radius: 8px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}
.aff-copy:hover { border-color: var(--accent); color: var(--accent); }
.aff-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; margin: 14px 0 10px; }
.aff-stat { display: flex; flex-direction: column; }
.aff-stat span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.aff-stat small { color: var(--text-muted); font-size: 0.62rem; line-height: 1.3; }
.aff-recent { margin: 6px 0 14px; border-top: 1px solid var(--border); padding-top: 8px; }
.aff-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.aff-row-amt { font-family: var(--font-display); font-weight: 700; color: var(--accent); min-width: 52px; }
.aff-row-by { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.aff-row-st { font-family: var(--font-display); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 999px; padding: 2px 7px; }
.aff-row-st.earned { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.aff-row-st.paid { background: color-mix(in srgb, #2C6B2C 12%, transparent); color: #2C6B2C; }
.aff-row-d { color: var(--text-muted); font-size: 0.62rem; }
.aff-empty { font-size: 0.75rem; color: var(--text-muted); padding: 6px 0; }
.aff-wallet {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.78rem;
}
.aff-save {
  margin-top: 8px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}
.aff-save:hover { border-color: var(--accent); color: var(--accent); }
.aff-msg {
  min-height: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.aff-signout {
  margin-top: 14px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-decoration: underline;
}

/* Gated (not signed in): hide reader chrome, cover becomes the paywall */
body.gated .listen-dock { display: none; }
body.gated #nav-toggle { display: none; }
body.gated .progress-rail { display: none; }
body.gated .reading-pane { padding-bottom: 40px; }

/* ===================================================================
   Listen bar — collapses to a minimal audio-player strip
   =================================================================== */
.listen-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
}
.listen-settings {
  display: flex;
  align-items: center;
  gap: clamp(12px, 6vw, 28px);
  padding: 10px 14px;
  background: color-mix(in srgb, var(--bg-raised) 96%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height .22s ease, opacity .22s ease, visibility 0s linear .22s;
}
.listen-settings.open {
  max-height: 90px;
  opacity: 1;
  visibility: visible;
  transition: max-height .22s ease, opacity .22s ease;
}
.listen-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.listen-setting select {
  font-family: var(--font-display);
  font-size: 0.8rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  max-width: min(46vw, 240px);
  min-width: 0;
}
.listen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-raised) 96%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.listen-play {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #FBF3F1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listen-meta { flex: 1; min-width: 0; }
#listen-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.listen-controls { display: flex; align-items: center; gap: 6px; }

#listen-time {
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.listen-skip {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listen-skip:hover { background: var(--accent-soft); color: var(--accent); }
.listen-sleep {
  flex-shrink: 0;
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.listen-sleep.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.listen-gear.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===================================================================
   Desktop layout
   =================================================================== */
@media (min-width: 860px) {
  #nav-toggle { display: none; }
  .drawer {
    position: sticky;
    top: calc(62px + env(safe-area-inset-top, 0px));
    transform: none;
    height: calc(100dvh - 62px - 56px - env(safe-area-inset-top, 0px)); /* topbar + listen-bar, so it can't overlap either */
    border-right: 1px solid var(--border);
    padding-top: 24px;
  }
  .drawer-scrim { display: none !important; }
  .reading-pane { padding: 48px 40px 150px; }
  .chapter-content .table-scroll { margin: 0; padding: 0; }
  .topbar { padding: 14px 24px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .listen-bar { padding: 8px 20px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .listen-controls { gap: 8px; }
}

@media (max-width: 859px) {
  .drawer { top: 0; }
  /* Single-row compact listen bar on phones */
  .listen-bar {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px 10px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .listen-play { width: 36px; height: 36px; }
  .listen-meta { display: none; }
  .listen-controls {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 6px;
  }
  .reading-pane { padding-bottom: 120px; }
  body:has(.listen-settings.open) .reading-pane { padding-bottom: 170px; }
}

@media (max-width: 480px) {
  #listen-time { display: none; }
  .listen-controls { gap: 2px; }
  .listen-bar { gap: 4px; }
}

/* ===================================================================
   Read-only edition — copy/save/print deterrents
   =================================================================== */
.reading-pane,
.reading-pane * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#readonly-notice {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(8px);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 26px -10px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
  white-space: nowrap;
  max-width: min(92vw, 460px);
  overflow: hidden;
  text-overflow: ellipsis;
}
#readonly-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media print {
  .topbar, .progress-rail, .drawer, .listen-dock, .chapter-flip, #cover {
    display: none !important;
  }
  .reading-pane { padding: 0 !important; }
  .chapter-content { max-width: 100% !important; }
  .chapter-content::after {
    content: "This is a read-only edition. Sharing requires your own purchased copy.";
    display: block;
    margin-top: 2em;
    font-style: italic;
    font-size: 0.85em;
    color: #999;
  }
}
