/* ============================================================
   CABIN FLUX — Catalog 02 · STORYBOOK
   Hermès Le Monde × Louis Vuitton Travel Books
   Cream paper · saddle brown · gold · Mediterranean azure
   ============================================================ */

:root {
  --paper:        #f5efe0;
  --paper-deep:   #ebe2cb;
  --saddle:       #5C3A21;
  --saddle-dark:  #3a2412;
  --gold:         #C9A961;
  --gold-deep:    #a88638;
  --ink:          #1A1A1A;
  --ink-soft:     #2e2a23;
  --azure:        #3B6E8E;
  --azure-deep:   #2a536e;
  --rule:         rgba(92, 58, 33, 0.22);
  --rule-soft:    rgba(92, 58, 33, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  background: #2a2118;
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   VIEWER SHELL (matches catalog 01 pattern)
   ============================================================ */

.viewer-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #2c2218 0%, #1d160e 100%);
  position: relative;
  overflow: hidden;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(15, 11, 6, 0.65);
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  color: var(--paper);
  z-index: 10;
  backdrop-filter: blur(8px);
}

.brand-mark {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.brand-mark em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  margin-right: 4px;
}

.viewer-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(245, 239, 224, 0.7);
}

.viewer-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  color: rgba(245, 239, 224, 0.8);
}
#pg-indicator {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
#full-btn {
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.4);
  color: var(--paper);
  width: 32px; height: 32px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s;
}
#full-btn:hover {
  background: rgba(201, 169, 97, 0.18);
  border-color: var(--gold);
}

.book-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 70px;
  overflow: hidden;
}

#book {
  margin: 0 auto;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(245, 239, 224, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.35);
  color: var(--paper);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: 'Playfair Display', serif;
}
.nav-arrow:hover {
  background: rgba(201, 169, 97, 0.25);
  border-color: var(--gold);
}
.nav-arrow--prev { left: 18px; }
.nav-arrow--next { right: 18px; }

.viewer-footer {
  padding: 11px 28px;
  background: rgba(15, 11, 6, 0.6);
  border-top: 1px solid rgba(201, 169, 97, 0.18);
  color: rgba(245, 239, 224, 0.55);
  text-align: center;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ============================================================
   PAGE BASE — every page is 600 × 848, cream paper
   ============================================================ */

.page {
  width: 600px;
  height: 848px;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  font-family: 'EB Garamond', Georgia, serif;
  break-inside: avoid;
  page-break-inside: avoid;
}

/* paper texture overlay — subtle */
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 30% 20%, rgba(255,250,235,0.5), transparent 70%),
    radial-gradient(ellipse 700px 500px at 70% 80%, rgba(92,58,33,0.04), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.page > * {
  position: relative;
  z-index: 2;
}

.page-inner {
  padding: 56px 54px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-no-corner {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--saddle);
  z-index: 3;
}

.rule-orn {
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 0.45em;
  margin: 12px 0;
}

.folio-bar {
  position: absolute;
  bottom: 28px;
  left: 54px;
  right: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  font-style: italic;
  color: var(--saddle);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
}

.kicker {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

/* ============================================================
   01 — COVER (illustrated, painterly)
   ============================================================ */

.page--cover {
  background: var(--paper);
}
.cover-frame {
  position: absolute;
  inset: 26px;
  border: 1px solid var(--saddle);
  z-index: 2;
}
.cover-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rule);
}

.cover-head {
  position: absolute;
  top: 60px; left: 0; right: 0;
  text-align: center;
  z-index: 3;
}
.cover-head .cover-kicker {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--saddle);
  margin-bottom: 6px;
}
.cover-head .cover-iss {
  font-family: 'Pinyon Script', cursive;
  font-size: 28px;
  color: var(--gold-deep);
  line-height: 1;
}

.cover-art {
  position: absolute;
  top: 168px;
  left: 60px;
  right: 60px;
  height: 360px;
  z-index: 3;
}
.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--saddle-dark);
  box-shadow: 0 8px 28px rgba(40,24,12,0.25);
}

.cover-title {
  position: absolute;
  top: 555px;
  left: 0; right: 0;
  text-align: center;
  z-index: 3;
}
.cover-title h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 46px;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
.cover-title h1 em {
  font-style: italic;
  color: var(--saddle);
  font-weight: 400;
  display: inline-block;
  margin-right: 6px;
}
.cover-title .cover-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--saddle);
  letter-spacing: 0.06em;
  margin-top: 10px;
}

