/**
 * DICPDK Theme — Print Stylesheet
 *
 * Clean A4 output for printing pages
 *
 * @package DICPDK
 */

@media print {
  /* Reset colors for print */
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Page setup */
  @page {
    margin: 2cm;
    size: A4;
  }

  body {
    font-family: 'Inter', 'Noto Sans Tamil', Georgia, serif;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Hide non-essential elements */
  .tricolor-top,
  .tricolor-bottom,
  .skip-to-content,
  .accessibility-bar,
  .site-nav,
  .nav-search-overlay,
  .breadcrumbs,
  .news-ticker,
  .footer-policies,
  .footer-bottom,
  .menu-toggle,
  .btn,
  .btn-cta,
  .btn-primary,
  .btn-gold,
  .btn-outline,
  .download-btn,
  .search-form,
  .wpcf7,
  .contact-fallback-form,
  .nav-search-btn,
  .lang-switch,
  #print-page,
  #high-contrast,
  .font-controls {
    display: none !important;
  }

  /* Government bar - keep but simplify */
  .govt-bar {
    border-bottom: 2px solid #000 !important;
    padding: 10pt 0 !important;
  }

  .govt-emblem {
    width: 40px !important;
  }

  /* Page header */
  .page-header {
    padding: 15pt 0 !important;
    border-bottom: 1px solid #ccc;
  }

  .page-header h1 {
    font-size: 18pt !important;
  }

  .page-header .page-header-ta {
    font-size: 14pt !important;
    color: #333 !important;
  }

  /* Hero section */
  .hero {
    padding: 20pt 0 !important;
    border-bottom: 2px solid #000;
  }

  .hero h1 {
    font-size: 20pt !important;
  }

  /* Content */
  .section {
    padding: 15pt 0 !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  h1 { font-size: 18pt !important; }
  h2 { font-size: 15pt !important; }
  h3 { font-size: 13pt !important; }

  p {
    orphans: 3;
    widows: 3;
  }

  /* Tables */
  .data-table {
    border: 1px solid #000 !important;
  }

  .data-table th {
    background: #eee !important;
    border: 1px solid #000 !important;
    font-size: 10pt !important;
    padding: 6pt 8pt !important;
  }

  .data-table td {
    border: 1px solid #ccc !important;
    font-size: 10pt !important;
    padding: 6pt 8pt !important;
  }

  /* Cards — flatten for print */
  .card-grid,
  .schemes-grid,
  .stats-grid,
  .gallery-grid {
    display: block !important;
  }

  .card,
  .scheme-card,
  .stat-card {
    border: 1px solid #ccc !important;
    margin-bottom: 10pt !important;
    padding: 10pt !important;
    page-break-inside: avoid;
  }

  /* Footer - simplified */
  .site-footer {
    border-top: 2px solid #000 !important;
    padding: 10pt 0 !important;
  }

  .footer-grid {
    display: block !important;
  }

  .footer-col {
    margin-bottom: 10pt !important;
  }

  .footer-col h3 {
    border-bottom: 1px solid #000 !important;
  }

  /* Links — show URL */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555 !important;
  }

  /* Don't show URL for internal anchors */
  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  /* Maps — hide iframes */
  .map-container iframe {
    display: none !important;
  }

  .map-container::after {
    content: "Map available at dicpdk.in";
    font-style: italic;
    color: #666 !important;
  }

  /* Last updated */
  .last-updated {
    border-top: 1px solid #ccc !important;
    margin-top: 15pt !important;
    padding-top: 5pt !important;
    font-size: 9pt !important;
  }

  /* Gallery placeholders */
  .gallery-item {
    border: 1px solid #ccc !important;
    height: auto !important;
    min-height: 60px !important;
    aspect-ratio: auto !important;
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  table, figure, img {
    page-break-inside: avoid;
  }

  /* Two column — stack for print */
  .two-col {
    display: block !important;
  }
}
