/* ============================================
   CABIN FLUX — Wholesale / Dealer Reference 2026
   Catalog 04 · B2B reference register
   Inspiration: Samsonite B2B 2025, Briggs & Riley
   ============================================ */

:root {
  --ink: #2A2A2A;
  --ink-soft: #4A4A4A;
  --ink-light: #6C6C6C;
  --rule: #D8D8D8;
  --grey-table: #E8E8E8;
  --grey-row: #F4F4F4;
  --white: #FFFFFF;
  --red: #C8102E;
  --red-deep: #A50D24;
  --green-check: #2D8A3E;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: #1E1E1E;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ VIEWER SHELL ============ */

.viewer-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #1A1A1A;
  border-bottom: 1px solid #333;
  color: #f5f5f5;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.brand-mark {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
}
.brand-mark .x { color: var(--red); }

.viewer-title {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 500;
}

.viewer-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--mono);
}

#pg-indicator {
  font-family: var(--mono);
  font-size: 11px;
  color: #ddd;
}

#full-btn {
  background: transparent;
  border: 1px solid #555;
  color: #ddd;
  width: 28px; height: 28px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
}
#full-btn:hover { background: #333; }

/* ============ BOOK STAGE ============ */

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

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 38px;
  height: 60px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
}
.nav-arrow:hover { background: rgba(255,255,255,0.22); }
.nav-arrow--prev { left: 14px; }
.nav-arrow--next { right: 14px; }

#book { background: transparent; }

.book-foot {
  text-align: center;
  padding: 8px 0;
  font-size: 10px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #141414;
  font-family: var(--mono);
}

/* ============ PAGES — GLOBAL ============ */

.page {
  background: var(--white);
  color: var(--ink);
  width: 600px;
  height: 848px;
  overflow: hidden;
  position: relative;
  font-family: var(--sans);
  font-size: 10pt;
  line-height: 1.4;
}

.page-inner {
  width: 100%;
  height: 100%;
  padding: 22px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* MASTHEAD BAR (red) — only on cover + section openers */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--red);
  color: #fff;
  padding: 7px 14px;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--sans);
}
.masthead .mh-left { display: flex; align-items: center; gap: 10px; }
.masthead .mh-pip {
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}
.masthead .mh-right {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 8.5pt;
  letter-spacing: 1px;
}

/* Standard page header (white pages, no red bar) */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0 8px 0;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 16px;
}
.page-head .ph-section {
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--sans);
}
.page-head .ph-title {
  font-size: 18pt;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  line-height: 1;
}
.page-head .ph-ref {
  font-family: var(--mono);
  font-size: 9pt;
  color: var(--ink-light);
  font-weight: 500;
}

/* Footer (every page) */
.foot-bar {
  position: absolute;
  bottom: 12px;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 8pt;
  color: var(--ink-light);
  letter-spacing: 0.5px;
}

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

.page--cover {
  background: var(--white);
  color: var(--ink);
  padding: 0;
}

.cover-masthead {
  background: var(--red);
  color: #fff;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.cover-masthead .cm-mark {
  font-weight: 800;
  font-size: 11pt;
  letter-spacing: 3px;
}
.cover-masthead .cm-issue {
  font-family: var(--mono);
  font-size: 9pt;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.cover-body {
  padding: 32px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 50px);
}

.cover-eyebrow {
  font-family: var(--sans);
  font-size: 9pt;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}

.cover-title-main {
  font-size: 36pt;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 4px;
}

.cover-title-sub {
  font-size: 12pt;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}

.cover-hero-img {
  flex: 1;
  background: #fafafa;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
  min-height: 360px;
}
.cover-hero-img img {
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
}

.cover-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 14px;
}
.cmr-cell .cmr-label {
  font-family: var(--mono);
  font-size: 7.5pt;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-light);
  display: block;
  margin-bottom: 3px;
}
.cmr-cell .cmr-value {
  font-size: 10pt;
  font-weight: 600;
  color: var(--ink);
}

.cover-distrib {
  font-family: var(--mono);
  font-size: 8.5pt;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.5;
}
.cover-distrib strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 9.5pt;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

/* ============ PAGE 02 — HOW TO USE ============ */

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.guide-card {
  border: 1px solid var(--rule);
  padding: 12px 14px;
  background: #fcfcfc;
}
.guide-card .gc-num {
  font-family: var(--mono);
  font-size: 8.5pt;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.guide-card .gc-title {
  font-size: 11pt;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
  color: var(--ink);
}
.guide-card .gc-body {
  font-size: 9pt;
  line-height: 1.5;
  color: var(--ink-soft);
}
.guide-card .gc-body ul {
  margin: 0;
  padding-left: 14px;
  list-style: none;
}
.guide-card .gc-body ul li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 3px;
}
.guide-card .gc-body ul li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--red);
  position: absolute;
  left: 0; top: 6px;
}
.guide-card .gc-body .mono {
  font-family: var(--mono);
  font-size: 8.5pt;
  color: var(--ink);
}

