/**
 * Samozashtita Pro вЂ” Publishing Catalog & Book Architecture Styles
 * Version: 2.2.0 (Editorial & Design Polish)
 */

/* ==========================================================================
   1. SHARED CONTAINER & LAYOUT
   ========================================================================== */
.sz-publishing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 9.5rem 2rem 5rem;
  position: relative;
  z-index: 20;
}

.sz-back-nav {
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 30;
}

.sz-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem;
  margin-left: -0.5rem;
  text-decoration: none;
  color: var(--sz-text-muted, #94a3b8);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sz-back-btn:hover {
  color: var(--sz-accent, #0ea5e9);
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.25);
  transform: translateX(-4px);
}

.sz-back-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   2. CATALOG HEADER & HERO
   ========================================================================== */
.sz-catalog-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 3.5rem;
}

.sz-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--sz-accent, #0ea5e9);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.sz-catalog-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sz-catalog-subtitle {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--sz-text-muted, #94a3b8);
  margin-bottom: 2rem;
}

.sz-catalog-meta-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.85rem 1.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.sz-meta-point {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sz-meta-point svg {
  width: 16px;
  height: 16px;
  color: var(--sz-accent, #0ea5e9);
}

/* ==========================================================================
   3. CATALOG BOOK CARD
   ========================================================================== */
.sz-catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  margin-bottom: 4rem;
}

.sz-book-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sz-book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--sz-accent, #0ea5e9), transparent);
  opacity: 0.7;
}

.sz-book-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(14, 165, 233, 0.12);
  transform: translateY(-4px);
}

.sz-book-card-cover {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 2 / 3;
  background: #0b0f19;
}

.sz-book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sz-book-card:hover .sz-book-card-cover img {
  transform: scale(1.03);
}

.sz-book-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sz-book-series-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sz-accent, #0ea5e9);
  margin-bottom: 0.5rem;
}

.sz-book-card-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.sz-book-card-subtitle {
  font-size: 0.98rem;
  color: #38bdf8;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.sz-book-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.sz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 600;
}

.sz-chip-accent {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
}

.sz-book-card-desc {
  font-size: 0.95rem;
  line-height: 1.68;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
}

.sz-book-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sz-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #facc15;
}

.sz-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
}

.sz-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  transition: all 0.25s ease;
}

.sz-btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Future books teaser card */
.sz-future-books-card {
  padding: 2.25rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  text-align: center;
}

.sz-future-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.sz-future-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--sz-text-muted, #94a3b8);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   4. SINGLE BOOK PAGE ARCHITECTURE
   ========================================================================== */
.sz-book-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.sz-book-hero-cover-wrap {
  position: relative;
}

.sz-book-cover-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090d16;
  aspect-ratio: 2 / 3;
}

.sz-book-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sz-cover-isbn-tag {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-family: monospace;
  color: #94a3b8;
  letter-spacing: 0.05em;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sz-book-hero-details {
  display: flex;
  flex-direction: column;
}

.sz-book-single-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sz-book-single-subtitle {
  font-size: 1.12rem;
  color: #38bdf8;
  margin-bottom: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
}

.sz-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.sz-metric-card {
  padding: 0.85rem 1.15rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.sz-metric-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
  font-family: var(--font-sans, sans-serif);
}

.sz-metric-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sz-book-lead-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   5. EXTERNAL CHANNELS ACTION PANEL (PURCHASE MATRIX)
   ========================================================================== */
.sz-channels-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(9, 14, 26, 0.95) 100%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(14, 165, 233, 0.08);
}

.sz-channels-header {
  margin-bottom: 1.25rem;
}

.sz-channels-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.sz-channels-title svg {
  width: 22px;
  height: 22px;
  color: var(--sz-accent, #0ea5e9);
}

.sz-channels-lead {
  font-size: 0.88rem;
  color: #94a3b8;
}

.sz-channels-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.sz-channel-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 1.15rem;
  padding: 1.1rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.sz-channel-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.sz-channel-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sz-accent, #0ea5e9);
  flex-shrink: 0;
}

