/* publish.css - Print styles for resume/CV */

@media print {
  /* Page setup */
  @page {
    margin: 0.5in;
    size: letter;  /* or A4 */
  }

  /* Hide non-print elements */
  .nav-bar,
  .sidebar,
  .footer,
  .publish-header,
  .mobile-sidebar-toggle,
  .theme-toggle,
  .search-input,
  .graph-view,
  .backlink-section,
  .tag-section,
  .metadata,
  .edit-button,
  .share-button,
  [data-sidebar],
  [data-navbar],
  .obsidian-footer {
    display: none !important;
  }

  /* Main content full width */
  .content,
  .markdown-preview-view,
  .markdown-rendered {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    color: #000 !important;
    background: #fff !important;
  }

  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  h1 { font-size: 24pt !important; margin-bottom: 0.25em !important; }
  h2 { font-size: 14pt !important; margin-top: 1.5em !important; margin-bottom: 0.5em !important; border-bottom: 1px solid #ccc !important; padding-bottom: 0.25em !important; }
  h3 { font-size: 12pt !important; margin-top: 1em !important; }

  p, li, div { font-size: 11pt !important; }

  /* Links - show URLs */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
    font-weight: normal;
  }
  a { color: #000 !important; text-decoration: none !important; }

  /* Lists */
  ul, ol { margin: 0.5em 0 0.5em 1.5em !important; }
  li { margin: 0.25em 0 !important; }

  /* Code blocks */
  pre, code {
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    font-size: 9pt !important;
    page-break-inside: avoid !important;
  }

  /* Tables */
  table { page-break-inside: avoid !important; width: 100% !important; }
  th, td { border: 1px solid #ccc !important; padding: 4px 8px !important; font-size: 10pt !important; }

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

  /* Horizontal rules */
  hr { border: none; border-top: 1px solid #ccc !important; margin: 1em 0 !important; }

  /* Blockquotes */
  blockquote { border-left: 3px solid #ccc !important; margin: 1em 0 !important; padding-left: 1em !important; color: #333 !important; }

  /* Callouts (Obsidian-style) */
  .callout { border: 1px solid #ddd !important; border-radius: 4px !important; padding: 1em !important; margin: 1em 0 !important; page-break-inside: avoid !important; background: #fafafa !important; }

  /* Force single column */
  .columns, .grid { display: block !important; }
}

/* Screen: subtle print hint */
@media screen {
  .print-hint {
    position: fixed; bottom: 1rem; right: 1rem;
    background: #333; color: #fff; padding: 0.5rem 1rem;
    border-radius: 4px; font-size: 0.85rem; z-index: 9999;
    opacity: 0.8;
  }
}

/* REDUCE IMAGE SIZE */

/* Reduce ALL images to 50% of container width */
.markdown-preview-view img,
.markdown-rendered img {
  max-width: 70% !important;
  height: auto !important;
}