@charset "UTF-8";
/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 20;
  margin-top: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

@font-face {
    font-family: Avdira_R;
	src: url('../FONTS/Avdira_R.otf');
    src: url('../FONTS/Avdira_R.otf?#iefix') format('embedded-opentype'),
         url('../FONTS/Avdira_R.woff2') format('woff2'),
         url('../FONTS/Avdira_R.woff') format('woff'),
         url('../FONTS/Avdira_R.otf') format('truetype');
    src: local("Avdira_R.otf")
	font-weight: normal;
    font-style: normal;
	font-display: auto;
}

@font-face {
    font-family: 'Arial Narrow';
    src: url('../FONTS/Arial/ArialNarrow.eot');
    src: url('../FONTS/Arial/ArialNarrow.eot?#iefix') format('embedded-opentype'),
        url('../FONTS/Arial/ArialNarrow.woff2') format('woff2'),
        url('../FONTS/Arial/ArialNarrow.woff') format('woff'),
        url('../FONTS/Arial/ArialNarrow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
/* RSV-style: все размеры в CSS-тирах (JS-сайзинг в s.js отключён). База = десктоп (>1280). */
--GrkTextSize: 29.3px;
--RusTextSize: 21.3px;
--VerseNumSize: 25px;
--HeadNumSize: 46px;
--rowMinH: 80px;
--codexSize: 28px;
--lampW: 45px;
--lampH: 52px;
--fontNum: 'Droid Serif';
--fontTimes: 'Times';
}


#WzTtDiV {
-webkit-box-shadow: 4px 0px 35px 5px rgba(34, 60, 80, 0.7);
-moz-box-shadow: 4px 0px 35px 5px rgba(34, 60, 80, 0.7);
box-shadow: 4px 0px 35px 5px rgba(34, 60, 80, 0.7);
}

#WzBoDy {
top: 0px;
}


header {
z-index: 1;
position: sticky;
top: 0;
padding: calc(var(--RusTextSize) * 0.4) 0;
margin-bottom: calc(var(--RusTextSize) * 0.6);
background-image: url("../SUPP/image/bg.jpg");
box-shadow: 0px 15px 8px -15px rgba(34, 60, 80, 0.7);
}
/* Внутренний центрирующий div заголовка: перенос на 2+ строки, если title+номер
   не влезают в одну, + вертикальное центрирование. */
header > div {
	flex-wrap: wrap;
	align-items: center;
}
/* Заголовок: title-слова (WordBlock) и номер главы (table) — без строковой
   высоты --rowMinH (иначе раздувается пустотой), по контенту. */
header .WordBlock, header .Table {
	min-height: 0;
}
/* Номер главы — это <sup>; nullifier ставит ему line-height:0 + top:-0.5em, из-за
   чего крупный номер (--HeadNumSize) не учитывается по высоте и вылезает за
   границы заголовка. Возвращаем нормальную высоту строки и убираем сдвиг. */
header sup {
	line-height: normal;
	top: 0;
}
/* Подгонка заголовка под одну строку на мобиле: s.js (fitGrkHeader) измеряет
   перенос и задаёт --headScale ТОЛЬКО на сам <header>; размеры шрифта остаются
   здесь (паттерн calc * множитель). По умолчанию 1 — поведение не меняется.
   Селекторы scoped на header → подстрочник в .BodyBlock не затрагивается. */
header { --headScale: 1; }
header .GreekText   { font-size: calc(var(--GrkTextSize)  * var(--headScale)); }
header .RussianText { font-size: calc(var(--RusTextSize)  * var(--headScale)); }
header a.chapter    { font-size: calc(var(--HeadNumSize) * var(--headScale)); }