.sz-channel-icon svg {
  width: 22px;
  height: 22px;
}

.sz-channel-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.sz-channel-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.sz-channel-action {
  flex-shrink: 0;
}

.sz-channel-btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: not-allowed;
  user-select: none;
}

.sz-badge-coming-soon {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #facc15;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sz-channel-btn-active {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  background: #0ea5e9;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sz-channel-btn-active:hover {
  background: #38bdf8;
  transform: translateY(-2px);
}

.sz-disclaimer-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #94a3b8;
}

.sz-disclaimer-box svg {
  width: 18px;
  height: 18px;
  color: #facc15;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   6. EDITORIAL ARTICLE SECTIONS
   ========================================================================== */
.sz-book-sections {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.sz-section-block {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 2.25rem;
}

.sz-section-heading {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sz-section-heading svg {
  width: 22px;
  height: 22px;
  color: var(--sz-accent, #0ea5e9);
}

.sz-text-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
  max-width: 72ch;
}

.sz-text-content p {
  margin-bottom: 1.15rem;
}

.sz-text-content p:last-child {
  margin-bottom: 0;
}

.sz-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.sz-feature-box {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.sz-feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sz-feature-title svg {
  width: 16px;
  height: 16px;
  color: var(--sz-accent, #0ea5e9);
}

.sz-feature-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   7. TABLE OF CONTENTS (INTERACTIVE ACCORDION WITH DETAILS/SUMMARY)
   ========================================================================== */
.sz-toc-intro-note {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.sz-toc-part {
  margin-bottom: 2rem;
}

.sz-toc-part:last-child {
  margin-bottom: 0;
}

.sz-toc-part-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sz-accent, #0ea5e9);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(14, 165, 233, 0.25);
  margin-bottom: 0.85rem;
}

.sz-toc-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sz-toc-accordion {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
  overflow: hidden;
}

.sz-toc-accordion:hover {
  border-color: rgba(14, 165, 233, 0.25);
  background: rgba(255, 255, 255, 0.035);
}

.sz-toc-accordion[open] {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sz-toc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.sz-toc-summary::-webkit-details-marker {
  display: none;
}

.sz-toc-summary:focus-visible {
  outline: 2px solid var(--sz-accent, #0ea5e9);
  outline-offset: -2px;
  border-radius: 12px;
}

.sz-toc-badge {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--sz-accent, #0ea5e9);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.sz-toc-sum-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  flex-grow: 1;
}

.sz-toc-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s ease;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.sz-toc-accordion:hover .sz-toc-arrow {
  border-color: var(--sz-accent, #0ea5e9);
}

.sz-toc-accordion[open] .sz-toc-arrow {
  transform: rotate(-135deg);
  border-color: var(--sz-accent, #0ea5e9);
}

.sz-toc-body {
  padding: 0 1.25rem 1.15rem 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin-top: 0.25rem;
  padding-top: 0.85rem;
}

.sz-toc-subtitle {
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.sz-toc-body p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
}

/* ==========================================================================
   8. BONUS WORKSHEETS CATEGORIES GRID
   ========================================================================== */
.sz-worksheets-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.sz-ws-category-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.sz-ws-category-card:hover {
  border-color: rgba(14, 165, 233, 0.25);
  background: rgba(255, 255, 255, 0.035);
}

.sz-ws-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sz-ws-cat-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.sz-ws-cat-head h3,
.sz-ws-cat-head h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.sz-ws-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sz-ws-list li {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.sz-ws-list li strong {
  color: #38bdf8;
  font-family: monospace;
}

/* ==========================================================================
   9. AUTHENTIC BOOK PAGE EXCERPT (EDITORIAL LUXURY SHEET)
   ========================================================================== */
.sz-book-page-wrapper {
  margin-top: 1.75rem;
  perspective: 1000px;
}

.sz-book-page-sheet {
  background: #090e1a;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 14px;
  padding: 2.75rem 3rem 2.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), inset 0 0 40px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.sz-book-page-sheet::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  pointer-events: none;
}

.sz-book-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #64748b;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  font-family: var(--font-sans, sans-serif);
}

.sz-book-page-heading-block {
  text-align: center;
  margin-bottom: 2rem;
}

.sz-book-page-ch-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.sz-book-page-ch-subtitle {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 0.95rem;
  font-style: italic;
  color: #38bdf8;
  max-width: 580px;
  margin: 0 auto 0.75rem;
  line-height: 1.45;
}

.sz-book-page-section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.sz-book-page-body {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e2e8f0;
  text-align: justify;
  hyphens: auto;
}

.sz-book-page-body p {
  margin-bottom: 1.35rem;
}

.sz-dropcap {
  float: left;
  font-size: 3.4rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 2px;
  color: #38bdf8;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-weight: 900;
}

.sz-book-ornament {
  text-align: center;
  font-size: 1rem;
  color: #38bdf8;
  margin: 1.75rem 0;
  letter-spacing: 0.4em;
  opacity: 0.75;
}

.sz-book-page-note {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
  background: rgba(14, 165, 233, 0.05);
  border-left: 3px solid var(--sz-accent, #0ea5e9);
  padding: 0.85rem 1.15rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1.5rem;
}

.sz-book-page-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

.sz-book-page-num {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   10. TABLE SPECS
   ========================================================================== */
.sz-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.sz-specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sz-specs-table th {
  text-align: left;
  padding: 0.85rem 0;
  font-size: 0.88rem;
  color: #94a3b8;
  width: 36%;
  font-weight: 600;
}

.sz-specs-table td {
  padding: 0.85rem 0;
  font-size: 0.92rem;
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  .sz-publishing-container {
    padding-top: 6rem;
  }
  .sz-book-hero {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .sz-book-hero-cover-wrap {
    max-width: 300px;
    margin: 0 auto;
  }
  .sz-book-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .sz-book-card-cover {
    max-width: 240px;
    margin: 0 auto;
  }
  .sz-channel-item {
    grid-template-columns: 46px 1fr;
  }
  .sz-channel-action {
    grid-column: 1 / -1;
    width: 100%;
  }
  .sz-channel-btn-disabled,
  .sz-channel-btn-active {
    width: 100%;
    justify-content: center;
  }
  .sz-feature-grid {
    grid-template-columns: 1fr;
  }
  .sz-worksheets-categories-grid {
    grid-template-columns: 1fr;
  }
  .sz-book-page-sheet {
    padding: 2rem 1.75rem 1.75rem;
  }
}

@media (max-width: 640px) {
  .sz-publishing-container {
    padding: 3.75rem 1rem 2.5rem;
  }
  .sz-book-hero {
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }
  .sz-book-hero-cover-wrap {
    max-width: 190px;
    margin: 0 auto 0.75rem;
  }
  .sz-book-cover-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  }
  .sz-book-cover-frame img {
    width: 100%;
    height: auto;
    display: block;
  }
  .sz-book-series-tag {
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    text-align: center;
  }
  .sz-book-single-title {
    font-size: 1.65rem;
    line-height: 1.22;
    margin-bottom: 0.35rem;
    text-align: center;
  }
  .sz-book-single-subtitle {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.85rem;
    text-align: center;
  }
  .sz-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .sz-metric-card {
    padding: 0.6rem 0.5rem;
  }
  .sz-metric-num {
    font-size: 0.95rem;
  }
  .sz-metric-label {
    font-size: 0.72rem;
  }
  .sz-book-lead-text {
    font-size: 0.9rem;
    line-height: 1.48;
    margin-bottom: 1rem;
    text-align: left;
  }
  .sz-hero-action-bar {
    margin-top: 1rem;
  }
  .sz-hero-pricing {
    padding: 1rem;
  }
  .sz-hero-sample-cta {
    margin-top: 0.85rem;
  }
  .sz-btn-primary.sz-btn-sample-download {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }
  .sz-section-block {
    padding: 1.35rem 1rem;
  }
  .sz-catalog-meta-strip {
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-start;
  }
  .sz-book-page-body {
    text-align: left;
    font-size: 0.98rem;
  }
  .sz-specs-table th {
    width: 45%;
    font-size: 0.82rem;
  }
  .sz-specs-table td {
    font-size: 0.85rem;
  }
}


/* ==========================================================================
   Universal Catalog & Product Architecture Additions (Stage 6.5B-2)
   ========================================================================== */

/* Multi-faceted Catalog Filter Bar */
.sz-catalog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
  padding: 1.15rem 1.35rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.sz-format-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sz-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sz-filter-tab svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.sz-filter-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.sz-filter-tab.is-active {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.18);
}

.sz-filter-controls-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.sz-filter-dropdown-wrap {
  position: relative;
}

.sz-filter-select {
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sz-filter-select:hover,
.sz-filter-select:focus {
  border-color: var(--sz-accent, #0ea5e9);
}

.sz-filter-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #f87171;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.52rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sz-filter-reset-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: #ef4444;
  color: #ffffff;
}

/* Catalog Empty State */
.sz-catalog-empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  margin: 2rem auto;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  max-width: 680px;
}

.sz-catalog-empty-state .sz-empty-icon {
  color: #64748b;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.sz-catalog-empty-state .sz-empty-title {
  font-size: 1.22rem;
  color: #f1f5f9;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.sz-catalog-empty-state .sz-empty-desc {
  color: #94a3b8;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.sz-catalog-empty-state .sz-empty-actions {
  display: flex;
  justify-content: center;
}

/* Medical Disclaimer Box */
.sz-medical-disclaimer-box {
  margin: 2rem 0;
  padding: 1.35rem 1.65rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  color: #e2e8f0;
}

.sz-disclaimer-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.sz-disclaimer-icon {
  color: #f59e0b;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.sz-disclaimer-title {
  color: #fbbf24;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.sz-disclaimer-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 0.65rem;
}

.sz-disclaimer-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .sz-catalog-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  .sz-format-filter-tabs {
    width: 100%;
  }
  .sz-filter-tab {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }
  .sz-filter-controls-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .sz-filter-dropdown-wrap,
  .sz-filter-select {
    width: 100%;
  }
  .sz-filter-reset-btn {
    justify-content: center;
  }
}

/* Mobile fine-tuning for compact screens (Stage 6.5B-2B) */
@media (max-width: 480px) {
  .sz-publishing-container {
    padding: 5.5rem 1.15rem 3.5rem;
  }
  .sz-catalog-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .sz-book-single-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .sz-book-card-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }
  .sz-catalog-subtitle,
  .sz-book-single-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .sz-back-nav {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 395px) {
  .sz-publishing-container {
    padding: 5rem 0.9rem 3rem;
  }
  .sz-catalog-title {
    font-size: 1.5rem;
    line-height: 1.22;
  }
  .sz-book-single-title {
    font-size: 1.5rem;
    line-height: 1.22;
  }
  .sz-eyebrow-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }
  .sz-filter-tab {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
  }
  .sz-book-card {
    padding: 1.25rem 1rem;
  }
}


/* ==========================================================================
   OFFICIAL SAMPLE DOWNLOAD & HERO PRICING BAR (STAGE 6.5C-1)
   ========================================================================== */
.sz-hero-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.sz-hero-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sz-price-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.sz-price-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sz-price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-left: 0.2rem;
}

.sz-price-scope {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.sz-hero-sample-cta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.sz-btn-sample-download {
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.4);
}

.sz-sample-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.sz-sample-guarantee svg {
  color: #10b981;
  flex-shrink: 0;
}

/* SECTION 6 EXCERPT DOWNLOAD CTA BOX */
.sz-excerpt-download-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.25rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sz-excerpt-cta-icon {
  color: #38bdf8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sz-excerpt-cta-body {
  flex: 1;
}

.sz-excerpt-cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.4rem;
}

.sz-excerpt-cta-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.sz-excerpt-cta-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sz-excerpt-cta-badge {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

@media (max-width: 640px) {
  .sz-hero-action-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .sz-hero-sample-cta {
    width: 100%;
  }
  .sz-btn-sample-download {
    width: 100%;
    justify-content: center;
  }
  .sz-excerpt-download-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
  }
}


/* ==========================================================================
   LEMON SQUEEZY TEST MODE / SANDBOX CHECKOUT BADGE & BANNER (STAGE 6.5C-2)
   ========================================================================== */
.sz-test-checkout-banner {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  text-align: left;
}

.sz-badge-test-sandbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 6px;
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.sz-test-checkout-notice {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fde68a;
  margin: 0 0 0.6rem 0;
}

.sz-channel-btn-test-sandbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
}

.sz-channel-btn-test-sandbox:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .sz-channel-btn-test-sandbox {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   ETAP 6.5C-5: ACCESSIBILITY, NAVIGATION & TYPOGRAPHY CORRECTIONS
   ========================================================================== */

/* 1. Slogan semantic p tag styling parity with h2 */
p.sz-slogan-title {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

/* 2. Header library navigation chip */
.sz-pillar-chip.sz-pillar-library {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  background: rgba(56, 189, 248, 0.08) !important;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sz-pillar-chip.sz-pillar-library:hover,
.sz-pillar-chip.sz-pillar-library:focus-visible {
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* 3. Global keyboard focus ring (WCAG 2.4.7 AA & 2.4.11) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: 3px !important;
  border-radius: 3px !important;
}

/* Ensure social button focus rings maintain circular/curved shape */
.sz-social-btn:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: 3px !important;
  border-radius: 50% !important;
}

/* ==========================================================================
   STAGE 6.5C-8G: FOOTER, LEGAL PAGES & PRE-CONTRACTUAL NOTICE STYLING
   ========================================================================== */

/* Social bar flow isolation for all content/inner pages (never overlaps cards or footer) */
body:not(.home) .sz-social-bar {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 1.25rem !important;
  margin: 3.5rem auto 0 !important;
  padding: 1.5rem 1rem 0 !important;
  max-width: 1100px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
}

body:not(.home) .sz-social-label {
  writing-mode: horizontal-tb !important;
  transform: none !important;
  margin: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--sz-text-dim, #64748b) !important;
  line-height: 1 !important;
}

body:not(.home) .sz-social-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.85rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 640px) {
  body:not(.home) .sz-social-bar {
    flex-direction: column !important;
    gap: 0.85rem !important;
    margin-top: 2.5rem !important;
  }
}

body:not(.home) .sz-site-footer {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: 1.75rem !important;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 25, 0.75);
  text-align: center;
}

body:not(.home) .sz-footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 1rem;
}

.sz-footer-nav,
.sz-footer-legal-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.sz-footer-nav a,
.sz-footer-legal-nav a {
  color: var(--sz-text-dim, #94a3b8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sz-footer-nav a:hover,
.sz-footer-legal-nav a:hover,
.sz-footer-nav a:focus-visible,
.sz-footer-legal-nav a:focus-visible {
  color: #38bdf8;
}

/* Disable article drop-cap on legal documents */
.sz-legal-document-wrapper > p:first-of-type::first-letter,
.sz-legal-content > p:first-of-type::first-letter {
  all: unset !important;
}

.legal-precontract-notice-box a:hover,
.legal-precontract-notice-box a:focus-visible {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   GUMROAD PRICING & TAX TRANSPARENCY ENHANCEMENTS
   ========================================================================== */
.sz-universal-pricing-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.08);
}

.sz-btn-buy-gumroad {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sz-btn-buy-gumroad:hover {
  background: #0284c7 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55) !important;
}

.sz-btn-buy-gumroad:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: 3px !important;
}

@media (max-width: 640px) {
  .sz-universal-pricing-box {
    padding: 1.1rem !important;
  }
  .sz-universal-pricing-box .sz-price-headline {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .sz-universal-pricing-box .sz-hero-cta-wrap {
    width: 100%;
  }
  .sz-btn-buy-gumroad {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   PUBLISHING BOOK SINGLE PAGES (SECTIONS A-I)
   ========================================================================== */

/* Sections spacing & semantic structure */
.sz-section-about,
.sz-section-audience,
.sz-section-learning,
.sz-section-package,
.sz-section-excerpt,
.sz-section-metadata,
.sz-section-final-purchase,
.sz-section-related-book {
  margin-top: 3.5rem;
  scroll-margin-top: 2rem;
}

/* Package Grid & Cards */
.sz-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.sz-package-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sz-package-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sz-package-card h3 {
  color: #38bdf8;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.sz-package-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* Excerpt Box */
.sz-excerpt-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 4px solid #38bdf8;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
  position: relative;
}

.sz-excerpt-box blockquote {
  margin: 0 0 1.25rem 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e2e8f0;
  font-style: italic;
  font-family: var(--font-serif, Georgia, serif);
}

.sz-excerpt-box blockquote p {
  margin-bottom: 0.85rem;
}

.sz-excerpt-box blockquote p:last-child {
  margin-bottom: 0;
}

/* Metadata Table */
.sz-metadata-table-wrap {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

.sz-metadata-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sz-metadata-table th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  color: #94a3b8;
  width: 35%;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sz-metadata-table td {
  padding: 0.85rem 1.25rem;
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sz-metadata-table tr:last-child th,
.sz-metadata-table tr:last-child td {
  border-bottom: none;
}

/* Final Purchase Card */
.sz-final-purchase-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.08);
}

.sz-btn-buy-gumroad.sz-btn-large {
  padding: 1rem 2.5rem !important;
  font-size: 1.15rem !important;
}

/* Related Book Card */
.sz-related-book-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sz-related-book-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .sz-final-purchase-card {
    padding: 1.25rem;
  }
  .sz-final-price span:first-child {
    font-size: 2.25rem !important;
  }
  .sz-metadata-table th {
    width: 45%;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }
  .sz-metadata-table td {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }
  .sz-excerpt-box {
    padding: 1.25rem;
  }
  .sz-related-book-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .sz-related-cover {
    width: 120px !important;
    margin: 0 auto;
  }
}

/* ==========================================================================
   DYNAMIC PUBLISHING SHOWCASE (CATEGORY ARCHIVE VITRINA)
   ========================================================================== */

.sz-category-showcase {
	margin: 2.75rem 0 2.25rem 0;
	padding: 2.5rem 2.75rem;
	background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%);
	border: 1px solid rgba(56, 189, 248, 0.22);
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	max-width: 100%;
}

.sz-category-showcase::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
	pointer-events: none;
}

.sz-showcase-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 2.25rem;
}

.sz-showcase-header-left {
	flex: 1;
	min-width: 280px;
}

.sz-showcase-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #38bdf8;
	margin-bottom: 0.65rem;
}

.sz-showcase-eyebrow svg {
	flex-shrink: 0;
	color: #38bdf8;
}

.sz-showcase-title {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.25;
	color: #f8fafc;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.02em;
}

.sz-showcase-subtitle {
	font-size: 1.02rem;
	line-height: 1.55;
	color: #94a3b8;
	margin: 0;
	max-width: 720px;
}

.sz-showcase-header-right {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.sz-showcase-count-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.85rem;
	background: rgba(15, 23, 42, 0.8);
	border: 1px solid rgba(56, 189, 248, 0.3);
	border-radius: 9999px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #38bdf8;
	text-transform: uppercase;
}

.sz-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #38bdf8;
	box-shadow: 0 0 8px #38bdf8;
}

.sz-showcase-nav-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sz-showcase-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sz-showcase-arrow:hover {
	background: rgba(56, 189, 248, 0.2);
	border-color: rgba(56, 189, 248, 0.5);
	color: #38bdf8;
	transform: scale(1.05);
}

/* ==========================================================================
   SHOWCASE CARDS COMPOSITION & HIERARCHY
   ========================================================================== */

.sz-showcase-track {
	box-sizing: border-box;
	max-width: 100%;
}

.sz-showcase-card {
	background: rgba(15, 23, 42, 0.85);
	border: 1px solid rgba(56, 189, 248, 0.16);
	border-radius: 14px;
	padding: 1.65rem;
	display: flex;
	gap: 1.65rem;
	position: relative;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	box-sizing: border-box;
}

.sz-showcase-card:hover {
	border-color: rgba(56, 189, 248, 0.35);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.08);
	transform: translateY(-2px);
}

