/* Loaded last, only on the public help and getting-started routes.
   Do not load in the Lab workspace, the Academy player, or its official PDFs. */
@media screen {
  #content > .page-hero { padding-block:clamp(1.3rem,3vw,2.35rem); }
  #content > .content-layout { padding-block:clamp(1.35rem,3vw,2.6rem); }
  .academy-current-help > section + section { margin-block-start:1.65em; }
  .academy-current-help > section > h2 { margin-top:0; }
  .academy-current-help li + li { margin-block-start:.3em; }
  .academy-current-help > nav ol { padding-inline-start:1.5em; }
  .academy-current-help > nav li { margin-block:.32em; }
  .academy-current-help > section[id] { scroll-margin-top:7rem; }
}
@media screen and (max-width:760px) {
  #content > .content-layout { row-gap:1rem; }
  #content > .page-hero .eyebrow { margin-block-end:.55rem; }
  .academy-current-help > section[id] { scroll-margin-top:5.5rem; }
}
@media print {
  /* Links inside the guide, captions and scientific limits remain content.
     The cross-site index, search tools and calls to navigate are screen chrome. */
  .site-header,.site-footer,.closing,.consent,.skip,.preview-banner,
  .page-aside,.help-nav,.help-search,.help-top,.studio-help-contents,
  .studio-help-actions,.gs-product-nav,.gs-step-nav,.original-help-index,
  .legacy-guide > aside,.uc-promo,.screenshot-expand,.help-no-results,
  .academy-current-help > nav,.page-hero .breadcrumb,.page-hero .button { display:none !important; }
  html,body,main { height:auto !important; min-height:0 !important; overflow:visible !important; }
  .content-layout,.help-layout,.legacy-guide,.gs-product-grid,.gs-file-grid,
  .studio-help-guide-grid,.lh-video-grid { display:block !important; }
  .container.content-layout,.container.help-layout,.container.legacy-guide { padding:0; margin-block:0; }
  #content .page-hero { padding:0 0 6pt !important; margin:0 0 9pt; }
  .page-hero h1 { font-size:22pt; line-height:1.12; margin:3pt 0 5pt; }
  .page-hero .eyebrow { margin:0; }
  .page-hero .lead { font-size:11pt; line-height:1.4; margin:0; }
  #content .prose,.help-chapters,.studio-help,.gs-shell {
    font-size:10.5pt; line-height:1.42; overflow:visible;
  }
  #content :is(h1,h2,h3,h4,summary,caption) { break-after:avoid-page; }
  #content .prose h2,.help-chapter h2,.studio-help h2 { margin:10pt 0 4pt; font-size:15pt; line-height:1.22; }
  #content .prose h3,.help-chapter h3,.studio-help h3 { margin:7pt 0 3pt; font-size:12pt; }
  #content :is(p,li,blockquote) { orphans:2; widows:2; }
  #content .prose p,.studio-help p,.help-chapter p { margin-block:3pt 5pt; }
  #content .prose li,.help-steps li,.studio-help-chapter li { margin-block:2pt 3pt; }
  #content :is(.help-chapter,.studio-help-chapter,.studio-help-note,.studio-help-warning,
               .help-warning,.academy-current-help section,.gs-file-grid article,.gs-product-card,
               .gs-steps > li,.legacy-topic,.lh-video-card,details) {
    break-inside:auto; page-break-inside:auto;
  }
  #content .help-chapter,.studio-help-chapter,.studio-help-versions,.studio-help-next { padding-block:6pt; margin-block:0; }
  #content .help-steps { display:block; margin-block:4pt 6pt; }
  #content .help-steps > li { line-height:1.43; margin:3pt 0 5pt; padding-left:20pt; }
  #content .help-steps > li::before { top:0; width:15pt; height:15pt; line-height:15pt; }
  #content .gs-steps > li { display:block; padding:6pt 8pt; margin:4pt 0 !important; }
  .gs-step-number { display:block; float:left; height:auto; width:auto; margin-right:6pt; }
  #content :is(.gs-file-grid article,.gs-product-card) { display:block; padding:7pt; margin-block:6pt; }
  #content .prose table,.studio-help table { display:table; min-width:0; width:100%; font-size:9pt; }
  #content :is(.studio-help-table-scroll,.table-scroll) { overflow:visible; }
  #content thead { display:table-header-group; }
  #content tr { break-inside:avoid-page; }
  #content :is(th,td) { overflow-wrap:anywhere; }
  #content :is(.help-figure,.prime-shot) { max-width:100%; margin:5pt auto; overflow:visible; }
  /* The screen's aspect-ratio box would still reserve half a page even if its
     screenshot were shorter. Use the actual image height and retain its caption. */
  #content :is(.help-figure,.prime-shot) > a { display:block; aspect-ratio:auto; height:auto; min-height:0; padding:0; overflow:visible; }
  #content :is(.help-figure,.prime-shot) img { display:block; max-width:100%; max-height:78mm; width:auto; height:auto; object-fit:contain; margin:auto; }
  #content :is(.help-figure,.prime-shot) figcaption { padding:3pt 5pt; line-height:1.3; }
  #content .prime-shot figcaption :is(strong,p) { margin-block:2pt; }
  #content figcaption { break-before:avoid-page; }
  #content details::details-content { display:block; content-visibility:visible; height:auto; }
}
