/* Spausdinimo versija */
@page { margin: 16mm 14mm; }
.print-only { display: none; }
@media print {
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; line-height: 1.45; }
  html.contrast body, html.contrast * { background: #fff !important; color: #000 !important; filter: none !important; }
  * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }

  /* Paslepiama navigacija ir sąveikos elementai */
  .skip-link, .topbar, .units, .main-nav, .menu-toggle, .header-search, .mega, .drawer, .search-overlay, .consent,
  .breadcrumbs, .side-nav, .page-tools, .article__foot, .more-news, .post-navigation, .pagination, .news-filter,
  .site-footer, #wpadminbar, .survey, .staff-search, .news-card__more, .footer-badge, .btn { display: none !important; }

  /* Antraštė - tik logotipai, ne lipni */
  .sticky-head { position: static !important; box-shadow: none !important; }
  .site-header { border-bottom: 1px solid #999; margin-bottom: 8mm; }
  .site-header .container { min-height: 0 !important; padding: 0 0 4mm; }
  .brand img:first-child { width: 22mm !important; height: 22mm !important; }
  .brand__badge { height: 12mm !important; }

  /* Turinys per visą plotį */
  .container { max-width: none !important; padding: 0 !important; }
  .page-layout, .page-layout--full { display: block !important; }
  .prose, .article, .article__body { max-width: none !important; }
  .page-head { border: 0; margin: 0 0 6mm; padding: 0; }
  h1 { font-size: 20pt; color: #000 !important; }
  h2 { font-size: 15pt; color: #000 !important; break-after: avoid; }
  h3 { font-size: 12.5pt; color: #000 !important; break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  img, figure, table, tr, .docs li, .person-card, .info-card, .timeline > li { break-inside: avoid; }
  .article__hero { background: none !important; max-height: none; }
  .article__hero::before, .news-card__img::before { display: none !important; }
  .article__hero img { max-height: 120mm; }
  .prose img { max-width: 100% !important; }

  /* Nuorodos: adresas šalia tik išorinių nuorodų tekste */
  a { color: #000 !important; text-decoration: underline; }
  .prose p a[href^="http"]:not([href*="gerovescentras.lt"])::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .ext { background: none !important; color: #000 !important; border: 1px solid #000; padding: 0 3px; }
  .sr-only { display: none !important; }

  /* Dokumentų sąrašai - paprastas sąrašas */
  .docs { border: 0 !important; }
  .docs li { border-bottom: 1px solid #ccc !important; }
  .docs a { display: flex !important; gap: 4mm; padding: 2mm 0 !important; text-decoration: none; }
  .docs .file-ico { display: none !important; }
  .docs .file-name { flex: 1; }
  .docs .file-info { color: #444 !important; white-space: nowrap; }
  details.docs-year { border: 0 !important; }
  details.docs-year > summary { font-weight: 700; padding: 3mm 0 1mm; }
  details > div, details > ul { display: block !important; }
  .prose details { border: 1px solid #ccc !important; }
  .prose details > summary::after { display: none; }

  /* Lentelės */
  .table-wrap { overflow: visible !important; border: 0 !important; }
  .prose table, .staff-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .prose th, .prose td { border: 1px solid #999 !important; padding: 1.5mm 2mm !important; }
  .staff-table thead { position: static !important; width: auto !important; height: auto !important; clip: auto !important; display: table-header-group !important; }
  .staff-table, .staff-table tbody { display: table !important; width: 100%; }
  .staff-table tbody { display: table-row-group !important; }
  .staff-table tr { display: table-row !important; border: 0 !important; }
  .staff-table th, .staff-table td { display: table-cell !important; }
  .staff-table td::before { display: none !important; }

  /* Kortelės ir kiti blokai */
  .person-card, .alert, .callout, .info-card, .timeline__date { background: none !important; color: #000 !important; border: 1px solid #999; }
  .person-card__photo img { width: 30mm !important; height: auto !important; }
  .timeline::before, .timeline > li::before { border-color: #000 !important; background: #000; }
  .news-grid, .news-grid--list { grid-template-columns: repeat(2, 1fr) !important; }
  .news-card { border: 1px solid #ccc !important; transform: none !important; }

  .print-only { display: block !important; }
  .print-foot { margin-top: 10mm; padding-top: 3mm; border-top: 1px solid #999; font-size: 8.5pt; color: #333; }
  .print-foot p { margin: 0 0 1mm; }
}
