

/* Start:/local/components/mrlexndr/bazi.characters/templates/.default/style.css?179204656026856*/
/* «60 характеров»: титул и таблица списка, разворот и разделы главы (макет design/site/library/final/lib.css).
   Общее с словарём — /local/templates/.default/css/library.css. Цвет стихии главы — .chapter[data-element] (М-22). */

/* ==========================================================================
   /characters/ — титул (общие правила .titlepage — library.css)
   ========================================================================== */
.titlepage__jump { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 22px 0 0; }
.titlepage__jump a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Бланк поиска — карточка стандарта: лист, тушь 1.5 px, жёсткая тень тушью; поля — .form-boxed. */
.finder { position: relative; background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: var(--sh-card-ink); padding: 22px 28px 24px; margin-top: 8px; }
html:not(.js) .finder { display: none; }
.finder__h { font: 600 var(--fs-36)/1.1 var(--f-text); margin: 0 0 18px; }
/* селектор усилен: общий CSS шаблона грузится позже и с той же специфичностью перебивал правило */
.finder .input, .finder .input[type="date"] { min-height: 52px; font-size: var(--fs-17); }
.finder__late { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 10px; font-size: var(--fs-17); cursor: pointer; }
.finder__late input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin: 0; }
.finder__hint { font-size: var(--fs-14); line-height: 1.45; color: var(--ink-2); margin: 2px 0 16px; }
.finder__err { font-size: var(--fs-14); font-weight: 600; color: var(--err); background: var(--err-bg); padding: 8px 12px; margin: 0 0 14px; }
.finder__err[hidden] { display: none; }
.finder .btn { width: 100%; }
.finder__res { margin: 16px 0 0; font-size: var(--fs-17); }
.finder__res:empty { display: none; }
/* Результат: кто вы в цикле, строка Цзя, «Читать главу», ссылка на главу и мостик к пробе. */
.finder__res .res { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: 16px 0 4px; border-top: 1px solid var(--rule); }
.finder__res .res > * { grid-column: 2; }
.finder__res img { grid-column: 1; grid-row: 1 / span 3; width: 72px; height: 72px; }
.finder__res .res__name { font: 600 var(--fs-22)/1.2 var(--f-text); }
.finder__res .res__k { font: 400 var(--fs-14)/1.3 var(--f-text); color: var(--ink-2); }
.finder__res .res__line { margin-top: 6px; font: 400 var(--fs-17)/1.45 var(--f-text); }
.finder__res .res__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.finder__res .res__acts .btn { width: auto; }
.finder__res .res__acts .btn-link { min-height: 44px; }
.finder__res .res__st { font: 600 var(--fs-14)/1.3 var(--f-text); }
.finder__res .res__st:empty { display: none; }
.finder__res .res__probe { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 600; }
.finder__safe { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; font-size: var(--fs-14); color: var(--ink-2); }

