main {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
main :is(a[href], input, textarea, select, [contenteditable]:not([contenteditable="false"])) {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.page-print {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 16px;
  margin-block: 0 24px;
  border: 1px solid #dce8e6;
  border-radius: 10px;
  background: #f5faf9;
}
.page-print p { margin: 0; color: var(--muted); }
.page-print .print-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid #b8d5cf;
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  font: inherit;
  font-weight: 700;
}
.page-print .print-page:hover { background: #ebf6f3; }

@media print {
  @page { margin: 16mm; }
  .top, .footer, .skip, .crumb, .reader-end, .related-study, .page-print,
  .study-contents-desktop, .study-contents-mobile, .hero-search, .filters,
  .more-wrap, .topic-quiz-actions, .assessment-actions, .video-play,
  .video-channel-band, .ad-slot, button, iframe, video { display: none !important; }
  main::before {
    content: "StudyResearch.in";
    display: block;
    margin-bottom: 12pt;
    font: 700 10pt/1.2 var(--sans);
  }
  body, main, main section, main article, main aside {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .wrap, .reader article, .study-content { width: 100%; max-width: none; margin: 0; }
  .reader, .reader article { min-height: 0; padding: 0; border: 0; }
  .study-layout { display: block; }
  .hero .wrap { min-height: 0; }
  .hero-copy { max-width: none; padding: 0; }
  .hero-art, .hero-copy .primary { display: none; }
  .hero .kicker, .hero .hero-copy p { color: #000 !important; }
  main h1, main h2, main h3 { color: #000 !important; break-after: avoid; }
  main p, main li { orphans: 3; widows: 3; }
  main figure, main tr, .resource-card { break-inside: avoid; }
  main img, main table { max-width: 100%; }
  .table-scroll { overflow: visible; }
}
