/* ORTHODOX HOUSE — общий слой «живее и красивее» для всех разделов (18.11.2026).
 * Его слово: «мало динамики… по каждому разделу сделай улучшение… полке — кнопочки по бокам вместо полосы прокрутки…
 * текст для чтения — по ширине страницы… и виртуальный храм, и живая молитва, все интерфейсы».
 * Файл подключает сам oh-back.js (он стоит на каждой странице портала, в том числе в разделах со своей оболочкой),
 * поэтому цвета здесь заданы так, чтобы работать и на светлых, и на тёмных страницах. */

/* ---------- 1. полки со стрелками по бокам ---------- */
.ohsh{position:relative}
.ohsh>.ohsh-t{scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth}
.ohsh>.ohsh-t::-webkit-scrollbar{display:none}
.ohsh-b{position:absolute;top:50%;z-index:4;width:42px;height:42px;margin-top:-21px;border-radius:50%;border:1px solid rgba(193,154,63,.55);background:rgba(36,20,24,.86);color:#f0d68a;cursor:pointer;
  display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px -10px rgba(0,0,0,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:opacity .2s ease,transform .15s ease,background .15s ease}
.ohsh-b svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ohsh-b:hover{background:rgba(74,22,34,.95);transform:scale(1.08)}
.ohsh-b:active{transform:scale(.94)}
.ohsh-b.p{left:6px}.ohsh-b.n{right:6px}
.ohsh-b[hidden]{display:none}
.ohsh.sm .ohsh-b{width:32px;height:32px;margin-top:-18px}.ohsh.sm .ohsh-b.p{left:0}.ohsh.sm .ohsh-b.n{right:0}.ohsh.sm .ohsh-b svg{width:16px;height:16px}
.ohsh.sm.has-n>.ohsh-t{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent calc(100% - 14px));mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent calc(100% - 14px))}
.ohsh.sm.has-p>.ohsh-t{-webkit-mask-image:linear-gradient(270deg,#000 calc(100% - 64px),transparent calc(100% - 14px));mask-image:linear-gradient(270deg,#000 calc(100% - 64px),transparent calc(100% - 14px))}
.ohsh.sm.has-p.has-n>.ohsh-t{-webkit-mask-image:linear-gradient(90deg,transparent 14px,#000 64px,#000 calc(100% - 64px),transparent calc(100% - 14px));mask-image:linear-gradient(90deg,transparent 14px,#000 64px,#000 calc(100% - 64px),transparent calc(100% - 14px))}
@media(hover:none){.ohsh.sm>.ohsh-t{-webkit-mask-image:none!important;mask-image:none!important}}
@media(max-width:700px){.ohsh-b.p{left:2px}.ohsh-b.n{right:2px}}
@media(hover:none){.ohsh-b{opacity:.92}.ohsh.sm .ohsh-b{display:none}}

/* ---------- 2. текст для чтения: по ширине, с переносами ---------- */
html .lbtext,html .cbody,html .bbtext,html .prayer p,html article.full .body p,html .calrdb p,html .ohread p{text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
html .lbtext{white-space:pre-line}
/* 18.11.2026 — «в новостях и в ленте тоже: текст по ширине»: записи ленты Общины и анонсы в карточках новостей */
html .sbody{text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word;white-space:pre-line}
html .acard .b p,html #qodclamp,html .mwrap>.scard>p,html .mwrap>a.scard>div>div:last-child{text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto}
/* молитва на узком экране: короткие строки прошений не растягиваем */
@media(max-width:600px){html .prayer p{text-align:start}}
article.full.mag .body{text-align:justify}
html article.full .body p.artlead,html article.full .body .artq,html article.full .body .pullq{text-align:start;hyphens:manual}
/* размер шрифта читателя */
.ohfs{display:inline-flex;align-items:center;gap:2px;margin:6px 0 10px;padding:3px;border-radius:999px;border:1px solid rgba(128,118,108,.28);background:rgba(128,118,108,.1)}
.ohfs button{border:0;background:none;color:inherit;font:700 14px/1 inherit;font-family:inherit;width:36px;height:30px;border-radius:999px;cursor:pointer;transition:background .15s ease}
.ohfs button:hover{background:rgba(128,118,108,.22)}
.ohfs button.big{font-size:18px}
.ohrb{position:fixed;top:0;left:0;height:3px;width:0;z-index:9999;background:linear-gradient(90deg,#c19a3f,#7a1f2f);transition:width .1s linear}

/* ---------- 3. заголовок раздела ---------- */
.ohsec{position:relative;overflow:hidden;box-sizing:border-box;width:100%;flex:1 1 260px;min-width:0;display:flex;gap:16px;align-items:center;margin:0 0 18px;padding:22px 22px;border-radius:18px;color:#fff;
  background:linear-gradient(135deg,#3a0f1a,#7a1f2f 60%,#9c7526);box-shadow:0 20px 44px -26px rgba(74,22,34,.75)}
.ohsec::after{content:"";position:absolute;inset:0;background:radial-gradient(110% 90% at 90% -10%,rgba(240,214,138,.34),transparent 58%);pointer-events:none}
.ohsec-i{position:relative;z-index:1;flex:none;width:58px;height:58px;border-radius:16px;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;color:#f0d68a}
.ohsec-i svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ohsec-b{position:relative;z-index:1;min-width:0}
.ohsec h1,.ohsec h2{margin:0!important;color:#fff!important;font-family:"Cormorant Garamond",Georgia,serif!important;font-size:clamp(25px,3.2vw,34px)!important;font-weight:700!important;line-height:1.12!important;letter-spacing:-.005em}
.ohsec .ohsec-s{margin:6px 0 0!important;color:rgba(255,255,255,.84)!important;font-size:14px!important;line-height:1.5!important;max-width:70ch}
@media(max-width:600px){.ohsec{padding:18px 16px;gap:12px}.ohsec-i{width:46px;height:46px;border-radius:13px}.ohsec-i svg{width:24px;height:24px}}

/* ---------- 4. карточки и строки разделов: подъём, подсветка, появление ---------- */
.lbrow,.crow,.bbgrid a,.tmkids a,.tmlist a,.lbtoc a,.plist a,.cats a,.catcard,.sccard{transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .bbgrid a:hover,.tmkids a:hover,.lbtoc a:hover,.cats a:hover,.catcard:hover,.sccard:hover{transform:translateY(-2px);box-shadow:0 10px 22px -16px rgba(23,19,16,.5)}
  .lbrow:hover,.crow:hover,.plist a:hover{transform:translateX(4px)}
  [dir=rtl] .lbrow:hover,[dir=rtl] .crow:hover,[dir=rtl] .plist a:hover{transform:translateX(-4px)}
}
@media(prefers-reduced-motion:no-preference){
  html.ohp .ohp-rv{opacity:0;transform:translateY(16px)}
  html.ohp .ohp-rv.in{opacity:1;transform:none;transition:opacity .5s ease var(--d,0ms),transform .55s cubic-bezier(.2,.7,.2,1) var(--d,0ms)}
}

/* ---------- 6. «Вопрос дня»: счёт и следующий вопрос ---------- */
.ohq-f{display:flex;justify-content:flex-end;margin-top:12px}
.ohq-sc{font-size:12.5px;font-weight:700;color:var(--muted,#7a6f66);margin-inline-start:auto;margin-inline-end:12px;white-space:nowrap}
.ohq-sc b{color:#2e7d55}.ohq-sc i{font-style:normal;color:#b5651d;margin-inline-start:6px}
.ohq-n{position:relative;overflow:hidden;border:0;border-radius:11px;padding:10px 18px;font:700 13.5px/1 inherit;font-family:inherit;background:#7a1f2f;color:#fff;cursor:pointer;transition:transform .12s ease,filter .15s ease}
.ohq-n span{position:relative;z-index:1}
.ohq-n:hover{filter:brightness(1.12)}.ohq-n:active{transform:scale(.96)}.ohq-n:disabled{opacity:.6}
.ohq-n.cd::before{content:"";position:absolute;inset:0;width:0;background:rgba(240,214,138,.34);animation:ohqcd 9s linear forwards}
@media(hover:hover){.ohq:hover .ohq-n.cd::before{animation-play-state:paused}}
@keyframes ohqcd{to{width:100%}}
.ohq.sw .ohq-q,.ohq.sw .ohq-o{animation:ohqsw .42s cubic-bezier(.2,.7,.2,1) both}
.ohq.sw .ohq-o{animation-delay:.06s}
@keyframes ohqsw{from{opacity:0;transform:translateX(26px)}to{opacity:1;transform:none}}
[dir=rtl] .ohq.sw .ohq-q,[dir=rtl] .ohq.sw .ohq-o{animation-name:ohqswr}
@keyframes ohqswr{from{opacity:0;transform:translateX(-26px)}to{opacity:1;transform:none}}
.ohq-b.ok{animation:ohqok .5s ease}
@keyframes ohqok{40%{transform:scale(1.03)}}
@media(prefers-reduced-motion:reduce){.ohq.sw .ohq-q,.ohq.sw .ohq-o,.ohq-b.ok,.ohq-n.cd::before{animation:none}.ohsh>.ohsh-t{scroll-behavior:auto}}

/* ---------- 7. мелочи, найденные при обходе разделов (18.11.2026) ---------- */
/* «Живая музыка» на телефоне: содержимое стояло вплотную к краю экрана */
@media(max-width:700px){html .mu{padding-left:16px;padding-right:16px}html .mu h1{font-size:30px}}