/* ---------- таблица шестидесяти ---------- */
.t60sec { padding-bottom: 72px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0 0 18px; }
.filters[hidden] { display: none; }
.filters__h { width: 100%; margin: 0; font: 600 var(--fs-14)/1.3 var(--f-text); color: var(--ink); }
.filters__grp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__k { font: 400 var(--fs-17)/1 var(--f-text); margin-right: 4px; }
.filters .select { width: auto; min-width: 190px; min-height: 44px; font-size: var(--fs-17); }
.filters__out { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.filters__count { font: 400 var(--fs-14)/1.3 var(--f-text); font-feature-settings: "tnum"; }
.t60__found { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0 0 14px; font: 400 var(--fs-22)/1.3 var(--f-text); }
.t60__found[hidden] { display: none; }
.t60__found a { font: 600 var(--fs-17)/1 var(--f-text); font-style: normal; display: inline-flex; align-items: center; min-height: 44px; }

.t60wrap { overflow-x: auto; overflow-y: hidden; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.t60 { width: 100%; min-width: 980px; border-collapse: collapse; table-layout: fixed; }
.t60__cap { margin: 14px 0 0; font: 400 var(--fs-17)/1.4 var(--f-text); color: var(--ink); max-width: 60em; }
.t60__corner { width: 172px; padding: 10px 12px 10px 0; vertical-align: bottom; position: sticky; left: 0; z-index: 2; background: var(--paper); }
.t60__corner .num { font-size: var(--fs-14); color: var(--ink-2); }
.t60__colh { padding: 12px 2px 10px; font: 400 var(--fs-14)/1.2 var(--f-text); text-align: center; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.t60__colh .han { display: block; font-size: var(--fs-22); margin-bottom: 6px; color: var(--ink); }
.t60__rowh { position: sticky; left: 0; z-index: 1; background: var(--paper); text-align: left; padding: 0 10px 0 0; font: 400 var(--fs-14)/1.2 var(--f-text); border-bottom: 1px solid var(--hair); border-right: 1px solid var(--rule); }
.t60__rowh .sw { width: 22px; height: 22px; margin-right: 10px; vertical-align: middle; }
.t60__rowh .sw--yin { background: repeating-linear-gradient(-45deg, var(--c) 0 3px, transparent 3px 6px); border-width: 2px; }
.t60__rowtxt { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; vertical-align: middle; max-width: 120px; }
.t60__rowtxt .han { font-size: var(--fs-22); color: var(--ct); }
.t60__rowtxt > span:nth-child(2) { color: var(--ct); font-weight: 600; }
.t60__form { width: 100%; font-size: var(--fs-14); color: var(--ink-2); margin-top: 3px; }
.t60 td { position: relative; height: 66px; padding: 0; border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); text-align: center; }
.t60 td:last-child { border-right: 0; }
.t60__day a { position: relative; display: grid; place-items: center; width: 100%; height: 66px; color: var(--ink); text-decoration: none; }
.t60__day a:hover, .t60__day a:focus-visible { background: var(--sheet); }
.t60__day a:focus-visible { outline-offset: -3px; }
.t60__han { font-size: var(--fs-22); letter-spacing: .02em; }
.t60__n { position: absolute; right: 6px; top: 4px; font-size: var(--fs-14); color: var(--ink-2); }
.t60__day::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.t60__day[data-pol="yin"]::before { width: 4px; background: repeating-linear-gradient(-45deg, var(--c) 0 2px, transparent 2px 4px); }
.t60__empty { color: var(--ink-2); }
.t60__dot { font-size: var(--fs-22); opacity: .5; }
.t60__nil { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.t60__ring { position: absolute; left: -6px; top: -4px; width: calc(100% + 12px); height: calc(100% + 8px); fill: none; stroke: var(--cinnabar); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; pointer-events: none; z-index: 3; }
/* Кольцо последнего столбца не выходит за таблицу (иначе лишняя полоса прокрутки на 6 px). */
.t60 td:last-child .t60__ring { width: calc(100% + 6px); }
.t60__day.is-found .t60__ring { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 360ms ease-out; }
.t60__day.is-found a { background: var(--sheet); }
.t60.is-filtered tbody td { opacity: .28; }
.t60.is-filtered td.is-match { opacity: 1; }
.t60.is-filtered td.is-match a { box-shadow: inset 0 0 0 2px var(--ink); background: var(--sheet); }
.t60.is-filtered td.is-void { opacity: 1; background: repeating-linear-gradient(-45deg, rgba(28, 26, 23, .14) 0 2px, transparent 2px 8px); box-shadow: inset 0 0 0 2px var(--cinnabar); }
.t60.is-filtered td.is-void .t60__dot { opacity: 1; color: var(--cinnabar); font-weight: 600; }
.t60.is-filtered td.is-void .t60__nil { width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; left: 4px; right: 4px; bottom: 6px; font: 600 var(--fs-14)/1.15 var(--f-text); color: var(--err); }
.t60__swipe { display: none; margin: 8px 0 0; font: 400 var(--fs-17)/1.3 var(--f-text); color: var(--ink-2); }
.t60__empty-note { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; margin: 18px 0 0; padding: 16px 20px; background: var(--sheet); border-left: 4px solid var(--cinnabar); }
.t60__empty-note[hidden] { display: none; }
.t60__empty-note .jia { width: 96px; grid-row: span 3; }
.t60__empty-note .en__h { font: 600 var(--fs-22)/1.2 var(--f-text); margin: 0; }
.t60__empty-note p { margin: 0; font-size: var(--fs-17); }
.t60__empty-note button { justify-self: start; }

.preview { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; min-height: 128px; margin: 0 0 18px; padding: 14px 0; border-top: 1px solid var(--rule); }
.preview__img { width: 96px; height: 96px; }
.preview__img[hidden] { display: block !important; visibility: hidden; }
.preview__name { font: 600 var(--fs-22)/1.2 var(--f-text); margin: 0 0 6px; }
.preview__name .num { font-size: var(--fs-14); color: var(--ink-2); margin-right: 8px; }
.preview__line { font: 400 var(--fs-22)/1.4 var(--f-text); margin: 0; max-width: 46em; color: var(--ink-2); }

/* ---------- оглавление: пять частей ---------- */
.contents { padding-bottom: 24px; }
.contents__note { font: 400 var(--fs-22)/1.4 var(--f-text); margin: -8px 0 28px; max-width: 40em; }
.contents__empty { margin: 0 0 28px; padding: 16px 20px; background: var(--sheet); border-left: 3px solid var(--cinnabar); max-width: 40em; }
.contents__empty[hidden] { display: none; }
.contents__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; align-items: start; }
.part { min-width: 0; }
.part[hidden] { display: none; }
.part__sum { display: flex; align-items: baseline; gap: 10px; min-height: 48px; padding: 0 0 10px; border-bottom: 2px solid var(--rule); list-style: none; cursor: pointer; }
.part__sum::-webkit-details-marker { display: none; }
.part__no { font: 400 var(--fs-22)/1 var(--f-text); color: var(--ink-2); }
.part__name { font: 600 var(--fs-36)/1 var(--f-text); }
.part__sum .sw { align-self: center; }
.part__count { margin-left: auto; font-size: var(--fs-14); color: var(--ink-2); }
.toc60 { list-style: none; margin: 0; padding: 0; }
.toc60 li { scroll-margin-top: 96px; }
.toc60 li[hidden] { display: none; }
.toc60 a { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 0 4px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); }
.toc60 a:hover { color: var(--cinnabar); }
.toc60 a:hover .toc60__name { text-decoration: underline; text-underline-offset: .18em; }
.toc60__n { font-size: var(--fs-14); color: var(--ink-2); width: 24px; flex: none; }
.toc60__han { font-size: var(--fs-17); flex: none; }
.toc60__name { font-size: var(--fs-17); }
.toc60__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--ink-2); transform: translateY(-4px); opacity: .55; }
.toc60__pg { font-size: var(--fs-14); }
.toc60 li:target a, .toc60 li.is-target a { background: var(--sheet); box-shadow: inset 3px 0 0 var(--cinnabar); padding-left: 8px; }