.cover-script {
  position: absolute;
  bottom: 110px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Pinyon Script', cursive;
  font-size: 30px;
  color: var(--gold-deep);
  z-index: 3;
  line-height: 1.2;
}

.cover-foot {
  position: absolute;
  bottom: 52px;
  left: 60px; right: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--saddle);
}

/* ============================================================
   02 — TITLE + COLOPHON
   ============================================================ */

.page--title {
  background: var(--paper);
  text-align: center;
}
.title-inner {
  padding: 100px 60px 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.title-mark {
  font-family: 'Pinyon Script', cursive;
  font-size: 40px;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.title-h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.title-h1 em {
  font-style: italic;
  color: var(--saddle);
  display: block;
  font-size: 56px;
  margin-top: 6px;
}
.title-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--saddle);
  letter-spacing: 0.06em;
  margin-top: 14px;
  max-width: 360px;
}

.colophon {
  margin-top: auto;
  padding-top: 40px;
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--saddle-dark);
  letter-spacing: 0.04em;
  width: 100%;
}
.colophon-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--rule-soft);
}
.colophon-row span:first-child {
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}
.colophon-row span:last-child {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
}

/* ============================================================
   03 — EDITOR'S LETTER
   ============================================================ */

.page--editor {
  background: var(--paper);
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  height: 100%;
}
.editor-text {
  padding: 56px 36px 56px 54px;
  display: flex;
  flex-direction: column;
}
.editor-text .kicker {
  margin-bottom: 18px;
}
.editor-text h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 14px;
}
.editor-text h2 em {
  font-style: italic;
  color: var(--saddle);
}
.editor-text p {
  font-family: 'EB Garamond', serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
  text-align: justify;
}
.editor-text p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 400;
  float: left;
  line-height: 0.9;
  margin: 4px 8px 0 0;
  color: var(--saddle);
}
.editor-sign {
  margin-top: 18px;
  font-family: 'Pinyon Script', cursive;
  font-size: 26px;
  color: var(--gold-deep);
  line-height: 1;
}
.editor-sign-name {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--saddle);
  margin-top: 2px;
  letter-spacing: 0.08em;
}

.editor-portrait {
  position: relative;
  background: var(--paper-deep);
}
.editor-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editor-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 1px solid var(--rule);
}

/* ============================================================
   04 — MAP OF CONTENTS
   ============================================================ */

.page--map {
  background: var(--paper);
  padding: 0;
}
.map-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 50px 54px 60px;
}
.map-head {
  text-align: center;
  margin-bottom: 14px;
}
.map-head h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 34px;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.map-head h2 em {
  font-style: italic;
  color: var(--saddle);
}
.map-head p {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--saddle);
  letter-spacing: 0.06em;
}

.map-art {
  flex: 1;
  margin: 18px 0;
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
}
.map-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.1) saturate(0.9);
}

.map-toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  color: var(--ink-soft);
}
.map-toc .toc-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--rule);
}
.map-toc .toc-ch {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-deep);
  width: 36px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.map-toc .toc-name {
  flex: 1;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--ink);
}
.map-toc .toc-name em {
  font-style: italic;
  color: var(--saddle);
}
.map-toc .toc-pg {
  font-style: italic;
  color: var(--saddle);
  font-size: 12px;
}

/* ============================================================
   CHAPTER STRUCTURE
   ============================================================ */

/* CH OPENER — full-bleed image with caption strip */
.page--ch-opener {
  background: var(--ink);
  padding: 0;
}
.ch-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ch-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,11,6,0.45) 100%);
}
.ch-band {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 50px 36px;
  background: linear-gradient(180deg, transparent, rgba(15,11,6,0.85) 60%);
  color: var(--paper);
  z-index: 3;
}
.ch-band .kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.4em;
  margin-bottom: 8px;
}
.ch-band h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.ch-band h1 em {
  font-style: italic;
  color: var(--gold);
}
.ch-band .ch-loc {
  font-family: 'Pinyon Script', cursive;
  font-size: 24px;
  color: var(--gold);
  margin-top: 6px;
  line-height: 1;
}

/* CH ESSAY — long-form text page */
.page--ch-essay {
  background: var(--paper);
}
.essay-inner {
  padding: 60px 54px 70px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.essay-kicker {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.essay-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.essay-title em {
  font-style: italic;
  color: var(--saddle);
}
.essay-script {
  font-family: 'Pinyon Script', cursive;
  font-size: 24px;
  color: var(--gold-deep);
  margin-bottom: 18px;
  line-height: 1;
}
.essay-body {
  flex: 1;
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-soft);
  text-align: justify;
  columns: 1;
}
.essay-body p {
  margin-bottom: 10px;
}
.essay-body p:first-child::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  font-weight: 400;
  float: left;
  line-height: 0.92;
  margin: 4px 8px -3px 0;
  color: var(--saddle);
}
.essay-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--saddle);
  letter-spacing: 0.08em;
}
.essay-foot .essay-buy {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-deep);
  font-size: 12px;
}