/* 1. COVER: PROMINENT & HIGH CONTRAST */
.sz-showcase-cover-wrap {
	width: 180px;
	flex-shrink: 0;
	display: flex;
	align-items: flex-start;
}

.sz-showcase-cover-link {
	display: block;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.65), 0 4px 10px -2px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	background: #0f172a;
}

.sz-showcase-cover-link:hover {
	transform: translateY(-3px) scale(1.01);
	box-shadow: 0 18px 36px -4px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.25);
}

.sz-showcase-cover-link img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 7px;
}

/* 2. CARD BODY & CONTENT */
.sz-showcase-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.sz-showcase-card-header {
	margin-bottom: 1rem;
}

.sz-showcase-card-chips {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
}

.sz-chip {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.25rem 0.6rem;
	border-radius: 6px;
	display: inline-block;
}

.sz-chip-volume {
	background: rgba(56, 189, 248, 0.12);
	color: #38bdf8;
	border: 1px solid rgba(56, 189, 248, 0.28);
}

.sz-chip-format {
	background: rgba(148, 163, 184, 0.1);
	color: #94a3b8;
	border: 1px solid rgba(148, 163, 184, 0.18);
}

.sz-showcase-card-title {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.65rem 0;
	letter-spacing: -0.01em;
}

.sz-showcase-card-title a {
	color: #f8fafc;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sz-showcase-card-title a:hover {
	color: #38bdf8;
}

