/* The screen stays unchanged; every guide also has a composed PDF download. */
.print-only { display: none !important; }
.article-tools { flex-wrap: wrap; }
.article-export-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }

@media print {
  @page {
    size: Letter;
    margin: 0.6in 0.65in 0.65in;
    @bottom-left {
      content: "Allia Help Center";
      font-family: 'Synthese', Arial, sans-serif;
      font-size: 8pt;
      color: #3F7276;
    }
    @bottom-right {
      content: counter(page) " / " counter(pages);
      font-family: 'Synthese', Arial, sans-serif;
      font-size: 8pt;
      color: #193131;
    }
  }

  html, body, #app { margin: 0 !important; padding: 0 !important; background: #FFFFFF !important; }
  body { color: #193131 !important; font-family: 'Synthese', Arial, sans-serif; font-size: 11.5pt; line-height: 1.6; }
  #app * { box-shadow: none !important; text-shadow: none !important; }
  #app .banner { display: block !important; padding: 0 !important; background: #FFFFFF !important; }
  #app .site-header { display: block !important; position: static !important; margin: 0 0 20pt; padding: 0 0 12pt; border: 0; border-bottom: 0.5pt solid #B5D2D0; background: #FFFFFF !important; }
  #app .header-inner { width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; }
  #app .brand { gap: 12pt; color: #193131 !important; text-decoration: none; }
  #app .brand-wordmark { display: block; width: 64pt; height: 29pt; }
  #app .brand-label { padding-left: 12pt; border-color: #B5D2D0; font-size: 9pt; font-weight: 400; color: #193131; }
  #app :is(.site-footer, .header-nav, .mobile-menu, .mobile-drawer, .mobile-topic-picker,
    .inner-search, .search-shell, .topic-nav, .breadcrumbs, .article-toc, .collection-toc,
    .article-tools, .article-export-tools, .reading-controls, .module-navigation, .feedback, .support-line, .setup-progress,
    .setup-next, .help-banner, .hero-brand-art, .skip-link, dialog) { display: none !important; }
  #app :is(.page-container, .help-layout, .content-panel, .content-panel > article, .home-main) {
    display: block; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  }

  #app :is(h1, h2, h3, h4, h5, h6) { color: #091414 !important; font-weight: 600; break-after: avoid-page; page-break-after: avoid; }
  #app :is(.article-title, .collection-heading h1, .results-heading, .hero-title) { margin: 0 0 12pt; font-size: 23pt; line-height: 1.2; letter-spacing: -0.3pt; }
  #app .article-audience { margin: 0 0 10pt; font-size: 8.5pt; line-height: 1.4; color: #193131; }
  #app :is(.article-body, .article-intro, .faq-answer, .collection-summary, .hero-description) { color: #193131 !important; font-size: 11.5pt; line-height: 1.6; font-weight: 400; }
  #app .article-intro { margin: 0 0 20pt; }
  #app :is(.article-head, .collection-page-head) { margin: 0 0 18pt; padding: 0; }
  #app .article-section { margin: 0 0 18pt; padding: 0; border: 0 !important; break-inside: auto; }
  #app .article-body > .article-section + .article-section { margin-top: 18pt; padding-top: 0; }
  #app .article-body h2 { margin: 0 0 12pt; font-size: 15pt; line-height: 1.25; }
  #app .article-body h3 { margin: 12pt 0 7pt; font-size: 12pt; line-height: 1.3; }
  #app .article-body h4 { margin: 10pt 0 6pt; font-size: 10.5pt; line-height: 1.35; }
  #app :is(p, li) { orphans: 3; widows: 3; }
  #app .article-body p { margin: 0 0 12pt; }
  #app .article-body :is(ul, ol) { margin: 6pt 0 12pt; padding-left: 17pt; }
  #app .article-body li { margin: 0 0 5pt; padding-left: 2pt; }
  #app .article-body li::marker { color: #3F7276; }
  #app :is(.article-body, .article-intro) a[href] { color: #3F7276 !important; text-decoration: underline; text-decoration-thickness: 0.4pt; text-underline-offset: 2pt; overflow-wrap: anywhere; }
  #app :is(strong, b, th) { font-weight: 600; }

  #app :is(.article-note, .article-callout, .migration-callout, .article-body blockquote, .message-example) {
    margin: 12pt 0; padding: 10pt 12pt; border: 0 !important; border-left: 1.5pt solid #B5D2D0 !important;
    border-radius: 0; background: #F5FCFC !important; color: #193131 !important; font-size: 10pt; line-height: 1.45;
    break-inside: auto; print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  #app :is(.article-note, .article-callout, .migration-callout, .article-body blockquote, .message-example) p:last-child { margin-bottom: 0; }
  #app .faq { margin: 0; padding: 0; border: 0 !important; break-inside: auto; }
  #app .faq > summary { min-height: 0; margin: 11pt 0 5pt; padding: 0; color: #091414 !important; font-size: 10.5pt; font-weight: 600; line-height: 1.4; list-style: none; break-after: avoid-page; page-break-after: avoid; }
  #app .faq > summary::after, #app .faq > summary::-webkit-details-marker { display: none !important; }
  #app .faq-answer { display: block !important; margin: 0 0 10pt; padding: 0; }

  #app .table-wrap { display: block; max-width: 100%; overflow: visible; border: 0; }
  #app .article-body table { width: 100%; min-width: 0; margin: 10pt 0 14pt; border-collapse: collapse; font-size: 9pt; line-height: 1.4; }
  #app .article-body thead { display: table-header-group; }
  #app .article-body tfoot { display: table-footer-group; }
  #app .article-body tr { break-inside: avoid-page; page-break-inside: avoid; }
  #app .article-body :is(th, td) { padding: 7pt 8pt; border: 0; border-bottom: 0.5pt solid #B5D2D0; color: #193131; vertical-align: top; overflow-wrap: anywhere; }
  #app .article-body th { color: #091414; background: #E1EFF0 !important; font-weight: 600; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #app .article-body :is(pre, code) { font-size: 8.5pt; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
  #app .article-body pre { padding: 10pt 12pt; border: 0; background: #E1EFF0 !important; break-inside: auto; }

  #app .article-screenshot { margin: 10pt 0 14pt; break-inside: avoid-page; page-break-inside: avoid; }
  #app .screenshot-trigger { display: block; margin: 0; padding: 0; border: 0 !important; background: transparent; }
  #app .article-screenshot img, #app .print-gallery img { display: block; width: auto; height: auto; max-width: 100%; max-height: 6.4in; margin: 0 auto; object-fit: contain; }
  #app .article-screenshot figcaption, #app .article-screenshot .screenshot-hint { display: none !important; }
  #app .article-motion { display: block !important; margin: 8pt 0 12pt; padding: 0; border: 0; border-radius: 0; background: transparent; }
  #app .article-motion > :not(.print-media-link) { display: none !important; }
  #app :is(.article-motion-frame, .article-video-frame, video, iframe) { display: none !important; }
  #app .article-embedded-video { margin: 8pt 0 12pt; padding: 0; border: 0; background: transparent; }
  #app .article-embedded-video figcaption { display: block; margin: 0; padding: 0; font-size: 9.5pt; }
  #app .print-only { display: block !important; }
  #app .print-media-link { margin: 0; font-size: 9.5pt; }
  #app .article-visual-steps { display: block; margin: 10pt 0 14pt; }
  #app .article-visual-steps > :not(.print-gallery) { display: none !important; }
  #app .print-gallery img { margin-bottom: 12pt; break-inside: avoid-page; page-break-inside: avoid; }

  #app .hero-content { display: block; width: 100%; max-width: none; margin: 0 0 20pt; padding: 0; }
  #app .hero-introduction { width: 100%; max-width: none; margin: 0; text-align: left; }
  #app .hero-description { width: 100%; max-width: none; margin: 0 0 10pt; }
  #app .hero-purpose { margin: 0; font-size: 9pt; }
  #app .topic-family, #app .collection-group { margin: 0 0 20pt; padding: 0; border: 0; }
  #app .family-heading { margin: 0 0 10pt; }
  #app .family-heading p, #app .card-description { font-size: 10pt; line-height: 1.45; }
  #app .section-title { margin: 0 0 12pt; font-size: 15pt; }
  #app .collections-grid, #app .article-links { display: block; }
  #app .collection-card { display: block; min-height: 0; margin: 0 0 10pt; padding: 0 0 9pt; border: 0; border-bottom: 0.5pt solid #B5D2D0; border-radius: 0; background: #FFFFFF; break-inside: avoid-page; }
  #app .card-title { margin: 0 0 4pt; font-size: 11pt; }
  #app .card-description { margin: 0; }
  #app .card-icon, #app .collection-heading > .icon, #app .article-link > .icon { display: none; }
  #app .article-link { min-height: 0; margin: 0; padding: 9pt 0; border-color: #B5D2D0; font-size: 10.5pt; break-inside: avoid-page; }
  #app .article-link-title { color: #193131; }
  #app .setup-checklist > li { display: flex; gap: 8pt; margin-bottom: 9pt; break-inside: avoid-page; }
  #app .setup-checklist input[type="checkbox"] { flex: 0 0 10pt; width: 10pt; height: 10pt; margin-top: 3pt; }
}

@media print {
  #app .article-body > .article-section[hidden] { display: block !important; }
  #app .family-summary .section-title { display: block; font-size: 15pt; font-weight: 600; }
  #app .family-description { display: block; font-size: 11.5pt; line-height: 1.6; }
}

/* Native reading disclosures retain every section in the complete print view. */
@media print {
  #app .reading-controls, #app .topic-prompt { display: none !important; }
  #app .reading-module, #app .module-content, #app .family-disclosure, #app .collection-disclosure { display: block; margin: 0; padding: 0; border: 0; background: #FFFFFF; }
  #app .module-summary, #app .family-summary, #app .collection-disclosure > summary { display: block; padding: 0; margin: 0 0 9pt; list-style: none; background: #FFFFFF; }
  #app .module-summary::after, #app .family-summary::after, #app .collection-disclosure > summary::after { display: none; }
  #app .family-description { margin: 0 0 10pt; font-size: 10pt; line-height: 1.45; }
}