/* Мостик к пробе — коралловая плашка с жёсткой тенью тушью; текст на коралле полужирный (4.66:1). */
.afterword { position: relative; background: var(--plate); color: var(--ink); padding: 26px 28px 28px; border: 1.5px solid var(--ink); box-shadow: var(--sh-card-ink); align-self: start; display: flex; flex-direction: column; margin-top: 10px; }
.afterword__h { font: 600 var(--fs-36)/1.1 var(--f-text); margin: 0 0 14px; }
.afterword p { font-size: var(--fs-17); font-weight: 600; }
.afterword .btn { align-self: flex-start; margin-top: 8px; }
.afterword__small { margin: 14px 0 0; font-size: var(--fs-14); }

@media (max-width: 1100px) {
  .t60__swipe { display: block; }
  .contents__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .finder { padding: 18px 18px 20px; }
  .filters { gap: 10px 16px; }
  .filters__out { margin-left: 0; width: 100%; }
  .t60__corner, .t60__rowh { width: 112px; }
  .t60__rowtxt { max-width: 80px; }
  .t60__rowh .sw { display: none; }
  .t60 { min-width: 860px; }
  .t60__empty-note { grid-template-columns: 64px minmax(0, 1fr); padding: 14px 14px 16px; gap: 10px 14px; }
  .t60__empty-note .jia { width: 64px; grid-row: auto; }
  .t60__empty-note .en__h { font-size: var(--fs-22); align-self: center; }
  .t60__empty-note p:not(.en__h), .t60__empty-note button { grid-column: 1 / -1; }
  .preview { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .preview__img { width: 72px; height: 72px; }
  .preview__name { font-size: var(--fs-22); }
  .preview__line { font-size: var(--fs-17); }
  .contents__grid { grid-template-columns: 1fr; gap: 0; }
  .part { border-bottom: 1px solid var(--rule); }
  .part__sum { border-bottom: 0; padding: 12px 0; min-height: 56px; }
  .part__sum::after { content: "+"; font: 400 var(--fs-36)/1 var(--f-text); margin-left: 12px; }
  .part[open] .part__sum::after { content: "−"; }
  .part[open] .toc60 { margin-bottom: 16px; }
  /* На телефоне мостик к пробе — сразу под заголовком оглавления, а не после шестидесяти строк. */
  .afterword { order: -1; margin: 0 0 28px; }
}

/* ==========================================================================
   Страница дня — глава
   ========================================================================== */
.chspread { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; padding: 40px 0 64px; align-items: start; }
.chspread--noimg { grid-template-columns: minmax(0, 760px); }
.frontis { margin: 0; justify-self: start; width: 100%; max-width: 560px; }
.frontis__frame { padding: 12px; border: 1px solid var(--rule); background: var(--paper); }
.frontis__frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.frontis__cap { margin: 14px 0 0; font: 400 var(--fs-22)/1.4 var(--f-text); }
.chapno { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.chapno__n { font: 600 var(--fs-36)/1 var(--f-text); color: var(--el-text); }
.chapter__h1 { font: 600 var(--fs-56)/1.05 var(--f-text); letter-spacing: -.015em; text-wrap: balance; margin: 0 0 18px; }
.dayfields { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 26px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: var(--fs-17); }
.dayfields > span:nth-child(2) { color: var(--el-text); font-weight: 600; }
.dayfields .sw { --c: var(--el); width: 18px; height: 18px; }
.chapter[data-polarity="yin"] .dayfields .sw { background: repeating-linear-gradient(-45deg, var(--el) 0 3px, transparent 3px 6px); }
.dayfields__sep { color: var(--ink-2); }
.hook p { font-size: var(--fs-17); line-height: 1.6; max-width: 36em; margin: 0 0 1em; }
/* буквица: ян — залитый квадрат с бумажной буквой; инь — контур на штриховой рамке, буква цветом стихии */
.hook > p:first-child::first-letter {
  float: left; font: 600 76px/.84 var(--f-text); padding: 14px 14px 8px; margin: 6px 14px 0 0;
  background: var(--el); color: var(--sheet);
}
.chapter[data-polarity="yin"] .hook > p:first-child::first-letter {
  color: var(--el-text); padding: 6px 8px 0;
  border: 8px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, repeating-linear-gradient(-45deg, var(--el) 0 3.75px, transparent 3.75px 7.5px) border-box;
}
.chspread__act { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 24px 0 0; }
.chspread__act .btn[hidden] { display: none; }
.day-share__st { margin: 10px 0 0; font-size: var(--fs-14); font-weight: 600; color: var(--ink); min-height: 1.4em; }

/* сильные стороны: книжный список, начало в разрядку */
.virtues { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.virtues li { position: relative; padding: 12px 0 12px 1.6em; border-bottom: 1px solid var(--hair); }
.virtues li::before { content: "—"; position: absolute; left: 0; color: var(--el-text); }
.virtues strong { font-weight: 600; }
/* над чем работать: заголовок в подбор, решения с номерами на полях и скобкой */
.trouble { margin: 0 0 30px; }
.trouble__p .runin { font-weight: 600; font-size: 1.04em; }
.trouble + .trouble { padding-top: 22px; border-top: 1px dashed var(--hair); }
.remedies-wrap { position: relative; }
.remedies { list-style: none; margin: 0; padding: 0; counter-reset: rem; }
.remedies li { position: relative; counter-increment: rem; margin: 0 0 12px; }
.remedies li::before {
  content: counter(rem); position: absolute; left: -46px; top: 1px; width: 30px; height: 30px; display: grid; place-items: center;
  font: 600 var(--fs-14)/1 var(--f-text); font-feature-settings: "tnum"; background: var(--el); color: var(--sheet);
}
.chapter[data-polarity="yin"] .remedies li::before { background: var(--paper); color: var(--el-text); box-shadow: inset 0 0 0 2px var(--el); }
.remedies-wrap::after { content: ""; position: absolute; top: 2px; bottom: 6px; right: calc(-1 * var(--mg) / 2 - 4px); width: 12px; border: 2px solid var(--cinnabar); border-left: 0; }
.remedies__note { position: absolute; left: calc(100% + var(--mg)); top: 0; width: var(--mw); font: 400 var(--fs-17)/1.2 var(--f-text); color: var(--cinnabar); }
/* вклейка «одна пара знаков из четырёх» */
.inset { position: relative; margin: 8px 0 12px; padding: 22px 32px 26px; background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: var(--sh-card-ink); }
.inset .crop { position: absolute; width: 14px; height: 14px; }
.inset .crop::before, .inset .crop::after { content: ""; position: absolute; background: var(--ink-2); }
.inset .crop::before { width: 14px; height: 1px; top: 50%; left: 0; }
.inset .crop::after { height: 14px; width: 1px; left: 50%; top: 0; }
.inset .crop--tl, .inset .crop--bl { left: -16px; }
.inset .crop--tr, .inset .crop--br { right: -16px; }
.inset .crop--tl, .inset .crop--tr { top: -16px; }
.inset .crop--bl, .inset .crop--br { bottom: -16px; }
.pillars4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.p4 { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 12px; border: 1px solid var(--rule); text-align: center; }
.p4__k { font: 600 var(--fs-14)/1.2 var(--f-text); color: var(--ink-2); }
.p4__blank { width: 52px; height: 92px; border: 1.5px dashed var(--ink-2); opacity: .7; }
.p4__han { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-36); }
.p4__han span:first-child { color: var(--el-text); }
.p4__cap { font: 400 var(--fs-14)/1.2 var(--f-text); color: var(--ink-2); }
.p4--day { border: 2px solid var(--el); }
.p4--day .p4__k { color: var(--el-text); }
.p4--day .p4__cap { color: var(--ink); }
.chapter[data-polarity="yang"] .p4--day { box-shadow: inset 0 5px 0 var(--el); }
.chapter[data-polarity="yin"] .p4--day { background: linear-gradient(var(--sheet), var(--sheet)) padding-box, repeating-linear-gradient(-45deg, var(--el) 0 3px, transparent 3px 6px) border-box; border: 6px solid transparent; }
.inset__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 22px 0 0 !important; }
.inset__safe { font-size: var(--fs-14); color: var(--ink-2); }
/* знаменитости */
.persons { list-style: none; margin: 0 0 1em; padding: 0; border-top: 1px solid var(--rule); }
.persons li { padding: 12px 0 10px; border-bottom: 1px solid var(--hair); }
.persons__line { display: flex; align-items: baseline; gap: 10px; }
.persons__name { font-size: var(--fs-17); }
.persons__dots { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--ink-2); opacity: .5; transform: translateY(-4px); }
.persons__date { font-size: var(--fs-14); white-space: nowrap; }
.persons__note { display: block; font: 400 var(--fs-17)/1.35 var(--f-text); color: var(--ink-2); margin-top: 2px; }
.persons__caveat, .persons__caveat p { font: 400 var(--fs-17)/1.45 var(--f-text); color: var(--ink-2); }
.persons__end, .persons__end p { font: 400 var(--fs-22)/1.35 var(--f-text); }
.persons__end { margin-top: 18px; }
/* вопросы и ответы — открыто */
.qa { padding: 4px 0 6px; }
.qa + .qa { border-top: 1px solid var(--hair); padding-top: 18px; }
.qa__q { font: 400 var(--fs-22)/1.25 var(--f-text); margin: 0 0 10px; }
/* указатель к главе */
.ixlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ixlist a { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 0 4px; border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; }
.ixlist a:hover .ixlist__term { color: var(--cinnabar); text-decoration: underline; }
.ixlist__term { font-weight: 600; min-width: 0; }
.ixlist__han { font-size: var(--fs-14); color: var(--ink-2); white-space: nowrap; }
.ixlist__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--ink-2); opacity: .5; transform: translateY(-4px); }
.ixlist__grp { font: 400 var(--fs-17)/1 var(--f-text); color: var(--ink-2); }
.chapter__updated { margin: 40px 0 0 !important; font-size: var(--fs-14); color: var(--ink-2); }