/* CH PRODUCT — single product spread */
.page--ch-product {
  background: var(--paper);
}
.prod-inner {
  padding: 50px 54px 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.prod-head {
  text-align: center;
  margin-bottom: 16px;
}
.prod-head .kicker {
  margin-bottom: 8px;
}
.prod-head h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 38px;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.prod-head h2 em {
  font-style: italic;
  color: var(--saddle);
  display: block;
  font-size: 30px;
  margin-top: 2px;
}
.prod-head .prod-tag {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--saddle);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.prod-photo-wrap {
  flex: 1;
  position: relative;
  margin: 14px 0;
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-soft);
}
.prod-photo-wrap img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.prod-caption {
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--saddle);
  margin-top: 6px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* CH DUO — two products side by side */
.page--ch-duo {
  background: var(--paper);
}
.duo-inner {
  padding: 50px 50px 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.duo-head {
  text-align: center;
  margin-bottom: 18px;
}
.duo-head h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
}
.duo-head h3 em {
  color: var(--saddle);
}
.duo-head .kicker {
  margin-bottom: 6px;
}
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}
.duo-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
}
.duo-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: var(--paper);
}
.duo-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.duo-body {
  padding: 14px 16px 16px;
  background: var(--paper-deep);
  border-top: 1px solid var(--rule-soft);
}
.duo-body h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.duo-body h4 em {
  font-style: italic;
  color: var(--saddle);
}
.duo-body p {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.duo-body .duo-meta {
  margin-top: 6px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}

/* CH SIZE CHART (for BUFFALO chapter) */
.size-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.size-cell {
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  padding: 12px 10px;
  text-align: center;
}
.size-cell .size-vol {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-style: italic;
  color: var(--saddle);
  line-height: 1;
}
.size-cell .size-lbl {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* ============================================================
   BACK COVER
   ============================================================ */

.page--back {
  background: var(--saddle-dark);
  color: var(--paper);
  padding: 0;
}
.back-inner {
  padding: 60px 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.back-frame {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  pointer-events: none;
}
.back-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 169, 97, 0.18);
}
.back-mark {
  font-family: 'Pinyon Script', cursive;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 18px;
}
.back-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 42px;
  color: var(--paper);
  letter-spacing: 0.04em;
  line-height: 1;
}
.back-brand em {
  font-style: italic;
  color: var(--gold);
  margin-right: 6px;
}
.back-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(245, 239, 224, 0.7);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.back-divider {
  text-align: center;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.5em;
  margin: 32px 0 28px;
}

.back-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
  text-align: left;
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  color: rgba(245, 239, 224, 0.85);
}
.back-cell-h {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
  padding-bottom: 6px;
}
.back-cell p {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245, 239, 224, 0.85);
}
.back-cell p strong {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
}

.back-issue {
  margin-top: auto;
  padding-top: 24px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(245, 239, 224, 0.55);
  text-transform: uppercase;
}
.back-issue-no {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
   MOBILE FALLBACK — vertical stack, no page-flip
   ============================================================ */

body.mobile-fallback .viewer-shell {
  height: auto;
  min-height: 100vh;
}
body.mobile-fallback .book-stage {
  padding: 16px 8px;
  flex-direction: column;
  overflow: visible;
}
body.mobile-fallback #book {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
  perspective: none !important;
}
body.mobile-fallback #book > .page {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 600px;
  height: auto !important;
  min-height: 600px;
  margin: 0 auto;
  transform: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  visibility: visible !important;
  opacity: 1 !important;
}
body.mobile-fallback .nav-arrow,
body.mobile-fallback .stf__wrapper,
body.mobile-fallback .stf__parent {
  display: none !important;
}
body.mobile-fallback .viewer-footer {
  display: none;
}

@media (max-width: 767px) {
  .viewer-header { padding: 10px 14px; }
  .viewer-title { display: none; }
  .brand-mark { font-size: 14px; }
}

/* ============================================================
   PAGE-FLIP LIBRARY ADJUSTMENTS
   ============================================================ */

.stf__parent {
  margin: 0 auto;
}
.stf__block {
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
