/*
 * Print stylesheet for kichava theme
 * Optimized for clean, readable print output
 */

/* Hide non-essential elements */
.site-header,
.site-nav,
.nav-search,
.dark-mode-toggle,
.sidebar,
.site-footer,
.comments-area,
.post-footer,
.pagination,
.skip-link,
.button-link,
.search-form {
  display: none !important;
}

/* Reset colors for print */
* {
  background: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Page setup */
@page {
  margin: 2cm;
}

body {
  font-size: 12pt;
  line-height: 1.5;
  color: #000;
  background: #fff;
}

/* Typography */
.site-title,
.post-title {
  font-size: 18pt;
  margin-top: 0;
  margin-bottom: 0.5em;
  page-break-after: avoid;
}

.post-title a {
  text-decoration: none;
  color: #000;
}

.post-content {
  font-size: 11pt;
  line-height: 1.6;
}

.post-content p {
  margin-bottom: 1em;
  orphans: 3;
  widows: 3;
}

/* Links */
a {
  color: #000;
  text-decoration: underline;
}

a[href^="http"]:after {
  content: " (" attr(href) ")";
  font-size: 9pt;
  color: #666;
}

a[href^="#"]:after,
a[href^="/"]:after {
  content: "";
}

/* Images */
img {
  max-width: 100% !important;
  height: auto !important;
  page-break-inside: avoid;
}

.post-thumbnail {
  margin: 1em 0;
  page-break-inside: avoid;
}

/* Page breaks */
article {
  page-break-inside: avoid;
}

.post {
  page-break-inside: avoid;
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 1px solid #ccc;
}

.post:last-child {
  border-bottom: none;
}

h1, h2, h3, h4, h5, h6 {
  page-break-after: avoid;
  page-break-inside: avoid;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #000;
  padding-left: 1em;
  margin: 1em 0;
  page-break-inside: avoid;
}

/* Code */
pre, code {
  font-size: 10pt;
  border: 1px solid #ccc;
  page-break-inside: avoid;
}

pre {
  padding: 0.5em;
  overflow: visible;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  page-break-inside: avoid;
}

table th,
table td {
  border: 1px solid #000;
  padding: 0.5em;
}

/* Post meta */
.post-meta {
  font-size: 9pt;
  color: #666;
  margin-bottom: 0.5em;
}

/* Utility */
.no-print {
  display: none !important;
}