/* линейка-фолиант и противоположный день */
.cyclenav__opp { margin: 22px 0 0; font: 400 var(--fs-22)/1.4 var(--f-text); text-align: center; }
.folio { max-width: 760px; margin: 30px auto 0; }
.folio__ticks { position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 46px; padding-top: 22px; border-bottom: 1px solid var(--rule); }
.folio__tick { width: 2px; height: 8px; background: var(--ink-2); opacity: .5; }
.folio__tick.is-ten { height: 13px; opacity: .8; }
.folio__tick.is-cur { width: 4px; height: 24px; background: var(--el); opacity: 1; }
.chapter[data-polarity="yin"] .folio__tick.is-cur { width: 8px; background: repeating-linear-gradient(-45deg, var(--el) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px var(--el); }
.folio__lbl { position: absolute; top: -4px; left: calc((var(--cur) - 1) / 59 * 100%); transform: translateX(-50%); font: 600 var(--fs-14)/1 var(--f-text); font-feature-settings: "tnum"; color: var(--el-text); }
.folio__ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 var(--fs-12)/1.2 var(--f-text); font-feature-settings: "tnum"; color: var(--ink-2); }
.folio__ends .han { font-size: var(--fs-12); }

@media (max-width: 1199px) {
  .remedies-wrap::after, .remedies__note { display: none; }
}
@media (max-width: 1023px) {
  .chspread { grid-template-columns: 1fr; gap: 0; }
  .chspread__text { display: contents; }
  /* Узкий экран: сначала заголовок, начало текста и действия, картинка — после (первый экран — не одна картинка). */
  .chspread__text > .hook { order: 1; }
  .chspread__text > .chspread__act, .chspread__text > .day-share__st { order: 2; }
  .chspread > .frontis { order: 3; margin: 26px 0 0; max-width: 520px; }
  .chspread .chapter__h1 { margin-bottom: 14px; }
  .chspread .dayfields { margin-bottom: 22px; }
}
@media (max-width: 767px) {
  .chspread { padding: 20px 0 40px; }
  .chapter__h1 { font-size: var(--fs-56); }
  .hook p { font-size: var(--fs-17); }
  .dayfields { font-size: var(--fs-14); gap: 4px 8px; }
  .hook > p:first-child::first-letter { font-size: var(--fs-56); padding: 10px 10px 6px; }
  .frontis__frame { padding: 8px; }
  .frontis__cap { font-size: var(--fs-22); }
  .remedies li { padding-left: 44px; }
  .remedies li::before { left: 0; }
  .inset { padding: 18px 16px 20px; margin-left: -4px; margin-right: -4px; }
  .inset .crop--tl, .inset .crop--bl { left: -8px; }
  .inset .crop--tr, .inset .crop--br { right: -8px; }
  .pillars4 { gap: 6px; }
  .p4__han { font-size: var(--fs-56); }
  .p4__blank { width: 36px; height: 70px; }
  .p4__cap { font-size: var(--fs-14); }
  .inset__act .btn { width: 100%; }
  .persons__line { flex-wrap: wrap; }
  .persons__dots { display: none; }
  .persons__date { width: 100%; }
  .qa__q { font-size: var(--fs-22); }
  .cyclenav__opp { font-size: var(--fs-17); text-align: left; }
  .ixlist__grp { display: none; }
}
@media (max-width: 599px) { .chspread__act .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- финал главы (component_epilog.php): проба, «Поделиться», личный разбор с ценой ---------- */
.chfinal { --focus: var(--ink); background: var(--plate); color: var(--ink); }
.chfinal__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.chfinal h2 { font: 600 var(--fs-36)/1.15 var(--f-text); text-wrap: balance; margin: 0 0 16px; }
.chfinal__text p { margin: 0 0 26px; max-width: 52ch; font: 600 var(--fs-17)/1.5 var(--f-text); }
.chfinal .btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.chfinal .btn[hidden] { display: none; }
.chfinal__st { margin: 12px 0 0; min-height: 1.4em; font: 600 var(--fs-14)/1.3 var(--f-text); }
.chfinal__price { background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: var(--sh-card-ink); padding: 22px; }
.chfinal__legal { margin: 0 0 12px; max-width: 70ch; font: 400 var(--fs-14)/1.45 var(--f-text); color: var(--ink-2); }
.chfinal__legal b { display: block; margin-bottom: 6px; font: 600 var(--fs-22)/1.3 var(--f-text); color: var(--ink); white-space: nowrap; }
.chfinal__price .btn-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1023px) { .chfinal__grid { grid-template-columns: minmax(0, 1fr); } .chfinal__price { max-width: 560px; } }
@media (max-width: 599px) { .chfinal .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .t60__day.is-found .t60__ring { transition: none; }
}

/* End */


/* 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 */
/* /local/components/mrlexndr/bazi.characters/templates/.default/style.css?179204656026856 */
/* /local/templates/.default/css/library.css?179204656011211 */