.guide-contact {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.guide-contact .gctitle {
  grid-column: 1 / -1;
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid #555;
  padding-bottom: 5px;
  margin-bottom: 4px;
}
.guide-contact .gc-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guide-contact .gc-item .gci-l {
  font-family: var(--mono);
  font-size: 7pt;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
}
.guide-contact .gc-item .gci-v {
  font-family: var(--mono);
  font-size: 9pt;
  color: #fff;
  font-weight: 500;
}

/* ============ PRODUCT GRID 2×3 ============ */

.section-opener-band {
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sob-section {
  font-size: 8.5pt;
  letter-spacing: 2px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}
.sob-section .sob-num {
  color: var(--red);
  font-family: var(--mono);
  margin-right: 6px;
}
.sob-title {
  font-size: 13pt;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.sob-count {
  font-family: var(--mono);
  font-size: 8.5pt;
  color: #ccc;
  letter-spacing: 1.5px;
}

.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.product-cell {
  border: 1px solid var(--rule);
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  position: relative;
  overflow: hidden;
}

.product-cell .pc-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  margin: -8px -10px 6px -10px;
  border-bottom: 1px solid var(--rule);
  min-height: 100px;
  max-height: 132px;
  overflow: hidden;
  padding: 4px;
}
.product-cell .pc-img img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.product-cell .pc-sku {
  font-family: var(--mono);
  font-size: 7.5pt;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.product-cell .pc-name {
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 3px;
}

.product-cell .pc-dim {
  font-family: var(--mono);
  font-size: 7.5pt;
  color: var(--ink-soft);
  line-height: 1.35;
  margin-bottom: 4px;
}

.product-cell .pc-swatches {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  align-items: center;
}
.product-cell .pc-swatches .sw {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: inline-block;
}
.product-cell .pc-swatches .sw-count {
  font-family: var(--mono);
  font-size: 7.5pt;
  color: var(--ink-light);
  margin-left: 3px;
}

.product-cell .pc-best {
  font-size: 7.5pt;
  color: var(--ink-light);
  font-style: italic;
  border-top: 1px dotted var(--rule);
  padding-top: 3px;
  line-height: 1.3;
}
.product-cell .pc-best strong {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 7pt;
  margin-right: 3px;
}

/* ============ FULL-PAGE PRODUCT (MIRAGE) ============ */

.fp-prod {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}
.fp-prod-img {
  background: #fafafa;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.fp-prod-img img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}
.fp-prod-info { display: flex; flex-direction: column; gap: 8px; }

.fp-name {
  font-size: 16pt;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.fp-sku {
  font-family: var(--mono);
  color: var(--red);
  font-weight: 600;
  font-size: 9pt;
  margin-top: 2px;
  letter-spacing: 1px;
}
.fp-tag {
  font-size: 9pt;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 4px;
}

.fp-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 8.5pt;
  margin-top: 4px;
}
.fp-spec-table th, .fp-spec-table td {
  border: 1px solid var(--rule);
  padding: 5px 8px;
  text-align: left;
}
.fp-spec-table th {
  background: var(--grey-table);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
  font-size: 8pt;
  text-transform: uppercase;
}
.fp-spec-table td { color: var(--ink); }

.fp-icons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.fp-icon {
  border: 1px solid var(--rule);
  padding: 8px 6px;
  text-align: center;
  background: #fcfcfc;
}
.fp-icon .fic-glyph {
  font-size: 16pt;
  color: var(--red);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}
.fp-icon .fic-l {
  font-family: var(--mono);
  font-size: 7pt;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* ============ DATA TABLES (matrix) ============ */

.matrix-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

table.matrix {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 7.5pt;
  table-layout: fixed;
}
table.matrix thead th {
  background: var(--ink);
  color: #fff;
  padding: 6px 4px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 7pt;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  line-height: 1.15;
}
table.matrix thead th.first-col {
  text-align: left;
  padding-left: 8px;
}
table.matrix tbody td {
  padding: 4px 4px;
  border: 1px solid var(--rule);
  text-align: center;
  color: var(--ink);
  line-height: 1.2;
  vertical-align: middle;
}
table.matrix tbody td.product-name {
  text-align: left;
  padding-left: 8px;
  font-family: var(--sans);
  font-size: 8pt;
  font-weight: 600;
  color: var(--ink);
}
table.matrix tbody tr:nth-child(even) td { background: var(--grey-row); }
table.matrix tbody tr:hover td { background: #efefef; }

table.matrix td .mini-sw {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid #bbb;
  vertical-align: middle;
}
table.matrix td.check { color: var(--green-check); font-weight: 700; font-size: 10pt; }
table.matrix td.dash { color: var(--ink-light); }

/* family separator row */
table.matrix tbody tr.fam-row td {
  background: var(--grey-table);
  font-family: var(--sans);
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
  padding: 4px 8px;
}

.matrix-note {
  font-family: var(--mono);
  font-size: 7.5pt;
  color: var(--ink-light);
  margin-top: 6px;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* ============ MATERIALS GUIDE ============ */

.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.material-card {
  border: 1px solid var(--rule);
  padding: 10px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.material-card .mat-name {
  font-size: 10pt;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  margin-bottom: 6px;
  line-height: 1.1;
}
.material-card .mat-tier {
  font-family: var(--mono);
  font-size: 7pt;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.material-card .mat-block {
  margin-bottom: 6px;
}
.material-card .mat-block .mb-l {
  font-family: var(--mono);
  font-size: 7pt;
  color: var(--ink-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.material-card .mat-block .mb-v {
  font-size: 8pt;
  color: var(--ink);
  line-height: 1.35;
}

/* ============ DISPLAY / MERCHANDISING ============ */

.disp-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  flex: 1;
}
.disp-img {
  background: #fafafa;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.disp-img img { width: 100%; height: 100%; object-fit: cover; }

.disp-info { display: flex; flex-direction: column; gap: 10px; }
.disp-card {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  background: #fcfcfc;
}
.disp-card .dc-l {
  font-family: var(--mono);
  font-size: 7pt;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}
.disp-card .dc-title {
  font-size: 10pt;
  font-weight: 700;
  margin-bottom: 4px;
}
.disp-card .dc-body {
  font-size: 8.5pt;
  line-height: 1.45;
  color: var(--ink-soft);
}
.disp-card .dc-body ul {
  margin: 0; padding: 0; list-style: none;
}
.disp-card .dc-body ul li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 3px;
}
.disp-card .dc-body ul li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--red);
  position: absolute;
  left: 0; top: 6px;
}

/* ============ ORDER FORMS / TERMS ============ */

.terms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}
.terms-card {
  border: 1px solid var(--rule);
  padding: 12px 14px;
  background: #fff;
}
.terms-card .tc-l {
  font-family: var(--mono);
  font-size: 7pt;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}
.terms-card .tc-title {
  font-size: 11pt;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.terms-card .tc-body {
  font-size: 8.5pt;
  line-height: 1.5;
  color: var(--ink-soft);
}
.terms-card .tc-body .mono {
  font-family: var(--mono);
  color: var(--ink);
}

/* ============ DISTRIBUTION + QC ============ */

.dist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}
.dist-img {
  background: #fafafa;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dist-img img { width: 100%; height: 100%; object-fit: cover; }

.dist-info { display: flex; flex-direction: column; gap: 10px; }
.dist-block {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  background: #fcfcfc;
}
.dist-block .db-l {
  font-family: var(--mono);
  font-size: 7pt;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}
.dist-block .db-title {
  font-size: 10pt;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink);
}
.dist-block .db-body {
  font-size: 8.5pt;
  line-height: 1.45;
  color: var(--ink-soft);
}
.dist-block .db-body .territory {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--rule);
  padding: 3px 0;
  font-family: var(--mono);
  font-size: 8pt;
}
.dist-block .db-body .territory:last-child { border-bottom: none; }
.dist-block .db-body .territory .ter-name { color: var(--ink); font-weight: 600; }
.dist-block .db-body .territory .ter-status { color: var(--ink-light); }
.dist-block .db-body .territory .ter-status.active { color: var(--green-check); font-weight: 700; }

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

.page--back {
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.back-top {
  background: var(--ink);
  color: #fff;
  padding: 30px 30px 26px 30px;
  text-align: center;
}
.back-mark {
  font-size: 22pt;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 4px;
}
.back-mark .x { color: var(--red); }
.back-tagline {
  font-family: var(--mono);
  font-size: 8.5pt;
  letter-spacing: 2.5px;
  color: #ccc;
  text-transform: uppercase;
}

.back-mid {
  padding: 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.back-contact-card {
  border: 2px solid var(--ink);
  padding: 16px;
}
.back-contact-card .bcc-l {
  font-family: var(--mono);
  font-size: 8pt;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.back-contact-card .bcc-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  font-family: var(--mono);
  padding: 4px 0;
  font-size: 9pt;
  border-bottom: 1px dotted var(--rule);
}
.back-contact-card .bcc-row:last-child { border-bottom: none; }
.back-contact-card .bcc-row .bcr-k {
  color: var(--ink-light);
  font-size: 8pt;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.back-contact-card .bcc-row .bcr-v {
  color: var(--ink);
  font-weight: 600;
}

.back-certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.back-cert {
  text-align: center;
  border: 1px solid var(--rule);
  padding: 8px 4px;
  background: #fcfcfc;
}
.back-cert .bc-glyph {
  font-size: 14pt;
  color: var(--red);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}
.back-cert .bc-label {
  font-family: var(--mono);
  font-size: 7pt;
  color: var(--ink);
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.2;
}

.back-bottom {
  background: var(--red);
  color: #fff;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8.5pt;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.back-bottom strong { font-weight: 700; }

/* ============ MOBILE / NARROW VIEW ============ */

@media (max-width: 768px) {
  .viewer-header { font-size: 10px; padding: 8px 12px; }
  .nav-arrow { width: 30px; height: 50px; font-size: 18px; }
  .book-stage { padding: 6px; }
  .page { font-size: 9pt; }
}

/* Print disabled on small width — st.pageflip will auto-portrait */
