/* ==========================================================================
   СТИЛЬ «РУНИЧЕСКАЯ МАГИЯ: ХОЛОД КАМНЯ» (Ссылки светлые) - Часть 1
   ========================================================================== */

/* 1. Атмосферный базовый фон: глубокий тёмный сланец */
body.Runes {
    background-color: #0a0c0f/*#0c0d10*/ !important;
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(25, 28, 36, 0.6) 0%, transparent 80%),
        linear-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 1px) !important;
    background-size: 100% 100%, 32px 32px !important;
    color: #e6e8ea !important;
    font-family: 'Times New Roman', Times, Georgia, serif !important;
}

/* 2. Основные контейнеры: фактура тёмной скальной породы */
body.Runes main#content {
    border: 1px solid rgba(40, 46, 55, 0.6) !important;
    border-radius: 2px !important;
}
body.Runes main#content,
body.Runes .tab,
body.Runes section {
    background: rgba(15, 17, 21, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
    color: #e6e8ea !important;
}

body.Runes .mainpage section { border: #2a3846 !important; }

/* 3. Заголовки: холодный светлый кварц / серебро камня */
body.Runes h1, 
body.Runes h2, 
body.Runes h3, 
body.Runes .subtitle,
body.Runes b,
body.Runes strong {
    color: #FFF !important; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    font-weight: normal;
    letter-spacing: 0.5px;
}

body.Runes .subtitle {
    border-bottom: 1px solid rgba(45, 52, 63, 0.6) !important;
}

/* 4. Ссылки: чистый светлый цвет (в тон тексту/заголовкам) */
body.Runes a {
    color: #b0b8c0 !important;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body.Runes a:hover {
    color: #ffffff !important;
    text-decoration: underline;
    text-decoration-color: #6b8299;
    text-decoration-thickness: 1px;
}

/* 5. Элементы галереи */
body.Runes section.gallery a {
    background: rgba(12, 14, 18, 0.95) !important;
    border: 1px solid rgba(35, 41, 50, 0.7);
    border-radius: 2px;
}

body.Runes section.gallery a:hover {
    border-color: #6b8299;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

body.Runes section.gallery span.descr {
    color: #828a93 !important;
}

/* 6. Поле копирования ссылки и кнопка (.copylink) */
body.Runes .copylink input.url {
    background: rgba(12, 14, 18, 0.95) !important;
    border: 1px solid rgba(40, 46, 55, 0.7) !important;
    color: #b0b8c0 !important;
    border-radius: 2px;
    padding: 6px 10px;
}

body.Runes .copybutton {
    background: rgba(20, 23, 29, 0.9) !important;
    border: 1px solid rgba(50, 58, 70, 0.7) !important;
    color: #c5cbd3 !important;
    border-radius: 2px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

body.Runes .copybutton:hover {
    background: rgba(35, 41, 50, 0.9) !important;
    border-color: #6b8299 !important;
    color: #ffffff !important;
}

/* 7. Шапка сайта и логотип (#header) */
body.Runes #header {
    background: rgba(12, 14, 18, 0.95) !important;
    border-bottom: 1px solid rgba(40, 46, 55, 0.7);
}

body.Runes .logo .logo-text {
    color: #FFF !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

body.Runes .logo .logo-sub-text {
    color: #FFF !important;
}

/* 8. Строка поиска (.h_search) */
body.Runes .h_search input[type="search"] {
    background: rgba(12, 14, 18, 0.95) !important;
    border: 1px solid rgba(40, 46, 55, 0.7) !important;
    color: #b0b8c0 !important;
    border-radius: 2px;
}

body.Runes .h_search input[type="search"]:focus {
    border-color: #6b8299 !important;
    outline: none;
}

body.Runes button.searchbtn {
    background-color: rgba(20, 23, 29, 0.9) !important;
    border: 1px solid rgba(50, 58, 70, 0.7) !important;
    color: #c5cbd3 !important;
    border-radius: 2px;
}

/* 9. Верхнее меню и кнопка «Создать» (ul.top_menu) */
body.Runes ul.top_menu a.pt-createpage {
    background: rgba(20, 23, 29, 0.9) !important;
    border: 1px solid rgba(50, 58, 70, 0.7) !important;
    color: #c5cbd3 !important;
    border-radius: 2px;
}

body.Runes ul.top_menu a.pt-createpage:hover {
    background: rgba(35, 41, 50, 0.9) !important;
    border-color: #6b8299 !important;
    color: #ffffff !important;
}

/* Бургер-кнопки меню (.menu_toggle) */
body.Runes .menu_toggle i {
    background-color: #FFF !important;
}

body.Runes .h_btn.open > .menu_toggle i {
    background-color: #0f1112 !important;
}

/* 10. Пользовательское меню и выпадающий список (.usermenu) */
body.Runes .usermenu {
    position: relative;
}

body.Runes .usermenu .avatar img {
    border: 1px solid rgba(40, 46, 55, 0.7);
    border-radius: 50%;
}

body.Runes .usermenu-toggle {
    background: transparent !important;
    border: none;
    color: #c5cbd3;
    cursor: pointer;
}

body.Runes .usermenu-dropdown {
    background: rgba(15, 17, 21, 0.98) !important;
    border: 1px solid rgba(40, 46, 55, 0.8) !important;
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

body.Runes .usermenu-dropdown a {
    color: #b0b8c0 !important;
    border-bottom: 1px solid rgba(35, 41, 50, 0.5);
}

body.Runes .usermenu-dropdown a:hover {
    background: rgba(30, 36, 45, 0.9) !important;
    color: #ffffff !important;
}

/* 11. Футер сайта (#footer) */
body.Runes #footer {
    background: rgba(12, 14, 18, 0.95) !important;
    border-top: 1px solid rgba(40, 46, 55, 0.7);
    color: #828a93 !important;
}

body.Runes .foot_menu hr {
    border-color: rgba(35, 41, 50, 0.6);
}

/* 12. Левая навигационная панель (.leftnav) */
body.Runes .leftnav {

    background: rgba(15, 17, 21, 0.95) !important;
	
}
body.Runes .leftnav .block {
    border: 1px solid rgba(40, 46, 55, 0.7) !important;
    border-radius: 2px !important;
}

body.Runes .leftnav .block .listtitle {
    color: #c5cbd3 !important;
    border-bottom: 1px solid rgba(35, 41, 50, 0.7);
}

body.Runes .leftnav ul.block_links a {
    color: #b0b8c0 !important;
}

body.Runes .leftnav ul.block_links a:hover {
    color: #ffffff !important;
}

/* 13. Блоки категорий и вложенные списки (.leftnav / .block) */
body.Runes .leftnav nav.block ul {
    list-style: none;
    padding-left: 0;
}

body.Runes .leftnav nav.block li {
    margin: 4px 0;
}

/* Вложенные списки категорий с мягким штриховым отступом */
body.Runes .leftnav nav.block li ul {
    padding-left: 14px;
    margin-top: 4px;
    border-left: 1px dashed rgba(50, 58, 70, 0.6);
}

body.Runes .leftnav nav.block li a {
    color: #b0b8c0 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.Runes .leftnav nav.block li a:hover {
    color: #ffffff !important;
}

/* 14. Кнопка сворачивания/разворачивания боковой панели (#toggle-sidebar) */
body.Runes .toggle-btn {
    background: rgba(15, 17, 21, 0.95) !important;
    border: 1px solid rgba(40, 46, 55, 0.7) !important;
    color: #c5cbd3 !important;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
}

body.Runes button#toggle-sidebar.toggle-btn:hover {
    background: rgba(30, 36, 45, 0.95) !important;
    border-color: #6b8299 !important;
    color: #ffffff !important;
}

body.Runes .ptop {
	width: calc(100% - 52px);
}

body.Runes.sidebar-hidden #content .tab > .ul {
	width:100%;
}

/* Блок-контейнер категории */
body.Runes .cat_post {
    color: #e6e8ea !important; /* Мягкий серо-стальной цвет обычного текста «Категория:» */
}

/* Ссылка на категорию (слово «Войны») */
body.Runes .ptop .ptop_left a {
    background: rgba(20, 24, 30, 0.9) !important;
    border: 1px solid rgba(45, 52, 63, 0.7) !important;
    color: #b0b8c0 !important;
    padding: 2px 8px !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.2s ease;
	vertical-align:baseline;
}

/* Текст внутри ссылки категории */
body.Runes .cat_post a span {
    color: #b0b8c0 !important;
}

/* Эффект при наведении на ссылку категории */
body.Runes .cat_post a:hover {
    background: rgba(30, 36, 45, 0.9) !important;
    border-color: #6b8299 !important;
    color: #ffffff !important;
}

body.Runes .cat_post a:hover span {
    color: #ffffff !important;
}

body.fullpage.magic .ptop .cat_post {
  background: #0c1a26;
}

body.Runes #content + .right {
	background-color: #101418;
	color: #fdfdfd;
}

/* --- --- */
.body.Runes .skin a { background-color: #181a1b; border-color: #393e40; color: #bdb7af; background-image: none; }
body.Runes .skin .fontsize:hover, body.Runes .block_links.skin > *:hover, body.Runes .block_links.skin > .size *:hover, body.Runes .page-icons svg:hover, body.Runes .menu_toggle > *:hover, body.Runes .icon_close > :hover { color: #7ae9a3; background-color: #192a21; background-image: none; border-color: #1eb556; }
.block_links.skin a { color: var(--btn-text); background: #181a1b; border-colr: #393e40; }

body.Runes .menu_toggle > *:hover, body.Runes .icon_close > :hover { background-color: #fff; }

body.Runes .story_list li .short { border-color: #2a3846; background: #101418; }
body.Runes .story_list li .bttn, body.Runes .story_list li .tag a { background: #0c1a26; }
body.Runes .story_list li .short h3 a { color: #eaecf0; }

body.Runes.fullpage #content .tab div.active .descr {background: #0d1a27; border-color: #2a3846; }

body.Runes.fullpage #content .postnav { background: #0d1a27; }

body.Runes .save { color: #bdb7af; background: #181a1b; border-color: #393e40; }
body.Runes .copylink, body.Runes .block_links a { border-color: #393e40; }
body.Runes .copybutton svg, body.Runes .right .save svg { fill: #fdfdfd; }
body.Runes .page-icons .icobtn, body.dark .page-icons .icobtnff { background-color: #fff;}
body.Runes .x-twitter, body.dark .threads { border-color: #eaecf0; }

body.Runes .listtitle, body.dark .right .listtitle { color: #fff; }
body.Runes .right .listtitle {border-color: #2a3846; margin-bottom:12px; }

body.Runes .topmsg { background-color: #2a2111; border-color: #5a4513; border-left-color: #e39a00; color: #f1dfae; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); top:36px; }
body.Runes .topmsg .text .cript span, body.dark .topmsg .text .cript a:not(.copy) { color: #f0b429; }
body.Runes .topmsg .text .cript input { background: #101418; border-color: #5a4513; color: #eaecf0; -webkit-text-fill-color: #eaecf0; }
body.Runes .topmsg .close { color: #c9b27a; }
body.Runes .topmsg .close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
body.Runes .topmsg .text .cript a.copy {color: #FFF !important;}

body.Runes #content .tab > .ul { background: none; }
body.Runes #content .tab .ul > ul {border-bottom-color: #1f4a73;}
body.Runes #content .tab > .ul > ul > * { background: #082849; color: #FFF; }
body.Runes #content .tab > .ul > ul > a.edit > span, body.Runes #content .tab > .ul > ul > a.edit > * { color: #FFF; }
body.Runes #content .tab > .ul > ul > .active, body.Runes #content .tab > .ul > ul > .view { background:#0f1112; #FFF; }
body.Runes #content .tab > .ul > ul > * > * { color: #FFF !important; border-right: 1px solid #1f4a73; }
body.Runes #content .tab > .ul > ul .read {border-left: 1px solid #1f4a73;}

body.Runes.fullpage .google_translate { top: 26px; padding-top:10px; }
body.Runes .logo svg { color: #FFF; }

body.Runes .tonav { color: #e6e8ea !important; background: rgba(16, 20, 24, .94); border-color: #2a3846; box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .3); }
body.Runes .tonav::before { color: #e6e8ea !important; }
body.Runes .nextpage { color: #e6e8ea !important; background: rgba(16, 20, 24, .94); border-color: #2a3846; box-shadow:  0 1px 2px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .3); }


body.Runes #content h3 { background: #192a21; color: #fff; border: 0 !important; }

body.Runes.fullpage #content h1 { border-color: #2a3846;}

body.Runes .related .relimg.svg.rune, body.Runes .related .title.rune {display:block; text-align:center;}
body.Runes .related .relimg.svg.rune { text-align:center; width:60px; height:60px;  color: #999; margin:0 auto;}
body.Runes .related a:hover .relimg.svg.rune svg { color:#FFF; }
body.Runes.rube_list .related a { width: 100px; margin: 26px auto; }
body.Runes .related a.active { box-shadow:0 0 6px #FFF;}
body.Runes #content + .right:not(.rel) .opt {padding:0 10px;}
  
body.Runes.rube_list .story_list ul { column-count: auto !important; column-width: auto !important; display: flex; flex-wrap: wrap; gap: 26px; width: 100%; padding: 0; list-style: none; }
body.Runes.rube_list .story_list ul > li { flex: 0 0 calc((100% - 130px) / 6); max-width: calc((100% - 130px) / 6); display: flex; flex-direction: column; align-items: center; box-sizing: border-box; }
body.Runes.rube_list .story_list ul > li svg { width: 100px; height: 100px; }
body.Runes.rube_list .story_list ul > li h3 {text-align:center;}

#searchsuggestions { background-color: #0a0c0f/*#0c0d10*/ !important; }

@media all and (min-width: 1226px) {
	#content + .right.rel > div > .related {padding:0 10px 0 16px; box-sizing:border-box;}
}

.google_translate a {background: #0a0c0f;}

.mainpage > .col:nth-of-type(2) > section {background:none;}

.mainpage .Runes li { display:block; text-align:center; item-align: center; }

	.mainpage .Runes .Rune { display:block; }
	
	.mainpage .Runes b { color:#e6e8ea !important; }
	
		.mainpage .Runes li { margin-bottom: 6px; }
		
			.mainpage .Runes svg {max-width:60px; max-height:60px;}

body.Runes #searchsuggestions a:hover { background-color: #0d1a27; color: #e6e8ea; }