/**
 * Legal Editorial Print Styles
 * Optimized for legal document printing
 */

@media print {
  /* Reset background colors and use black text */
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Base font adjustments */
  html {
    font-size: 12pt;
  }

  body {
    font-family: 'Times New Roman', Times, Georgia, serif;
    line-height: 1.4;
    margin: 0;
    padding: 0;
  }

  /* Hide non-essential elements */
  .le-sidebar,
  .le-header,
  .le-skip-link,
  .le-sidebar__toggle,
  .le-search-form,
  .le-announcement,
  .le-button,
  button,
  input[type="submit"],
  nav,
  .le-footer__nav,
  .le-auth-form__help,
  .le-form-footer__help {
    display: none !important;
  }

  /* Main content full width */
  .le-site {
    display: block !important;
  }

  .le-main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .le-container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Typography for print */
  h1 {
    font-size: 18pt;
    margin-bottom: 12pt;
  }

  h2 {
    font-size: 14pt;
    margin-bottom: 10pt;
  }

  h3 {
    font-size: 12pt;
    margin-bottom: 8pt;
  }

  p {
    font-size: 10pt;
    margin-bottom: 8pt;
    orphans: 3;
    widows: 3;
  }

  /* Links */
  a,
  a:visited {
    text-decoration: underline;
  }

  /* Show URL after external links */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 8pt;
  }

  /* Don't show URL for internal links */
  a[href^="#"]:after,
  a[href^="javascript"]:after,
  a[href^="mailto"]:after {
    content: "";
  }

  /* Cards print as simple boxes */
  .le-card {
    border: 1px solid #000 !important;
    padding: 12pt !important;
    margin-bottom: 12pt !important;
    page-break-inside: avoid;
  }

  .le-card--accent {
    border-left: 3pt solid #000 !important;
  }

  /* Alerts */
  .le-alert {
    border: 1pt solid #000 !important;
    padding: 8pt !important;
    page-break-inside: avoid;
  }

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

  /* Tables */
  table {
    border-collapse: collapse !important;
  }

  th,
  td {
    border: 1pt solid #000 !important;
    padding: 4pt !important;
  }

  /* Page breaks */
  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  .le-card,
  .le-alert,
  figure,
  table,
  pre {
    page-break-inside: avoid;
  }

  /* Footer for print */
  .le-footer {
    padding: 12pt 0 !important;
    border-top: 1pt solid #000 !important;
  }

  .le-footer__copyright {
    font-size: 8pt !important;
  }

  /* Form elements - show values */
  .le-form-input {
    border: 1pt solid #000 !important;
    padding: 4pt !important;
    min-height: 14pt;
  }

  /* Service cards for print */
  .le-service-card {
    border: 1pt solid #000 !important;
    padding: 8pt !important;
    margin-bottom: 8pt !important;
    page-break-inside: avoid;
  }

  .le-service-card__indicator,
  .le-service-card__checkbox {
    display: none !important;
  }

  .le-service-card__title {
    font-size: 11pt !important;
  }

  .le-service-card__features {
    padding-left: 16pt !important;
  }

  .le-service-card__features li {
    font-size: 9pt !important;
  }

  /* Hero section */
  .le-hero__grid {
    display: block !important;
  }

  .le-hero__sidebar {
    margin-top: 12pt;
    text-align: center;
  }

  .le-award__image {
    max-width: 150pt !important;
  }

  /* URL at bottom of page */
  @page {
    margin: 1in;
  }
}
