/* Print-specific styles - Loaded conditionally for print media only */
/* This file is served via <link media="print"> to avoid render-blocking */

/* Reset page margins for better print layout */
@page {
  margin: 0.75in 0.5in 1in 0.5in;
  size: letter;
}

/* Ensure body and html don't have unwanted styles */
body {
  font-size: 12pt !important;
  line-height: 1.5 !important;
  color: #000 !important;
  background: white !important;
}

/* Hide page padding for cleaner print */
main {
  padding-top: 0 !important;
}

/* Ensure print utilities work properly */
.print\:hidden {
  display: none !important;
}

.print\:block {
  display: block !important;
}

/* Force black text for better readability */
.print\:text-gray-900 {
  color: #111827 !important;
}

.print\:text-gray-700 {
  color: #374151 !important;
}

.print\:text-gray-600 {
  color: #4b5563 !important;
}

/* Simplify backgrounds for print */
.print\:bg-gray-50,
.print\:from-gray-50,
.print\:to-gray-50 {
  background-color: #f9fafb !important;
  background-image: none !important;
}

.print\:bg-gray-100,
.print\:from-gray-100,
.print\:to-gray-100 {
  background-color: #f3f4f6 !important;
  background-image: none !important;
}

.print\:bg-amber-50,
.print\:from-amber-50,
.print\:to-amber-50 {
  background-color: #fffbeb !important;
  background-image: none !important;
}

/* Remove shadows and transitions for print */
.print\:shadow-none {
  box-shadow: none !important;
}

.print\:transform-none {
  transform: none !important;
}

/* Adjust padding for print */
.print\:p-3 {
  padding: 0.75rem !important;
}

.print\:p-4 {
  padding: 1rem !important;
}

.print\:p-6 {
  padding: 1.5rem !important;
}

.print\:px-4 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.print\:px-6 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.print\:py-3 {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.print\:py-4 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.print\:py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Adjust margins for print */
.print\:mt-0 {
  margin-top: 0 !important;
}

.print\:mb-4 {
  margin-bottom: 1rem !important;
}

.print\:mb-6 {
  margin-bottom: 1.5rem !important;
}

.print\:mb-8 {
  margin-bottom: 2rem !important;
}

.print\:mb-16 {
  margin-bottom: 4rem !important;
}

.print\:space-y-4 > * + * {
  margin-top: 1rem !important;
}

.print\:space-y-6 > * + * {
  margin-top: 1.5rem !important;
}

/* Adjust text sizes for print */
.print\:text-xl {
  font-size: 1.25rem !important;
}

.print\:text-3xl {
  font-size: 1.875rem !important;
}

/* Ensure borders show properly in print */
.print\:border {
  border-width: 1px !important;
}

/* Adjust rounded corners for print */
.print\:rounded-xl {
  border-radius: 0.75rem !important;
}

/* Avoid page breaks inside important elements */
.print\:break-inside-avoid {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

/* Keep timeline cards together when possible */
.bg-white.rounded-2xl {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

/* Remove animations and transitions */
* {
  animation: none !important;
  transition: none !important;
}

/* Gap utilities for print */
.print\:gap-3 {
  gap: 0.75rem !important;
}

/* Position utilities for print */
.print\:fixed {
  position: fixed !important;
}

.print\:bottom-4 {
  bottom: 1rem !important;
}

.print\:left-0 {
  left: 0 !important;
}

.print\:right-0 {
  right: 0 !important;
}

.print\:bg-white {
  background-color: white !important;
}

/* Ensure no unwanted page breaks after primary elements */
.print\:bg-gray-100 {
  page-break-after: auto !important;
}
