

/* Start:/local/templates/.default/css/library.css?179204656011211*/
/* Разделы «60 характеров» и «Словарь»: общее (HO 4.0, макет design/site/library/final/lib.css).
   Подключается шаблонами компонентов через $this->addExternalCss (шаблоны кэшируются).
   Цвет стихии страницы — атрибуты на article.chapter (М-22), не на html. */

/* ---------- третья краска разделов (HO 4.0: огонь и почва темнее общих токенов) ---------- */
.lib { --el: var(--ink); --el-text: var(--ink); padding-bottom: 96px; }
.lib [data-element="wood"]  { --el: #2C7A47; --el-text: #256A3D; }
.lib [data-element="fire"]  { --el: #A32A20; --el-text: #A32A20; }
.lib [data-element="earth"] { --el: #86591F; --el-text: #7A5019; }
.lib [data-element="metal"] { --el: #5F6672; --el-text: #565D68; }
.lib [data-element="water"] { --el: #245BA6; --el-text: #245BA6; }
.lib [data-el="wood"]  { --c: #2C7A47; --ct: #256A3D; }
.lib [data-el="fire"]  { --c: #A32A20; --ct: #A32A20; }
.lib [data-el="earth"] { --c: #86591F; --ct: #7A5019; }
.lib [data-el="metal"] { --c: #5F6672; --ct: #565D68; }
.lib [data-el="water"] { --c: #245BA6; --ct: #245BA6; }
.lib [data-el="ink"]   { --c: #1C1A17; --ct: #1C1A17; }

.lib .runhead { padding-top: 6px; }
.lib [data-polarity="yin"] .rule-el {
  border-top: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--el) 0 var(--hatch-s), transparent var(--hatch-s) var(--hatch-p));
  box-shadow: inset 0 -1.5px 0 var(--el), inset 0 1.5px 0 var(--el);
}
.lib .han { line-height: 1; }
.lib .chip[aria-pressed="true"] .sw--yang[data-el="ink"] { background: var(--sheet); }
.lib .chip[aria-pressed="true"] .sw--yin[data-el="ink"] { background: repeating-linear-gradient(-45deg, var(--sheet) 0 2.5px, transparent 2.5px 5px); }

.sechead { display: flex; align-items: center; gap: 20px; margin: 0 0 28px; padding-top: 24px; border-top: 4px solid var(--rule); }
.sechead h2 { font: 600 var(--fs-36)/1.15 var(--f-text); margin: 0; }
.vh-punct { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chapter__text, .chspread, .entry { word-break: keep-all; overflow-wrap: break-word; }

/* ---------- титул списков (/characters/, /glossary/) ---------- */
.titlepage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; padding: 44px 0 72px; align-items: start; }
.titlepage h1 { font: 600 var(--fs-56)/1.05 var(--f-text); letter-spacing: -.015em; text-wrap: balance; margin: 0 0 18px; }
.titlepage__sub { font: 400 var(--fs-36)/1.2 var(--f-text); margin: 14px 0 28px; color: var(--ink-2); }
.titlepage__lead { font-size: var(--fs-22); line-height: 1.4; max-width: 60ch; margin: 0; }
@media (max-width: 900px) { .titlepage { grid-template-columns: 1fr; padding: 28px 0 48px; } }
@media (max-width: 767px) {
  .titlepage h1 { font-size: var(--fs-56); }
  .titlepage__lead { font-size: var(--fs-17); }
}

/* ---------- пустой раздел ---------- */
.ixempty { display: grid; grid-template-columns: 120px 1fr; gap: 6px 24px; align-items: center; padding: 24px; margin: 0 0 32px; background: var(--sheet); border: 1px solid var(--rule); }
.ixempty .jia { grid-row: span 3; width: 120px; }
.ixempty__h { font: 600 var(--fs-36)/1.1 var(--f-text); margin: 0; }
.ixempty__p { margin: 0; font-size: var(--fs-17); }
.ixempty .btn { justify-self: start; }
@media (max-width: 767px) {
  .ixempty { grid-template-columns: 1fr; }
  .ixempty .jia { width: 96px; grid-row: auto; }
}

/* ---------- три колонки: оглавление · текст · поля ---------- */
.chapter__body, .article { --tocw: 220px; --mg: 56px; --mw: 250px; display: grid; grid-template-columns: var(--tocw) minmax(0, 640px) var(--mw); column-gap: var(--mg); padding-top: 8px; justify-content: start; }
.chapter__body > .ctoc--top, .ctoc--entry { display: none; }
.chapter__text, .entry { grid-column: 2; min-width: 0; font-size: var(--fs-17); line-height: 1.6; }
.chapter__body > .ctoc--side, .article > .ctoc--side { grid-column: 1; grid-row: 1 / span 3; top: 86px; padding-top: 6px; }
.ctoc__h { font: 400 var(--fs-22)/1.25 var(--f-text); margin: 0 0 10px; }
.ctoc__h .num { display: block; font: 400 var(--fs-14)/1.3 var(--f-text); font-feature-settings: "tnum"; font-style: normal; color: var(--ink-2); margin-bottom: 4px; }
.ctoc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.toc__sect { font-size: var(--fs-14); color: var(--el-text); }
.lib [data-polarity="yin"] .ctoc a[aria-current="true"]::before { width: 6px; background: repeating-linear-gradient(-45deg, var(--el) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--el); }
.ctoc--top { margin: 0 0 36px; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ctoc--top ol { border-top: 1px solid var(--hair); margin-bottom: 12px; }

.para-sec h2 { position: relative; font: 600 var(--fs-36)/1.15 var(--f-text); margin: 60px 0 22px; padding-top: 24px; scroll-margin-top: 96px; }
.para-sec h2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--el); }
.lib [data-polarity="yin"] .para-sec h2::before { height: 10px; top: -3px; background: repeating-linear-gradient(-45deg, var(--el) 0 var(--hatch-s), transparent var(--hatch-s) var(--hatch-p)); }
.para-sec:first-child h2 { margin-top: 0; }
.sect { display: inline-block; font: 400 var(--fs-14)/1 var(--f-text); font-feature-settings: "tnum"; color: var(--el-text); margin-right: 14px; vertical-align: 6px; }
.chapter__text p, .entry p { margin: 0 0 1em; }
.chapter__text strong, .entry strong { font-weight: 600; }
.chapter__text ul:not([class]), .entry ul:not([class]) { list-style: none; margin: 0 0 1.1em; padding: 0; }
.chapter__text ul:not([class]) > li, .entry ul:not([class]) > li { position: relative; padding-left: 1.6em; margin-bottom: .45em; }
.chapter__text ul:not([class]) > li::before, .entry ul:not([class]) > li::before { content: "—"; position: absolute; left: 0; color: var(--ink-2); }

/* ---------- глоссы на полях (широкий экран) и всплывающие ---------- */
.gloss { display: none; }
.gloss__han { display: block; font-family: var(--f-han); font-weight: var(--w-han); font-size: var(--fs-14); line-height: 1.2; color: var(--cinnabar); margin-bottom: 6px; letter-spacing: .04em; }
.gloss__term { display: block; font-weight: 600; font-size: var(--fs-14); line-height: 1.3; margin-bottom: 3px; color: var(--ink); }
.gloss__short { display: block; font-size: var(--fs-14); line-height: 1.45; color: var(--ink-2); }
.gloss__more { display: inline-block; margin-top: 4px; font-size: var(--fs-14); }
@media (min-width: 1200px) {
  [data-gloss-mode="margin"] .gloss {
    display: block; float: right; clear: right; position: relative;
    width: var(--mw); margin: 4px calc(-1 * (var(--mw) + var(--mg))) 14px 0;
    padding: 10px 0 0 14px; border-top: 1px solid var(--rule); border-left: 3px solid transparent;
    font-style: normal; text-indent: 0; text-transform: none; letter-spacing: 0; font-weight: 400;
  }
  [data-gloss-mode="margin"] .inset .gloss { margin-right: calc(-1 * (var(--mw) + var(--mg) + 32px)); }
  [data-gloss-mode="margin"] .gloss.is-hot { border-left-color: var(--cinnabar); background: var(--sheet); padding-bottom: 8px; }
  [data-gloss-mode="margin"] a.term.is-hot { background: var(--plate-a2); }
}
html.js a.term::after { content: "*"; content: "*" / ""; font: 600 .7em/1 var(--f-text); vertical-align: super; margin-left: 1px; text-decoration: none; }
@media (min-width: 1200px) { html.js [data-gloss-mode="margin"] a.term::after { content: none; } }
a.term[aria-expanded="true"] { background: var(--plate-a2); }
.gloss-pop {
  position: absolute; z-index: 40; width: min(360px, calc(100vw - 32px));
  background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: var(--sh-card-ink);
  padding: 14px 52px 10px 16px; font-size: var(--fs-17);
}
.gloss-pop::before { content: ""; position: absolute; top: -8px; left: var(--ax, 24px); width: 14px; height: 14px; background: var(--sheet); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); transform: rotate(45deg); }
.gloss-pop .gloss__short { font-size: var(--fs-14); }
.gloss-pop .gloss__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-weight: 600; font-size: var(--fs-14); }
.gloss-pop__x { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; font: 400 var(--fs-22)/1 var(--f-text); color: var(--ink); }

/* ---------- концовка: соседние главы и линейка ---------- */
.cyclenav { margin: 72px 0 0; padding-top: 28px; border-top: 4px solid var(--rule); }
.cyclenav__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.cyclenav__row a, .cyclenav__cur > span { display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 14px 0; text-decoration: none; color: var(--ink); }
.cyclenav__next a { text-align: right; align-items: flex-end; }
.cyclenav__cur > span { align-items: center; text-align: center; padding: 14px 24px; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
.cyclenav__dir { font: 600 var(--fs-14)/1.3 var(--f-text); font-feature-settings: "tnum"; color: var(--cinnabar); }
.cyclenav__cur .cyclenav__dir { color: var(--ink-2); }
.cyclenav__name { font: 600 var(--fs-22)/1.2 var(--f-text); }
.cyclenav__name .han { font-size: .8em; }
.cyclenav__row a:hover .cyclenav__name { color: var(--cinnabar); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.cyclenav__all { margin: 18px 0 0; text-align: center; font-size: var(--fs-17); }
.cyclenav__all a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 1280px) and (max-width: 1439px) { .chapter__body, .article { --tocw: 200px; --mg: 40px; --mw: 240px; } }
@media (min-width: 1200px) and (max-width: 1279px) { .chapter__body, .article { --tocw: 180px; --mg: 32px; --mw: 220px; } }
@media (max-width: 1199px) {
  .chapter__body, .article { grid-template-columns: var(--tocw) minmax(0, 680px); --tocw: 200px; --mg: 48px; }
}
@media (max-width: 1023px) {
  .chapter__body, .article { display: block; }
  .chapter__body > .ctoc--side, .article > .ctoc--side { display: none; }
  .chapter__body > .ctoc--top, .ctoc--entry { display: block; }
  .ctoc--entry { margin: 0 0 28px; }
  .chapter__text, .entry { max-width: 680px; }
}
@media (max-width: 767px) {
  .sechead { gap: 14px; }
  .sechead .stampnum { width: 40px; height: 40px; font-size: var(--fs-14); }
  .chapter__text, .entry { font-size: var(--fs-17); }
  .para-sec h2 { font-size: var(--fs-36); margin-top: 48px; }
  .cyclenav__row { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .cyclenav__cur { grid-column: 1 / -1; grid-row: 1; }
  .cyclenav__cur > span { border: 0; border-bottom: 1px solid var(--hair); padding: 4px 0 14px; }
  .cyclenav__all { text-align: left; }
}

/* End */


/* Start:/local/templates/.default/css/page-method.css?17922992785642*/
/* «Методика расчёта» (/method/) — стандарт «Печатный двор» (_dev/DESIGN.md) на раскладке статьи словаря
   (css/library.css: .article, .ctoc, .entry, .para-sec, .sect). Здесь — шапка с Цзя, врезки «Как у мастеров /
   Как у меня» и «На примере», таблицы, шаги с оттисками и финал на плашке. Кегли — токены. */

/* ---------- шапка ---------- */
.mhead { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 64px; align-items: center; padding: 36px 0 56px; }
.mhead h1 { font: 600 var(--fs-56)/1.05 var(--f-text); letter-spacing: -.015em; text-wrap: balance; margin: 0 0 20px; }
.mhead__lead { margin: 0 0 18px; max-width: 60ch; font: 400 var(--fs-22)/1.4 var(--f-text); }
.mhead__p { margin: 0 0 12px; max-width: 70ch; font: 400 var(--fs-17)/1.5 var(--f-text); }
.mhead__jia { margin: 0; justify-self: center; width: 100%; max-width: 320px; }
/* Оттиск Цзя — как плитка «О проекте»: без тёмного поля SVG, поворот −3°, тень карточки тушью. */
.mhead__box { position: relative; display: block; width: 100%; aspect-ratio: 1; transform: rotate(-3deg); }
.mhead__box::before { content: ""; position: absolute; inset: 6.5%; background: var(--ink); transform: translate(6px, 6px); }
.mhead__box img { position: relative; display: block; width: 100%; height: 100%; clip-path: inset(6.5%); }

.mpage .article { padding-top: 0; }
.mpage .para-sec h2 { scroll-margin-top: 96px; }
.mpage .entry ol.msteps { list-style: none; margin: 0 0 1.2em; padding: 0; }
.msteps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: .8em; }
.msteps .stampnum { width: 22px; height: 22px; margin-top: 3px; font: 600 var(--fs-14)/1 var(--f-text); }
.entry .han { font-family: var(--f-han); font-weight: var(--w-han); }

/* ---------- врезки ---------- */
.mbox { margin: 28px 0; max-width: 70ch; }
.mbox p { margin: 0 0 .7em; }
.mbox p:last-child { margin-bottom: 0; }
/* «Как у мастеров / Как у меня»: две строки на глубокой бумаге, подпись слева. */
.mbox--cmp { padding: 4px 20px; background: var(--paper-deep); }
.mbox--cmp div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; }
.mbox--cmp div + div { border-top: 1px solid var(--hair); }
.mbox--cmp dt { font: 600 var(--fs-14)/1.5 var(--f-text); padding-top: 2px; }
.mbox--cmp dd { margin: 0; font: 400 var(--fs-17)/1.5 var(--f-text); }
/* «На примере»: лист с тенью карточки — один вид для всех примеров страницы. */
.mbox--example { padding: 18px 22px 20px; background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: var(--sh-card-ink); }
.mbox__k { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px double var(--rule); font: 600 var(--fs-14)/1.3 var(--f-text); }
.mbox--note { padding: 12px 18px; border-left: 4px solid var(--ink); background: var(--paper-deep); }

/* ---------- таблицы: прокрутка внутри, страница не едет ---------- */
.mtable { margin: 24px 0 28px; max-width: 100%; overflow-x: auto; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.mtable:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mtable__t { width: 100%; border-collapse: collapse; font: 400 var(--fs-17)/1.4 var(--f-text); font-feature-settings: "tnum"; }
.mtable__t th, .mtable__t td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.mtable__t thead th { font: 600 var(--fs-14)/1.3 var(--f-text); color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.mtable__t tbody th { font-weight: 600; }
.mtable__t tbody tr:last-child > * { border-bottom: 0; }
.mtable__t td:last-child, .mtable__t th:last-child { padding-right: 0; }

/* ---------- концовка ---------- */
.entry .mbye { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: var(--fs-22); line-height: 1.45; }
.entry .mdisclaim { margin: 28px 0 0; max-width: 70ch; font: 400 var(--fs-14)/1.45 var(--f-text); color: var(--ink-2); }

.mfinal { --focus: var(--ink); background: var(--plate); color: var(--ink); }
.mfinal__grid { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.mfinal h2 { font: 600 var(--fs-36)/1.15 var(--f-text); text-wrap: balance; margin: 0 0 18px; }
/* На коралле текст — полужирный (4.66:1, стандарт). */
.mfinal p { margin: 0 0 28px; max-width: 46ch; font: 600 var(--fs-22)/1.4 var(--f-text); }
.mfinal .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.mfinal .btn-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }

@media (max-width: 1023px) {
  .mhead { grid-template-columns: minmax(0, 1fr); padding: 24px 0 36px; }
  .mhead__jia { display: none; }
}
@media (max-width: 767px) {
  .mhead__lead { font-size: var(--fs-17); }
  .mbox--cmp { padding: 2px 16px; }
  .mbox--cmp div { grid-template-columns: minmax(0, 1fr); }
  .mbox--example { padding: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .mtable__t { font-size: var(--fs-14); }
  .mtable__t th, .mtable__t td { padding-right: 10px; }
  .entry .mbye { font-size: var(--fs-17); }
  .mfinal p { font-size: var(--fs-17); }
  .mfinal .btn { width: 100%; }
}

/* End */
/* /local/templates/.default/css/library.css?179204656011211 */
/* /local/templates/.default/css/page-method.css?17922992785642 */
