/*
Theme Name:     twenty twelve child OZ
Description:    A child theme for the Twenty Twelve theme on the ozerjanskij.kharkov.ua website
Template:       twentytwelve
Version:        0.1.0
Author:         TVU   
*/
@import url("../twentytwelve/style.css");
/* without hyphenation */ 
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
}

/* ==========================================================================
   Типографіка: Базовий масштаб та заголовки
   ========================================================================== */



/* tables */
th,
td {
	font-weight: normal;
	text-align: left;
	font-size: 1.15em !important;
}
/* Sidebar */ 

.widget-area {

	border-left: 1px dashed #dddddd;
	padding: 8px;
}
.header-image {
	margin-top: 10px;
	margin-top: 0.714285714rem;
}

/* 1. Додаємо пунктирну лінію під сірим блоком навігації */
.breadcrumbs { 
    border-bottom: 1px dashed rgb(221, 221, 221) !important; 
    margin-bottom: 0 !important; /* Прибираємо порожнечу під сірим блоком */
	padding-bottom: 5px !important;
}

.site-header { 
	padding-bottom: 0px !important;
}

/* 2. Прибираємо невидиму білу смугу (зазор) від головного контейнера */
#main.wrapper, 
#main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 3. Підтягуємо колонки впритул до сірого блоку, зберігаючи відступ для тексту */
#primary, .site-content,
#secondary, .widget-area {
    margin-top: 0 !important;
    padding-top: 34px !important; /* Повертаємо відступ для тексту, щоб він не прилипав до верху */
}


/* Minimum width of 960 pixels. */
@media screen and (min-width: 960px) {

	body .site {
		margin-top: 24px;
		margin-top: 1.714285714rem;
	}
}
/* Header */
.site-header {
	padding: 14px 0 7px;
	padding: 1rem 0 0.5rem;
}
/* YotuWP # 190619*/
.yotu-videos .yotu-video h3{
	color: #444;
}
.yotu-playing {
	color: #444;
}
.yotu-playlist {
	padding: 0 0;
}
/* Recent Posts Widget With Thumbnails # 220614*/
/* text align*/
.rpwwt-widget ul li img { 
	float: right !important;
	margin: .3em 0 .75em .75em !important;
}
.rpwwt-post-title {
	text-align: left;
	display: block;
}
/* Color for Bible References Widget # 2230405*/
.required {
	color: #21759b !important;
}

:root {
    /* Базові відтінки */
    --color-text-main: #3C4448;  /* Графітовий з блакиттю для основного читання */
    --color-link-base: #3A6D9A;  
    --color-link-hover: #0f3647;
    --color-accent-gold: #C69C4E;  /* Золото */
    --color-accent-terra: #9B4A34; /* Теракота */
	--color-text-caption: #5C6B73; /* для підписів */
  }

body {
    color: var(--color-text-main);
}

/* Посилання  */
a {
    color: var(--color-link-base);
    transition: color 0.48s ease; /* Додаємо плавності зміні кольору */
}

a:hover, 
a:focus {
    color: var(--color-link-hover);
    text-decoration: none;
}

/* ==========================================================================
   підписи до зображень
   ========================================================================== */

.wp-caption .wp-caption-text,
.gallery-caption,
.entry-caption {
    color: var(--color-text-caption);
    font-style: italic; 
    font-size: 0.9em;   
    line-height: 1.4;
    text-align: right;
    margin-top: 0.8em;
    margin-bottom: 1.5em;
}

/* Заголовки */
h1, h2, h3 {
    color: var(--color-accent-terra);
}

/* Тема для Tag Groups */

/* 1. Головний контейнер (робимо гнучку сітку) */
.tag-groups-tag-list-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 6px !important; /* 8px між рядками по вертикалі, 6px між кнопками по горизонталі */
    width: 100% !important;
}