code {color: #6D2E1B; font-family: 'Arial Cyr'; font-size: 21pt; font-weight: normal; vertical-align: middle; font-style: normal; TEXT-DECORATION: none; background-color: #FFFFFF; line-height: 1.5; white-space: pre-wrap }
sup {color:#6D2E1B; font-family: Avdira_R; font-size: 22pt; font-weight: normal; white-space: pre-wrap   }
BODY {background-image: url("../SUPP/image/bg.jpg"); font-family: 'Arial Cyr'; font-size: 20pt}
tbody {font-family: 'Arial Cyr'; font-size: 1.4em}
A:link {color: #6a2f04; font-weight: bold; TEXT-DECORATION: none}
A:active {color: #6a2f04; font-weight: bold; TEXT-DECORATION: none}
A:visited {color: #6a2f04; font-weight: bold; TEXT-DECORATION: none}
A:hover {color: red; font-weight: bold; TEXT-DECORATION: none}
A.fancy:link {color: black; font-weight: normal; font-size: 16pt; TEXT-DECORATION: none} /*Шрифт русского подстрочного текста*/
A.fancy:active {color: black; font-weight: normal;   TEXT-DECORATION: none}
A.fancy:visited {color: black; font-weight: normal; font-size: 16pt;  TEXT-DECORATION: none}
A.fancy:hover {color: black; font-weight: normal;  TEXT-DECORATION: none}
/*Шрифт номеров стихов*/
a.tip {border-bottom: 0px dotted; text-decoration: none;} 
A.tip { 
	font-family: 		var(--fontNum);
	font-size: 			var(--VerseNumSize);
	font-weight:		bold;
	color:				red;
	cursor:				pointer; 
	text-decoration:	none;
}
A.chapter {
	font-family: 		var(--fontNum);
	font-size: 			var(--HeadNumSize);
	font-weight:		normal;	
	color:				red;
	cursor:				pointer; 
	text-decoration:	none;
}
A.tip:active,
A.tip:focus,
A.tip:hover { 
	color:			red;
	cursor:			pointer; 
}


i{
	font-family: var(--fontTimes);
	font-size: calc(var(--RusTextSize) * 0.9);
}

table {
border-spacing: 0;
}

.Table {
	min-height:	var(--rowMinH);
}
.TableLamp {
	min-height: var(--rowMinH);

}
.lampicon {
	width: var(--lampW);
	height: var(--lampH);
}
.TableLamp p {
	font-size: var(--codexSize);
}
.Left {
	float:	left;
}
.Center {
	float:	center;
}
.Verse {
	white-space: pre-line;
	color: #7F0000;
}
.Greek {
	text-align: center;
	vertical-align: bottom;
	white-space: pre-line;
	font-family: Avdira_R;
	font-size: var(--GrkTextSize);
	font-weight: bold;
}
.Rus {
	text-align: center;
	vertical-align: top;
	white-space: pre-line;
	font-family: 'Arial Narrow';
	font-size: var(--RusTextSize);
	color: #404040;
}
.CopyBody {
	font-size: calc(var(--RusTextSize) * 0.8);
}

/* C-срез: flex-раскладка слов (унификация с H/b.css). Слово = WordBlock
   (колонка: греч сверху, рус снизу), контейнер BodyBlock — flex-wrap.
   Подсветка совпадения/выбора — класс .Hl (div игнорирует bgcolor).
   Номера/Lamp/заголовок пока остаются table (flex-элементы, float инертен). */
.BodyBlock {
	display: flex;
	flex-direction: var(--WordDirection, row);
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
}
.WordBlock {
	display: flex;
	flex-direction: column;
	justify-content: center;
	white-space: pre;
	/* min-height = высота строки как у table-номеров/Lamp (--rowMinH) → единая
	   высота элементов (фикс «разная высота»), а пустота снизу даёт ровный
	   вертикальный ритм. padding (не margin!) — чтобы при подсветке .Hl фон
	   заливал и промежутки между словами (как было в table-вёрстке). */
	min-height: var(--rowMinH);
	padding: 0 5px;
}
.GreekBlock, .RussianBlock {
	display: flex;
	justify-content: center;
}
.GreekText {
	font-family: Avdira_R;
	font-size: var(--GrkTextSize);
	font-weight: bold;
	text-align: center;
}
.RussianText {
	font-family: 'Arial Narrow';
	font-size: var(--RusTextSize);
	text-align: center;
	color: #404040;
}
.WordBlock.Hl {
	background-color: #f5f5dc;
}
/* Опущение (⸰…⸰ = отсутствует в указанных рукописях). Слова привязаны к своему
   Lamp по data-omlamp=codeLamp; клик по этому Lamp прячет/показывает ТОЛЬКО свой
   диапазон (.om-strike — зачёркивание греч. слова). По умолчанию — пунктир-индикатор. Тип варианта несёт сам
   Lamp классом lamp-omit/lamp-add/lamp-subst. */
.WordBlock.Omitted .GreekText {
	border-bottom: 1px dotted #999;
}
.WordBlock.om-strike .GreekText {
	text-decoration: line-through;
}
/* Lamp (разночтения): при раскрытии варианты идут ГОРИЗОНТАЛЬНО (flex-wrap),
   а не вертикальным столбцом. Класс на toggle-ячейке; JS-toggle переключает
   inline display none/'' — '' падает в CSS display:flex. */
.lampcell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
/* Номер стиха (id=ver…) как flex-элемент той же высоты (--rowMinH), что слова,
   с центрированием по вертикали → ровняется с парами. Подсветка выбранного
   стиха — класс .HlNum (бывш. bgcolor=NumberVerseColor). */
.NumberBlock {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--rowMinH);
	margin: 0 calc(var(--RusTextSize) * 0.4);
}
.NumberBlock.HlNum {
	background-color: #fffff0;
}
/*#0000007d;*/

.DescriptionBlock {
	width: 100%;
	font-family: 'Times New Roman';
	margin-bottom: calc(1 * var(--RusTextSize));
}

.DescriptionHRBlock {
	display: block;
    unicode-bidi: isolate;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    overflow: hidden;
    border-style: inset;
    border-width: 1px;
}

.DescriptionHeadBlock {
    font-size: calc(var(--RusTextSize)*1);
	margin-top: calc(var(--RusTextSize)*0.5);
	margin-bottom: calc(var(--RusTextSize)*1);
	color: #6D2E1B;
    text-align: left;
    font-family: var(--fontTimes);
	font-weight: bold;
	text-align: center;
	text-decoration: none;
}

.DescriptionBodyBlock {
    font-size: calc(var(--RusTextSize)*1);
	color: #6D2E1B;
    text-align: left;
    font-family: var(--fontTimes);
	margin-left: calc(var(--RusTextSize)*0);
	margin-right: calc(var(--RusTextSize)*0);
	line-height: calc(var(--RusTextSize)*1.1);
}

.ListBlock {
	width: 100%;
	font-family: 'Times New Roman';
	margin-bottom: calc(1 * var(--RusTextSize));
}

.ListHRBlock {
	display: block;
    unicode-bidi: isolate;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    overflow: hidden;
    border-style: inset;
    border-width: 1px;
}

.ListHeadBlock {
    font-size: calc(var(--RusTextSize)*1);
	margin-top: calc(var(--RusTextSize)*0.5);
	margin-bottom: calc(var(--RusTextSize)*1);
	color: #6D2E1B;
    text-align: left;
    font-family: var(--fontTimes);
	font-weight: bold;
	text-align: center;
	text-decoration: none;
}

.ListBodyBlock {
    font-size: calc(var(--RusTextSize)*1);
	color: #6D2E1B;
    text-align: left;
    font-family: var(--fontTimes);
	margin-left: calc(var(--RusTextSize)*0.7);
	margin-right: calc(var(--RusTextSize)*0.7);
	line-height: calc(var(--RusTextSize)*1.1);
}

.CopyBlock {
	width: 100%;
	font-family: 'Times New Roman';
	margin-bottom: calc(1 * var(--RusTextSize));
}

.CopyHRBlock {
	display: block;
    unicode-bidi: isolate;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    overflow: hidden;
    border-style: inset;
    border-width: 1px;
}

.CopyHeadBlock {
    font-family: var(--fontTimes);
	font-size: calc(var(--RusTextSize)*0.9) ;
	text-align: center;
	color: #6a2f04;
	text-decoration: none;
}

.CopyHeadBlock > a:-webkit-any-link {
	color: #6a2f04;
	font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.CopyHeadBlock a:hover {
	color: red;
}

.CopyBodyBlock {
    font-family: var(--fontTimes);
	font-size: calc(var(--RusTextSize)*0.8);
	text-align: center;
	color: red;
}



@media only screen and (max-device-width: 430px) {
body {
	--GrkTextSize: 50px;
	--RusTextSize: 42px;
	--VerseNumSize: 38px;
	--HeadNumSize: 66px;
	--rowMinH: 118px;
	--codexSize: 40px;
	--lampW: 52px;
	--lampH: 60px;
}
tbody {font-size: 2.4em}
code {color: #6D2E1B; font-family: 'Arial Cyr'; font-size: 30pt; font-weight: normal; vertical-align: middle; font-style: normal; TEXT-DECORATION: none; background-color: #FFFFFF; line-height: 1.5 } /*Шрифт русского текста в лампе*/
sup {font-family: Avdira_R; font-size: 33pt; font-weight: normal } /*Шрифт греческого подстрочного текста в лампе*/
}

@media screen and (min-device-width: 431px) and (max-device-width: 1280px){
body {
	--GrkTextSize: 40px;
	--RusTextSize: 32px;
	--VerseNumSize: 31px;
	--HeadNumSize: 56px;
	--rowMinH: 99px;
	--codexSize: 34px;
	--lampW: 49px;
	--lampH: 56px;
}
tbody {font-size: 2em}
}

