/* Blackwood Codex — print: hide desk chrome; readable serif body on white */

.codex-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.btn-print {
  color: var(--moss) !important; /* British grey moss */
  cursor: pointer;
  font-family: var(--sans);
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
}
.btn-print:hover {
  color: var(--ivory) !important;
}
/* chapter-actions btn-print styled below */
.library-actions .btn-print,
.edit-toolbar .btn-print,
.treat-card .btn-print,
.reader-print,
.public-print-bar .btn-print {
  /* inherit British grey from .btn-print */
}
.treat-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.65rem;
  align-items: center;
}
.treat-card .btn-print {
  font-size: 0.82rem;
}
.library-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.public-print-bar {
  margin: 0 0 1rem;
}

@media print {
  .topbar,
  .search,
  .nav,
  .site-footer,
  .chapter-actions,
  .edit-toolbar,
  .write-toolbar-card,
  .write-list-pane,
  .write-stat-grid,
  .write-quicklinks,
  .write-backup-bar,
  .desk-status,
  .library-actions,
  .library-modal-close,
  .library-modal-toolbar,
  .btn-print,
  .btn-solid,
  .btn-ghost,
  .btn-linkish,
  .btn-read,
  .btn-edit,
  #desk-auth-overlay,
  #desk-auth-modal,
  .public-top,
  .public-nav,
  .public-footer,
  .public-print-bar,
  .treat-card-actions,
  #reader-toolbar,
  .codex-print-frame {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .page,
  .page-wide,
  .public-shell {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .chapter-card,
  .stub-card,
  .library-panel,
  .library-modal-card,
  .treat-card,
  .public-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .prose,
  .md-body,
  .library-full,
  .public-excerpt,
  .chapter-prose {
    color: #000 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 12pt !important;
    line-height: 1.55 !important;
  }

  h1, h2, h3, .page-title {
    color: #000 !important;
    font-family: Georgia, "Times New Roman", serif !important;
  }
}

/* Chapter card: Print sits as a peer to Read */
.chapter-actions .btn-print {
  font-size: 0.82rem;
  color: var(--ivory) !important;
  letter-spacing: 0.02em;
}
.chapter-actions .btn-print:hover {
  color: var(--ivory-bright) !important;
}
.chapter-read-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.75rem;
}
.chapter-read-bar .btn-print {
  font-size: 0.82rem;
  color: var(--ivory) !important;
}
.chapter-read-bar .btn-print:hover {
  color: var(--ivory-bright) !important;
}
