/* The download row belongs to the article. Book styles only apply in its separate document. */
.article-export { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 18px 0 28px; color: var(--steel); font: 400 14px/1.5 var(--font-body); }
.article-export__download, .article-export__print { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.article-export__download .ui-arrow { width: 16px; height: 16px; }
.article-export__print { padding: 0; border: 0; background: none; cursor: pointer; }
.article-export [hidden] { display: none !important; }
.article-export :is(a,button):focus-visible { outline: 2px solid var(--steel); outline-offset: 4px; }
.article-export__status { flex-basis: 100%; max-width: 55ch; margin: 0; font-size: 13px; }
.article-export [aria-busy="true"] { cursor: progress; }

@page article-book {
  size: A5;
  background: #F2F0E9;
  margin: 16mm 13mm 17mm;
  @top-left { content: 'chebaturkin.com'; font: 8pt 'Inter'; color: #2E3A4D; vertical-align: middle; }
  @bottom-left { font: 7.5pt 'Inter'; color: #2E3A4D; vertical-align: middle; }
  @bottom-right { content: counter(page) ' / ' counter(pages); font: 8pt 'Inter'; color: #2E3A4D; vertical-align: middle; }
}
.pdf-page { margin: 0; padding: 0; background: var(--bone); color: var(--ink); font: 400 11pt/1.56 var(--font-body); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pdf-page *, .pdf-page *::before, .pdf-page *::after { box-sizing: border-box; animation: none !important; transition: none !important; }
.pdf-document { page: article-book; position: relative; margin: 0; padding: 0; width: auto; max-width: none; overflow-wrap: break-word; }
.pdf-title { margin: 0 0 7mm; padding: 0 0 5mm; border-bottom: 1px solid var(--taupe); break-inside: avoid; }
.pdf-title h1 { margin: 0 0 5mm; color: var(--ink); font: 700 20pt/1.28 var(--font-display); letter-spacing: -.04em; text-transform: none; overflow-wrap: normal; }
.pdf-title .pdf-lead { margin: 0 0 4mm; color: var(--steel); font: 400 12pt/1.5 var(--font-body); }
.pdf-title .pdf-lead p { font: inherit; margin: 0 0 3mm; }
.pdf-title .pdf-author { margin: 4mm 0 0; color: var(--steel); font-size: 9pt; }
.pdf-document :is(p,ul,ol,blockquote):not(.pdf-visual *) { margin: 0 0 3.5mm; font-size: 11pt; line-height: 1.56; }
.pdf-document :is(h2,h3,h4):not(.pdf-visual *) { margin: 7mm 0 3mm; color: var(--ink); font-family: var(--font-body); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; text-transform: none; break-after: avoid; }
.pdf-document h2:not(.pdf-visual *) { font-family: var(--font-display); font-size: 13pt; font-weight: 700; line-height: 1.4; }
.pdf-document h3:not(.pdf-visual *) { font-size: 13pt; }
.pdf-document h4:not(.pdf-visual *) { font-size: 11pt; }
.pdf-document :is(ul,ol):not(.pdf-visual *) { padding-left: 5mm; list-style-position: outside; }
.pdf-document ul:not(.pdf-visual *) { list-style-type: disc; }
.pdf-document ol:not(.pdf-visual *) { list-style-type: decimal; }
.pdf-document li:not(.pdf-visual *) { margin-bottom: 1.5mm; }
.pdf-document li > p:not(.pdf-visual *) { margin-bottom: 1.5mm; }
.pdf-document a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.pdf-document blockquote:not(.pdf-visual *) { padding: 0 0 0 4mm; border-left: 2px solid var(--steel); }
.pdf-document :is(p,li) { orphans: 3; widows: 3; }
.pdf-document :is(img,svg) { max-width: 100%; }
.pdf-document img:not(.pdf-visual *) { display: block; width: auto; max-height: 145mm; object-fit: contain; margin: 4mm auto; break-inside: avoid; }
.pdf-document pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 9pt/1.5 var(--font-mono); }
.pdf-document table { width: 100%; border-collapse: collapse; font-size: 9pt; line-height: 1.45; }
.pdf-document :is(th,td) { padding: 2.5mm; border: 1px solid var(--taupe); text-align: left; vertical-align: top; }
.pdf-document tr { break-inside: avoid; }
.pdf-document thead { display: table-header-group; }
.pdf-document :is(.entry-page__body,.bc-table-wrap,.bc-body,.bc-prose,.bc-section,.ew-reading,.ew-guide,.ew-examples,.ew-example,.ew-intro,.ew-telegram,.slop-intro,.slop-catalog,.slop-section__head) { display: block; max-width: none; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; font: inherit; }
.pdf-document :is(.ew-comparison,.ew-specimens) { display: block; margin: 4mm 0; }
.pdf-document :is(.ew-comparison > section,.ew-specimen) { margin: 0 0 4mm; padding: 0 0 0 4mm; border: 0; border-left: 1px solid var(--taupe); background: none; }
.pdf-document :is(.ew-annotations,.ew-example__conclusion) { margin: 4mm 0; padding: 0; }
.pdf-document .ew-annotations ol { display: block; }
.pdf-document .ew-annotations li { display: list-item; margin: 0 0 3mm; padding: 0; }
.pdf-document .ew-note-number { display: none; }
.pdf-document .ew-proof { display: block; padding: 0; }
.pdf-document :is(.ew-proof,.ew-limit,.ew-fiction-note) { color: var(--steel); font-size: 9pt; }
.pdf-document .slop-specimen { display: block; margin: 0; padding: 0; border: 0; break-inside: avoid; break-before: page; }
.pdf-document .slop-specimen > h3 { margin: 0 0 5mm; font: 700 14pt/1.4 var(--font-display); }
.pdf-document .slop-specimen__copy p { margin-bottom: 2mm; font-size: 10pt; }
.pdf-document .slop-specimen__sample { margin: 0; }
.pdf-document .slop-specimen__sample .pdf-visual { margin: 2mm 0 0; }
.slop-specimen .pdf-visual > figcaption { display: none; }
.pdf-document .pdf-demo { break-before: page; break-inside: avoid; }
.pdf-document .pdf-demo > h3 { margin-top: 0; }
.pdf-document .pdf-demo p { margin-bottom: 2mm; font-size: 9pt; line-height: 1.4; }
.pdf-demo .pdf-visual > figcaption { display: none; }
.pdf-demo .pdf-visual__image { max-height: 112mm; }
.pdf-visual { display: block; margin: 5mm 0 6mm; padding: 0; width: 100%; break-inside: avoid; }
.pdf-visual > figcaption { margin: 0 0 2mm; color: var(--steel); font: 500 10pt/1.4 var(--font-body); break-after: avoid; }
.pdf-visual__scene { position: relative; display: flow-root; padding-bottom: 24px; background: var(--bone); overflow: hidden; }
.pdf-visual__scene::after { content: 'Тимофей Чебатуркин · chebaturkin.com'; position: absolute; inset: auto 0 0; padding: 5px 8px; background: var(--bone); color: var(--steel); text-align: right; font: 400 10px/1.4 var(--font-body); }
html[lang='en'] .pdf-visual__scene::after { content: 'Timofey Chebaturkin · chebaturkin.com'; }
.pdf-visual__scene > :is(.article-visual,.bc-scene) { margin: 0; }
.pdf-visual__scene :is(.av-controls,.av-guide-switch,.bc-switches,.bc-reveal) { display: none !important; }
.pdf-visual__scene iframe { display: block; width: 100%; height: 280px; border: 0; pointer-events: none; }
.pdf-visual[data-pdf-visual^='demo-'] iframe { height: 440px; }
.pdf-visual__image { display: block; width: 100%; height: auto; max-height: 143mm; object-fit: contain; object-position: left top; }
.pdf-worksheet { margin: 6mm 0; }
.pdf-worksheet__field { margin: 4mm 0; break-inside: avoid; }
.pdf-worksheet__field::after { content: ''; display: block; height: 14mm; margin-top: 2mm; border-bottom: 1px solid var(--taupe); }
.pdf-worksheet__field:has(.pdf-write-lines)::after { display: none; }
.pdf-write-lines span { display: block; height: 5mm; border-bottom: 1px solid var(--taupe); }
.pdf-document .pdf-worksheet__field p { color: var(--steel); font-size: 9pt; }
.pdf-document .pdf-colophon { margin: 8mm 0 0; padding: 4mm 0 0; border-top: 1px solid var(--taupe); break-inside: avoid; }
.pdf-document .pdf-colophon p { margin: 0 0 2mm; color: var(--steel); font-size: 8.5pt; line-height: 1.5; }
.pdf-colophon__author { font-weight: 600; }
.pdf-watermark { position: fixed; z-index: 5; top: 65%; left: 50%; width: 100mm; transform: translate(-50%,-50%) rotate(-25deg); color: var(--steel); opacity: .025; pointer-events: none; text-align: center; white-space: nowrap; font: 500 22pt/1 var(--font-body); }
.pdf-ending { margin-top: 9mm; break-before: page; }
.pdf-ending .article-next { margin: 0 0 7mm; padding: 0; border: 0; }
.pdf-ending .article-next h2 { margin-top: 0; }
.pdf-ending .article-next__write { display: block; width: fit-content; margin: 4mm 0 3mm; font-weight: 600; }
.pdf-ending .article-next__studio { font-size: 9pt; }
.pdf-ending .article-next .ui-arrow { display: none; }
.pdf-more { padding-top: 5mm; border-top: 1px solid var(--taupe); }
.pdf-more h2 { margin-top: 0 !important; }
.pdf-more__link { font-size: 12pt; font-weight: 600; }
.pdf-document .pdf-vpn { margin-top: 3mm; font-size: 9pt; color: var(--steel); }
.pdf-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 auto 24px; max-width: 148mm; color: var(--steel); font: 14px/1.5 var(--font-body); }
.pdf-toolbar button { padding: 12px 16px; border: 1px solid var(--steel); border-radius: 6px; background: var(--steel); color: var(--bone); cursor: pointer; font: inherit; }
.pdf-toolbar a { color: inherit; text-decoration: underline; }
@media screen {
  .pdf-page { padding: 24px 16px; }
  .pdf-document { width: 148mm; max-width: 100%; min-height: 210mm; padding: 16mm 13mm; margin: 0 auto; border: 1px solid var(--taupe); }
}
@media print {
  .article-export, .pdf-toolbar { display: none !important; }
  .pdf-page { overflow: visible !important; }
  .pdf-document { border: 0; padding: 0; }
}
