
/* =========================================================
   ORIGIN CODES MODE — hide author/date/share metadata blocks
   Requires origin-codes.js to add .origin-codes-mode
   ========================================================= */

html.origin-codes-mode .metadata,
body.origin-codes-mode .metadata,
html.origin-codes-mode .post-authors,
body.origin-codes-mode .post-authors,
html.origin-codes-mode .post-author-images,
body.origin-codes-mode .post-author-images,
html.origin-codes-mode .post-authors-text,
body.origin-codes-mode .post-authors-text,
html.origin-codes-mode .post-author-name,
body.origin-codes-mode .post-author-name,
html.origin-codes-mode .date-small-text,
body.origin-codes-mode .date-small-text,
html.origin-codes-mode .post-share-icons-header,
body.origin-codes-mode .post-share-icons-header,
html.origin-codes-mode .post-share-container,
body.origin-codes-mode .post-share-container {
  display: none !important;
}

/* Remove any leftover spacing where metadata was */
html.origin-codes-mode .metadata,
body.origin-codes-mode .metadata {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* ===============================
   ORIGIN CODES — Header Refinement
   =============================== */

#origin-codes .section-header.origin-header {
  display: block;
  margin-bottom: 1.5rem;
}

/* PRIMARY RECORD (eyebrow) */
#origin-codes .origin-eyebrow {
  margin-bottom: 0.35rem;  /* tight spacing */
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Main Title */
#origin-codes .origin-main-title {
  margin: 0;
  font-size: 1.9rem;       /* adjust to taste */
  font-weight: 600;
}

/* =========================================================
   ORIGIN CODES — Subtitle Stacking Control
   Clean single-line separation between stacked subtitle-text
   ========================================================= */

#origin-codes .section-header .subtitle-text + .subtitle-text {
  margin-top: 0.75rem; /* Adjust between 0.5rem – 1rem if needed */
}

/* =========================================================
   Origin chapter nav layout
   ========================================================= */

.origin-chapter-navigation {
  background: transparent;
}

.origin-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.origin-nav-left,
.origin-nav-center,
.origin-nav-right {
  flex: 1;
}

.origin-nav-left { text-align: left; }
.origin-nav-center { text-align: center; }
.origin-nav-right { text-align: right; }

.origin-nav-link {
  font-weight: 500;
  text-decoration: none;
}

.origin-nav-link.disabled {
  opacity: 0.35;
  pointer-events: none;
}