.sz-showcase-card-desc {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #94a3b8;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 3. CARD FOOTER: PRICE & CTA */
.sz-showcase-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	flex-wrap: wrap;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	margin-top: auto;
}

.sz-showcase-price-box {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.sz-showcase-price {
	font-size: 1.4rem;
	font-weight: 800;
	color: #f8fafc;
	letter-spacing: -0.02em;
	line-height: 1;
}

.sz-showcase-tax-note {
	font-size: 0.72rem;
	color: #64748b;
	line-height: 1.3;
}

.sz-btn-showcase-explore {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.6rem 1.2rem;
	background: rgba(56, 189, 248, 0.1);
	color: #38bdf8;
	border: 1px solid rgba(56, 189, 248, 0.3);
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.sz-btn-showcase-explore:hover {
	background: #38bdf8;
	color: #0f172a;
	border-color: #38bdf8;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   DESKTOP 2-COLUMN GRID (>= 769px)
   ========================================================================== */
@media (min-width: 769px) {
	.sz-showcase-grid-two {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1.75rem;
	}

	.sz-showcase-nav-controls {
		display: none;
	}
}

/* ==========================================================================
   TABLET ADAPTATION (769px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
	.sz-category-showcase {
		padding: 2rem;
	}

	.sz-showcase-card {
		padding: 1.25rem;
		gap: 1.25rem;
	}

	.sz-showcase-cover-wrap {
		width: 155px;
	}

	.sz-showcase-card-title {
		font-size: 1.2rem;
	}
}

/* ==========================================================================
   MOBILE HORIZONTAL SWIPE / CAROUSEL (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
	.sz-category-showcase {
		padding: 1.5rem 1rem;
		margin: 2rem 0 1.75rem 0;
		border-radius: 14px;
	}

	.sz-showcase-header {
		margin-bottom: 1.25rem;
		gap: 0.85rem;
	}

	.sz-showcase-title {
		font-size: 1.35rem;
	}

	.sz-showcase-subtitle {
		font-size: 0.9rem;
	}

	.sz-showcase-nav-controls {
		display: flex;
	}

	.sz-showcase-arrow {
		width: 32px;
		height: 32px;
	}

	/* Native Touch Horizontal Scroll / Carousel */
	.sz-showcase-track {
		display: flex !important;
		flex-direction: row;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 1rem;
		margin: 0 -0.5rem;
		padding: 0 0.5rem 0.85rem 0.5rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
	}

	.sz-showcase-track::-webkit-scrollbar {
		height: 5px;
	}

	.sz-showcase-track::-webkit-scrollbar-thumb {
		background: rgba(56, 189, 248, 0.4);
		border-radius: 10px;
	}

	/* Card: One in full focus + peek of second card (84%) */
	.sz-showcase-card {
		flex: 0 0 calc(84% - 0.5rem) !important;
		max-width: 330px;
		min-width: 275px;
		scroll-snap-align: start;
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 1.35rem 1.15rem;
	}

	.sz-showcase-cover-wrap {
		width: 145px;
		margin-bottom: 0.85rem;
		display: flex;
		justify-content: center;
	}

	.sz-showcase-cover-link {
		width: 145px;
	}

	.sz-showcase-card-chips {
		justify-content: center;
	}

	.sz-showcase-card-title {
		font-size: 1.15rem;
		margin-bottom: 0.5rem;
	}

	.sz-showcase-card-desc {
		font-size: 0.84rem;
		margin-bottom: 0.85rem;
		-webkit-line-clamp: 2;
	}

	.sz-showcase-card-footer {
		flex-direction: column;
		align-items: center;
		gap: 0.85rem;
		width: 100%;
		padding-top: 0.85rem;
	}

	.sz-showcase-price-box {
		align-items: center;
		text-align: center;
	}

	.sz-showcase-price {
		font-size: 1.3rem;
	}

	.sz-btn-showcase-explore {
		width: 100%;
		justify-content: center;
		padding: 0.65rem 1rem;
	}
}

/* ==========================================================================
   NARROW MOBILE (<= 360px)
   ========================================================================== */
@media (max-width: 360px) {
	.sz-showcase-card {
		flex: 0 0 88% !important;
		min-width: 250px;
		padding: 1.15rem 0.85rem;
	}

	.sz-showcase-cover-wrap {
		width: 130px;
	}

	.sz-showcase-cover-link {
		width: 130px;
	}

	.sz-showcase-title {
		font-size: 1.2rem;
	}
}

/* ==========================================================================
   SUBTLE VISUAL DIVIDER TO ARTICLES
   ========================================================================== */
.sz-showcase-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin: 3rem 0 2.25rem 0;
	color: #64748b;
}

.sz-divider-line {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.25), transparent);
}

.sz-divider-text {
	font-size: 0.85rem;
	font-style: italic;
	letter-spacing: 0.04em;
	color: #94a3b8;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.sz-showcase-divider {
		margin: 2.25rem 0 1.75rem 0;
		gap: 0.75rem;
	}

	.sz-divider-text {
		font-size: 0.78rem;
	}
}

/* ==========================================================================
   BODY OVERFLOW & THUMBNAIL CONTAINMENT GUARDS
   ========================================================================== */
html, body {
	overflow-x: hidden;
	max-width: 100vw;
}

.sz-archive-container,
.sz-single-wrapper {
	max-width: 100%;
	box-sizing: border-box;
}

.sz-archive-card,
.sz-card-thumb {
	display: block;
	max-width: 100%;
	overflow: hidden;
}

.sz-card-thumb img {
	max-width: 100% !important;
	width: 100% !important;
	height: auto;
	object-fit: cover;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.sz-showcase-card,
	.sz-showcase-cover-link,
	.sz-btn-showcase-explore,
	.sz-showcase-arrow {
		transition: none !important;
		transform: none !important;
	}
	.sz-showcase-track {
		scroll-behavior: auto !important;
	}
}

