/* ============================================================
   PRINT — печать статей и страниц (подключается media="print",
   не блокирует первичный рендер)
   ============================================================ */

html,
body {
  height: auto;
  overflow: visible;
  background: #fff;
  color: #000;
}
.titlebar,
.skip-link,
#view-status {
  display: none !important;
}

.app {
  display: block;
  height: auto;
}
.main,
.content-area,
.view,
.view-inner,
.tools-home,
.tool-page,
.cheatsheets-home,
.cs-page,
.profile-home {
  display: block !important;
  overflow: visible !important;
  height: auto !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.profile-hero h1,
.tools-title,
.tool-title,
.cs-title,
.cs-hero-title {
  color: #000 !important;
}
.profile-home .profile-bio p,
.cs-card-desc,
td {
  color: #222 !important;
}

a {
  color: #000;
  text-decoration: underline;
}
a[href^="http"]::after {
  content: " (" attr(href) ")";
  font-size: 11px;
  color: #555;
}

th {
  background: #eee;
  color: #000;
}
table,
th,
td {
  border-color: #ccc;
}

pre,
.cs-card-code,
.ipt-result-command {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-left: 3px solid #666;
  color: #000;
}
pre code {
  color: #000;
}
pre .cm {
  color: #666;
}

.cert,
.edu-card,
.stack-group,
.exp-item,
.tool-card,
.tool-result,
.cs-card,
.cs-index-card {
  box-shadow: none !important;
  page-break-inside: avoid;
  border-color: #ccc;
}

.cs-card,
.cs-index-card {
  content-visibility: visible;
}

h1,
h2,
h3 {
  page-break-after: avoid;
}
p,
li,
pre,
table,
.exp-item,
.tool-result,
.cs-card {
  page-break-inside: avoid;
}
