/* ============================================================
   ExpatCalc — Print Stylesheet
   ============================================================ */

@media print {
  /* Hide non-essential elements */
  .site-header,
  .lang-switcher,
  .breadcrumb,
  .ad-slot,
  .ad-leaderboard,
  .ad-rectangle,
  .ad-inarticle,
  .form-actions,
  .result-actions,
  .hamburger,
  .mobile-nav,
  .site-footer,
  .faq-list,
  .country-section,
  .why-section,
  .lang-section,
  .hero-actions,
  .info-bar { display: none !important; }

  /* Reset page for print */
  * { box-shadow: none !important; }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }
  .container { max-width: 100%; padding: 0; }

  /* Calculator stacks to single column */
  .calculator-layout {
    display: block !important;
  }
  .input-panel {
    page-break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    padding: 1rem;
  }
  .result-panel {
    padding-left: 0 !important;
    border-left: none !important;
  }

  /* Primary result */
  .result-primary {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    padding: 1rem;
    page-break-inside: avoid;
  }
  .result-primary-label { color: #555 !important; }
  .result-primary-amount {
    color: #000 !important;
    font-size: 2rem !important;
  }
  .result-primary-note { color: #555 !important; }

  /* Breakdown table */
  .result-breakdown {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  .breakdown-row { border-bottom: 1px solid #ddd; }

  /* Print header with site name */
  .calc-page::before {
    content: 'ExpatCalc — expatcalc.com';
    display: block;
    font-size: 9pt;
    color: #777;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #ddd;
  }

  /* Print footer */
  .calc-page::after {
    content: 'Disclaimer: This calculation is for guidance only. Consult a qualified legal or financial professional for your specific situation.';
    display: block;
    font-size: 8pt;
    color: #888;
    margin-top: 2rem;
    padding-top: .75rem;
    border-top: 1px solid #ddd;
  }

  /* Tables */
  .data-table { border-collapse: collapse; }
  .data-table th { background: #333 !important; color: #fff !important; }
  .data-table td { border: 1px solid #ddd; }

  /* Page breaks */
  h2, h3 { page-break-after: avoid; }
  .notice, .result-breakdown { page-break-inside: avoid; }

  /* Links */
  a::after {
    content: ' (' attr(href) ')';
    font-size: .8em;
    color: #555;
  }
  a[href^="#"]::after,
  a[href^="javascript"]::after { content: ''; }

  /* RTL print */
  html[dir="rtl"] .calc-page::after {
    content: 'إخلاء المسؤولية: هذه الحسابات للإرشاد فقط. يُنصح باستشارة محامٍ متخصص.';
  }
}
