/* Site-level additions (refactor 2026-10): kept separate from the minified template CSS. */
/* Replacement for the obsolete <nobr> tag. */
.nowrap { white-space: nowrap; }

/* PDF viewer modal (moved here from an inline <style> in includes/home/pdf-modal.php). */
  /* Modal Container */
  .pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483648;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  /* Overlay (backdrop) */
  .pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  /* Content wrapper */
  .pdf-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Header */
  .pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
  }

  .pdf-modal-header h2 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
  }

  /* Close button */
  .pdf-modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
  }

  .pdf-modal-close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
  }

  /* Body (content area) */
  .pdf-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9f9f9;
  }

  /* PDF Container */
  .pdf-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .pdf-page {
    display: flex;
    justify-content: center;
    background-color: white;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .pdf-page canvas {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Loading indicator */
  .pdf-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1em;
    color: #666;
  }

  /* Error message */
  .pdf-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #c62828;
  }

  /* Mobile responsive */
  @media (max-width: 768px) {
    .pdf-modal-content {
      width: 95%;
      height: 95vh;
      border-radius: 4px;
    }

    .pdf-modal-header h2 {
      font-size: 1.1em;
    }

    .pdf-modal-body {
      padding: 10px;
    }

    .pdf-page {
      padding: 5px;
    }
  }

  @media (max-width: 480px) {
    .pdf-modal-content {
      width: 100%;
      height: 100vh;
      border-radius: 0;
    }

    .pdf-modal-header {
      padding: 15px;
    }

    .pdf-modal-close-btn {
      font-size: 24px;
      width: 36px;
      height: 36px;
    }
  }
