/**
 * Help Center print styles — Addgene / Zendesk Guide
 * Loaded with media="print" only; does not affect on-screen layout.
 */

@page {
  margin: 1.25cm;
}

@media print {
  html {
    font-size: 12pt;
  }

  /* Print-only header containing logo and horizontal rule */
  .print-header {
    margin: 0 0 8mm;
  }

  .print-header-logo {
    display: block;
    max-width: 200px;
    height: auto;
    padding: 0 6mm;
  }

  .print-header-rule {
    border: 0;
    border-bottom: 1px solid #000;
    width: 100%;
    margin: 4mm 0 0;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  h4,
  h5,
  h6 {
    font-size: 1.3rem !important;
  }

  /* Prefer legible links on paper */
  a,
  a:visited {
    color: #004ad6 !important;
    text-decoration: underline;
  }

  a[href]:after {
    content: none !important;
  }

  /* Reinforce Bootstrap’s .hidden-print if styles fail to load */
  .hidden-print,
  .print-hidden {
    display: none !important;
  }

  /* Third-party / non-content */
  noscript iframe,
  script,
  video,
  audio,
  .embed-responsive {
    display: none !important;
  }

  /* Account / Guide chrome */
  .user-nav,
  .collapsible-nav,
  .my-activities-nav,
  .my-activities-sub-nav,
  .profile-nav,
  .profile-section-sorter,
  .section-subscribe,
  .community-follow,
  .actions,
  .dropdown-menu,
  .pagination,
  .see-all-sections-trigger,
  .powered-by-zendesk {
    display: none !important;
  }

  /* Header: keep logo row, drop marketing and search */
  .header .public-site-link,
  header .top-header-container,
  #search-container,
  .header .nav-tab-container,
  #help-center-main-nav {
    display: none !important;
  }

  /* Breadcrumbs only in sub-nav (no scoped search form) */
  .sub-nav {
    display: block !important;
    min-height: 0 !important;
    padding: 0 0 0.5rem 0 !important;
    margin-top: 2rem !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1px solid #ddd;
  }

  .sub-nav a {
    font-size: 12pt !important;
  }

  .breadcrumbs li + li::before {
    font-size: 12pt !important;
  }

  .sub-nav form,
  .sub-nav .search,
  .sub-nav input[type="search"],
  .sub-nav input[type="submit"] {
    display: none !important;
  }

  .container-divider {
    display: none !important;
  }

  section.section.knowledge-base {
    margin-top: 2rem !important;
  }
  
  /* Article layout: single column, full width */
  .article-container {
    display: block !important;
    max-width: none !important;
  }

  .article-sidebar,
  .article-relatives,
  .recent-articles,
  .related-articles,
  .article-votes,
  .article-share,
  .article-footer,
  .article-return-to-top,
  .article-more-questions,
  .article [role="button"] {
    display: none !important;
  }

  .article {
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .article-header {
    margin-top: 0 !important;
    page-break-after: avoid;
  }

  .article-title {
    font-size: 18pt !important;
    line-height: 1.25 !important;
    color: #000 !important;
  }

  .article-body {
    max-width: none !important;
  }

  .article-body img,
  .article-body svg,
  .post-body img,
  .post-body svg {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  .article-body pre,
  .article-body blockquote,
  .article-body table,
  .post-body pre,
  .post-body blockquote,
  .post-body table {
    page-break-inside: avoid;
  }

  .article-body h1,
  .article-body h2,
  .article-body h3,
  .article-body h4,
  .post-body h1,
  .post-body h2,
  .post-body h3,
  .post-body h4 {
    page-break-after: avoid;
    color: #000 !important;
  }

  /* Community */
  .vote,
  .post-actions-wrapper,
  .post-share,
  .post-sidebar,
  .community-footer,
  .comment-form,
  .comment-sorter,
  .comment-show-container,
  .comment-actions-container,
  .post-comments {
    display: none !important;
  }

  .post-container {
    display: block !important;
    max-width: none !important;
  }

  .post-content {
    max-width: none !important;
  }

  /* Tickets / forms: hide interactive chrome, keep readable thread */
  .request-sidebar,
  .request-follow-up,
  .mark-as-solved,
  .request-submit-comment,
  .upload-dropzone {
    display: none !important;
  }

  .request-main {
    width: 100% !important;
    max-width: none !important;
  }

  /* Lists & home: allow natural breaks */
  .blocks-list,
  .article-list,
  .section-list,
  .search-results-list {
    page-break-inside: auto;
  }

  .blocks-item,
  .article-list-item,
  .section-list-item,
  .search-results-list > li {
    page-break-inside: avoid;
  }

  /* Headings on section/category/search */
  .page-header {
    page-break-after: avoid;
  }

  h1,
  h2,
  h3 {
    color: #000 !important;
  }

  /* Reduce decorative shadows that waste ink */
  .panel,
  .blocks-item-link,
  .search-result {
    box-shadow: none !important;
  }
}