/* 2. Обгортка кожного тегу (скидаємо зайві відступи) */
.tag-groups-tag {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

/* 3. Базовий контейнер для тегу (Посилання) */
.tag-groups-tag a {
    display: inline-flex !important;
    align-items: stretch;
    background-color: #f3f5f6;
    color: var(--color-text-main) !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13.5px !important;
    overflow: hidden;
    font-family: sans-serif;
    line-height: 26px;
    border: 1px solid rgba(60, 68, 72, 0.1);
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap !important; /* Забороняємо кнопці розриватися на два рядки */
}

/* 4. Відступ зліва для самої назви тегу */
.tag-groups-label {
    padding-left: 10px;
    display: inline-flex;
    align-items: center;
}

/* 5. Блок з цифрою (Теракота) */
.tag-groups-append {
    background-color: var(--color-accent-terra);
    color: #ffffff !important;
    padding: 0 8px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    transition: background-color 0.15s ease;
}

/* 6. Ефект при наведенні миші на весь тег */
.tag-groups-tag a:hover {
    transform: translateY(-2px);
    background-color: #e5e9eb;
    color: var(--color-link-hover) !important;
}

/* 7. Золотий акцент для цифри при наведенні миші */
.tag-groups-tag a:hover .tag-groups-append {
    background-color: var(--color-accent-gold);
}

/* 8. Приховуємо заголовки груп */
h3.tag-groups-first-group,
.tag-groups-keep-together h3 {
    display: none !important;
}

/* =========================================
   Стилізація окремої сторінки цитат Біблії
========================================= */

/* Назва книги ("Книга Буття", "Євангеліє від Матвія") */
.footer-logo h3 {
    color: var(--color-accent-gold) !important; /* Додано !important для кольору */
    font-size: 1.4em !important; 
    border-bottom: 1px solid rgba(60, 68, 72, 0.1); 
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Заголовок "Розділ 1" */
.footer-logo_book strong {
    color: var(--color-accent-gold);
    font-size: 1.15em !important; /* Зробили трохи меншим за назву книги, але більшим за текст */
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Номер вірша (Теракота) */
.footer-logo_book em {
    color: var(--color-accent-terra);
    font-weight: 700; 
    font-style: normal; 
    font-size: 0.85em !important; /* Зменшили! Тепер цифра менша за основний текст (який дорівнює 1em) */
    margin-right: 6px; 
    position: relative;
    top: -1px; /* Трохи підняли цифру візуально, щоб вона акуратно стояла біля літер */
}

/* Опціонально: стилізація назви книги "Євангеліє від Матвія" */
.footer-logo h3 {
    color: var(--color-text-main);
    border-bottom: 1px solid rgba(60, 68, 72, 0.1); /* Легка лінія під назвою книги */
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/*****************************************
	Bg Bible References
	Екран налаштувань
	Інформаційна панель
******************************************/
.bg_bibrefs_info_box {
	padding: 1.5em;
	background-color: #f3f5f6; /* М'якший фон, адаптований під ваш дизайн */
	border: 1px solid rgba(60, 68, 72, 0.1); /* Ледь помітна рамка в тон основного тексту */
	margin: 1em;
	float: right;
	width: 22em;
}
.bg_bibrefs_info_box h3:first-of-type {
	margin-top: 0;
}
.bg_bibrefs_author {
	font-style: italic;
	color: var(--color-text-caption); /* Використано колір для підписів */
}
.bg_bibrefs_info_box p {
	margin: 0 0 .5em 0;
}
p.bg_bibrefs_gravatar {
	float: right;
	margin: 0 0 1em 1em;
}
.bg_bibrefs_info_box ul {
	list-style-type: disc;
	margin-left: 20px;
}
p.bg_bibrefs_close {
	text-align: right;
	font-style: italic;
	font-weight: bold;
	font-size: 1.5em;
	color: var(--color-accent-terra); /* Замінено darkblue на теракоту */
	margin-top: 1.5em;
	margin-bottom: 0;
	cursor: pointer;
	transition: color 0.3s ease;
}
p.bg_bibrefs_close:hover {
	color: var(--color-accent-gold); /* При наведенні стає золотим */
}

/*****************************************
	Таблиця вибору книг Біблії
******************************************/
.column-filename {
	width: 10%;
	min-width: 20px;
}
.column-name {
	width: 20%;
	min-width: 40px;
}
.column-status {
	width: 7%;
	min-width: 10px;
}

/*****************************************
	Спливаючі підказки у посилань
******************************************/
.bg_data_title {
	position: static; 
	white-space: nowrap;
	cursor: pointer;	
	color: var(--color-link-base); /* Підключено базовий колір посилань */
	transition: color 0.3s ease;
}
.bg_data_title:hover {
	color: var(--color-link-hover); /* Колір при наведенні */
}

.bg_data_tooltip {
	display: none;
	position: absolute; 
	white-space: normal;
	overflow-y: hidden; 	
	overflow-x: hidden; 
	z-index: 101; 		
	left: 0px; 
	top: 80px; 							
	width: 240px;						
	max-height: 240px;					
	max-width: 600px;					
	margin: 0px;						
	padding: 10px 12px; /* Трохи збільшено відступи для кращого читання */
	border: 1px solid rgba(60, 68, 72, 0.15); /* Рамка в тон тексту */
	border-radius: 4px; /* Легке заокруглення кутів */
	font-family: inherit; /* Успадковує шрифт сайту замість жорсткого sans-serif */
	font-size: 13px; /* Трохи адаптовано розмір */
	font-style: normal;					
	font-weight: normal;				
	font-stretch: normal;				
	color: var(--color-text-main); /* Графітовий текст */
	text-decoration: none; 				
	text-align: start;					
	background-color: rgba(255, 255, 255, 0.98); /* Білий, ледь прозорий фон */
	box-shadow: 0 4px 15px rgba(60, 68, 72, 0.12); /* Сучасна м'яка тінь */
	-webkit-box-shadow: 0 4px 15px rgba(60, 68, 72, 0.12);
	-moz-box-shadow: 0 4px 15px rgba(60, 68, 72, 0.12);
}

#bg_BG_overlay {
	background-color: var(--color-text-main); /* Замінено чорний на основний графітовий для гармонії */
	height: 100%;				
	left: 0;					
	opacity: 0.60; /* Трохи збільшено щільність для кращого фокусу */
	position: fixed;			
	top: 0;					
	width: 100%;				
	z-index: 100;				
}

/*****************************************
	Багатомовна таблиця
******************************************/
.bg_bibrefs_table_book,
.bg_bibrefs_table_verses,
.bg_bibrefs_table_t_verses,
.bg_bibrefs_table_b_verses,
.bg_bibrefs_table_quote {
	font-size: 90%;
}
.bg_bibrefs_table_book th,
.bg_bibrefs_table_verses th,
.bg_bibrefs_table_t_verses th,
.bg_bibrefs_table_b_verses th,
.bg_bibrefs_table_quote th {
	font-size: 80%;
	text-align: center;
	vertical-align: middle;
	color: var(--color-text-caption); /* Заголовки таблиць м'якшим кольором */
}
.bg_bibrefs_table_book th:first-child,
.bg_bibrefs_table_book td:first-child {
	width: 3em;
	text-align: center;
}
.bg_bibrefs_table_verses th:first-child,
.bg_bibrefs_table_t_verses th:first-child,
.bg_bibrefs_table_verses td:first-child,
.bg_bibrefs_table_t_verses td:first-child {
	width: 4em;
	text-align: center;
}
.bg_bibrefs_table_b_verses th:first-child,
.bg_bibrefs_table_b_verses td:first-child {
	width: 8em;
}

.bg_bibrefs_table_book td>span.bg_bibrefs_passage,
.bg_bibrefs_table_verses td>span.bg_bibrefs_passage,
.bg_bibrefs_table_t_verses td>span.bg_bibrefs_passage,
.bg_bibrefs_table_b_verses td>span.bg_bibrefs_passage {
	display: none;
	position: relative;  
	z-index: 101;
	left: 0px; 
	top: 0px; 	
	width: 240px;
	max-height: 240px;
	max-width: 600px;
	margin: 0px;
	padding: 10px 12px; /* Ідентично до .bg_data_tooltip */
	border: 1px solid rgba(60, 68, 72, 0.15); 
	border-radius: 4px;
	font-family: inherit; /* Шрифт сайту */
	font-size: 13px;
	font-style: normal;
	font-weight: normal;
	font-stretch: normal;
	color: var(--color-text-main); /* Графітовий колір */
	text-decoration: none;
	text-align: start;
	background-color: rgba(255, 255, 255, 0.98);
	box-shadow: 0 4px 15px rgba(60, 68, 72, 0.12); /* Сучасна тінь */
	-webkit-box-shadow: 0 4px 15px rgba(60, 68, 72, 0.12);
	-moz-box-shadow: 0 4px 15px rgba(60, 68, 72, 0.12);
}

.bg_bibrefs_table_book td:hover > span.bg_bibrefs_passage,
.bg_bibrefs_table_verses td:hover > span.bg_bibrefs_passage,
.bg_bibrefs_table_t_verses td:hover > span.bg_bibrefs_passage,
.bg_bibrefs_table_b_verses td:hover > span.bg_bibrefs_passage {
	display: block;
}
/*****************************************
	Bg Bible References
	END
******************************************/

/* =========================================
   Навігація по Біблії (Кнопки та Сітка)
========================================= */

/* Стиль для головних текстових кнопок (Попередній, Розділи, Наступний) */
.bible-nav-btn {
    color: var(--color-link-base);
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bible-nav-btn:hover,
.bible-nav-btn:focus {
    color: var(--color-link-hover);
    text-decoration: none;
    transform: translateY(-2px); /* Легке підняття при наведенні */
}

/* Окрема кнопка "Розділи" по центру */
.btn-chapters {
    color: var(--color-text-main);
    border: 1px solid rgba(60, 68, 72, 0.15);
    border-radius: 4px;
    background-color: #f3f5f6;
}
.btn-chapters:hover {
    background-color: var(--color-accent-gold);
    color: #fff;
    border-color: var(--color-accent-gold);
}

/* Квадратики з номерами розділів у сітці */
.bible-chapter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f3f5f6;
    color: var(--color-text-main);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(60, 68, 72, 0.1);
    transition: all 0.2s ease;
}

.bible-chapter-link:hover {
    background-color: var(--color-accent-gold);
    color: #ffffff;
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
}

/* Виділення поточного розділу (Теракота) */
.bible-chapter-link.current-chapter {
    background-color: var(--color-accent-terra);
    color: #ffffff;
    border-color: var(--color-accent-terra);
    pointer-events: none; /* Щоб на поточний розділ не можна було клікнути знову */
    box-shadow: 0 2px 6px rgba(155, 74, 52, 0.3);
}

/* Адаптація під мобільні екрани */
@media (max-width: 600px) {
    #bible-custom-nav {
        flex-direction: column;
        gap: 15px;
    }
    .bible-chapter-link {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
/* Квадратики для назв книг (трохи ширші за розділи) */
.bible-book-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 10px; /* Замість фіксованої ширини використовуємо відступи */
    min-width: 44px; /* Мінімальна ширина */
    background-color: #f3f5f6;
    color: var(--color-text-main);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid rgba(60, 68, 72, 0.1);
    transition: all 0.2s ease;
}

.bible-book-link:hover {
    background-color: var(--color-accent-gold);
    color: #ffffff;
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
}

.bible-book-link.current-chapter {
    background-color: var(--color-accent-terra);
    color: #ffffff;
    border-color: var(--color-accent-terra);
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(155, 74, 52, 0.3);
}

/* Додаємо верхній відступ між двома панелями навігації */
#bible-book-nav {
    border-top: 1px dashed rgba(60, 68, 72, 0.2);
    padding-top: 15px;
}