/* «Секс и здоровье»: перекраска варианта besocial стандартной темы ElkArte.
   Палитра «пыльная роза и индиго»: индиго-слива #3a3358 / #4d4472, лаванда #b9acd9 / #efe9f4, пыльная роза #c98d92 / #f3e2e1,
   тёплое молоко #f6f1ee, шалфей для спокойных отметок #6f9a92, чернила #2b2733. Шрифты: Golos Text (текст), Lora (заголовки). */
:root {
	--sz-plum: #3a3358; --sz-plum-2: #4d4472; --sz-plum-3: #6a5f93; --sz-lav: #b9acd9; --sz-lav-l: #efe9f4; --sz-lav-ll: #f8f5fb;
	--sz-rose: #c98d92; --sz-rose-d: #a8656c; --sz-rose-l: #f3e2e1; --sz-milk: #f6f1ee; --sz-sage: #6f9a92; --sz-ink: #2b2733; --sz-mute: #6c6577;
	--sz-line: #e4dbe2;
}
html { background: var(--sz-milk); }
body {
	background: var(--sz-milk); color: var(--sz-ink);
	font-family: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.55;
}
a, a:link, a:visited { color: var(--sz-plum-2); }
a:hover { color: var(--sz-rose-d); }
h1, h2, h3, .category_header, #forumtitle, .board_name, .topic_name, .poster h4 { font-family: Lora, Georgia, "Times New Roman", serif; }

/* общая ширина и каркас */
.wrapper, #main_menu.wrapper, #top_section .wrapper, #header.wrapper, #wrapper { max-width: 1180px; }
#wrapper { background: transparent; border: 0; box-shadow: none; padding-top: 6px; }

/* верхняя полоса: меню и поиск на сливовом фоне */
#menu_nav { background: var(--sz-plum); border: 0; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
#main_menu .linklevel1, #main_menu .linklevel1:link, #main_menu .linklevel1:visited { color: #ece6f6; text-shadow: none; }
#main_menu .linklevel1 .icon { color: #ece6f6; }
#main_menu .active, #main_menu .linklevel1:hover, #main_menu .listlevel1:hover .linklevel1, #main_menu .linklevel1:focus, #main_menu .linklevel1.active {
	background: var(--sz-plum-2) !important; color: #fff !important; border-color: transparent !important; box-shadow: inset 0 -3px 0 var(--sz-rose);
}
#main_menu .menulevel2 { background: #fff; border: 1px solid var(--sz-line); border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(58,51,88,.14); }
#main_menu .linklevel2, #main_menu .linklevel2:link, #main_menu .linklevel2:visited { color: var(--sz-plum); }
#main_menu .linklevel2:hover { background: var(--sz-lav-l); color: var(--sz-plum); }
#collapse_button { display: none !important; }

#top_section { background: transparent; }
#top_section .wrapper { background: transparent; border: 0; padding: 10px 0 0; }
#top_section_notice #password_login { display: none; }
#search_form { background: #fff; border: 1px solid var(--sz-line); border-radius: 999px; overflow: hidden; padding: 0 4px 0 12px; }
#search_form .input_text, #quicksearch { border: 0 !important; background: transparent !important; box-shadow: none !important; font-family: inherit; }
#search_form button { background: transparent; border: 0; }
#search_form .icon { color: var(--sz-plum-3); }

/* шапка: знак слева, название и слоган, справа аккуратная плашка 18+ */
#header {
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
	background-color: #fff !important; border: 1px solid var(--sz-line); border-radius: 18px; margin: 12px auto 10px; padding: 18px 24px; box-sizing: border-box;
	box-shadow: 0 1px 0 #fff inset, 0 8px 22px -14px rgba(58,51,88,.35);
	background-image: radial-gradient(circle at 96% -40%, rgba(201,141,146,.18) 0, rgba(201,141,146,0) 46%), radial-gradient(circle at 70% 160%, rgba(185,172,217,.22) 0, rgba(185,172,217,0) 50%);
}
#forumtitle { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; margin: 0; padding: 0; font-size: 1em; text-shadow: none; float: none; }
#forumtitle .forumlink, #forumtitle > a { grid-column: 2; grid-row: 1; color: var(--sz-plum) !important; font-family: Lora, Georgia, serif; font-size: 2em; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
#logobox { display: contents; }
#logo { grid-column: 1; grid-row: 1 / span 2; width: 64px; height: 64px; max-height: none; margin: 0; float: none; }
#siteslogan { grid-column: 2; grid-row: 2; display: block; float: none; margin: 4px 0 0; padding: 0; max-width: 640px; color: var(--sz-mute);
	font-family: "Golos Text", "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.45; }
.sz-age { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 12px 6px 6px; border: 1px solid #e3cfd1; border-radius: 999px; background: #fbf4f3; color: var(--sz-mute); font-size: 12.5px; line-height: 1.3; max-width: 230px; }
.sz-age b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sz-rose-l); color: var(--sz-rose-d); border: 1.5px solid var(--sz-rose); font: 700 13px/1 "Golos Text", Arial, sans-serif; letter-spacing: .02em; }

/* хлебные крошки */
.navigate_section { background: transparent; border: 0; box-shadow: none; padding: 2px 0 8px; }
.navigate_section .linktree, .navigate_section .linktree a { color: var(--sz-mute); }
.navigate_section .linktree .icon, .navigate_section .i-home { filter: grayscale(1) brightness(.62) sepia(.5) hue-rotate(215deg) saturate(2.2); }
.navigate_section { padding-left: 2px; }

/* памятка на главной */
.sz-memo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 0 18px; }
.sz-memo__card, .sz-memo__card:link, .sz-memo__card:visited { display: block; padding: 16px 18px 15px; border-radius: 14px; background: #fff; border: 1px solid var(--sz-line); color: var(--sz-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.sz-memo__card:hover { border-color: var(--sz-lav); transform: translateY(-1px); color: var(--sz-ink); }
.sz-memo__k { display: block; font: 600 1.08em/1.3 Lora, Georgia, serif; color: var(--sz-plum); margin-bottom: 6px; }
.sz-memo__k::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sz-sage); margin: 0 8px 2px 0; vertical-align: middle; }
.sz-memo__t { display: block; font-size: 13.5px; color: var(--sz-mute); line-height: 1.5; }
.sz-memo__card--alert { background: #fbf4f3; border-color: #ecd3d4; }
.sz-memo__card--alert .sz-memo__k::before { background: var(--sz-rose-d); }

/* заголовки категорий: светлая лаванда, серифный шрифт, розовая черта слева */
html .category_header, html .forum_category .category_header, html .content_category .category_header, html .forumposts .category_header {
	background: var(--sz-lav-l); color: var(--sz-plum); border: 1px solid var(--sz-line); border-bottom: 0; border-radius: 14px 14px 0 0;
	font-family: Lora, Georgia, serif; font-weight: 600; font-size: 1.22em; letter-spacing: 0; text-transform: none; padding: 12px 18px 12px 30px; margin-bottom: 0; position: relative; box-shadow: none; text-shadow: none;
}
html .category_header::before { content: ""; position: absolute; left: 16px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--sz-rose); }
.category_header a, .category_header a:link, .category_header a:visited { color: var(--sz-plum); }
.forum_category { border: 1px solid var(--sz-line); border-top: 0; border-radius: 0 0 14px 14px; background: #fff; margin: 0 0 18px; overflow: hidden; box-shadow: none; }
.board_row { border-bottom: 1px solid #efe8ee; background: #fff; }
.board_row:last-child { border-bottom: 0; }
.board_row:hover { background: var(--sz-lav-ll); }
.board_name a, a.board_name, .board_info .board_name { color: var(--sz-plum) !important; font-family: Lora, Georgia, serif; font-weight: 600; font-size: 1.08em; }
.board_name a:hover { color: var(--sz-rose-d) !important; }
.board_description { color: var(--sz-mute); font-size: 13.5px; }
.board_info .icon_anchor { padding: 6px 6px 0 2px; }
span.board_icon { position: relative; width: 44px; height: 30px; line-height: 30px; }
span.board_icon::before { content: "" !important; position: absolute; left: 2px; top: 2px; width: 26px; height: 26px; border: 2px solid var(--sz-lav); border-radius: 50%; background: none !important; mask: none !important; -webkit-mask: none !important; box-sizing: border-box; }
span.board_icon::after { content: ""; position: absolute; left: 15px; top: 2px; width: 26px; height: 26px; border: 2px solid var(--sz-rose); border-radius: 50%; box-sizing: border-box; }
span.board_icon.i-board-new::after, span.board_icon.i-board-on::after { background: rgba(201,141,146,.2); }
.board_latest, .board_stats { color: var(--sz-mute); font-size: 13px; }
.board_latest a { color: var(--sz-plum-2); }

/* список тем */
.topic_listing { border: 1px solid var(--sz-line); border-radius: 0 0 14px 14px; background: #fff; }
.topic_listing > li { border-bottom: 1px solid #efe8ee; }
.topic_listing > li:nth-child(even) { background: #fcfafd; }
.topic_name a, .topic_details h4 a, .topic_details .topic_name a { color: var(--sz-plum) !important; font-family: Lora, Georgia, serif; font-weight: 600; }
.topic_name a:hover { color: var(--sz-rose-d) !important; }
.topic_listing .stickybg, .stickybg { background: #fbf4f3 !important; }
.topic_latest, .topic_stats { color: var(--sz-mute); }

/* сообщения: карточка автора на светлой лаванде, тело — белый лист */
.forumposts .post_wrapper, .post_wrapper { background: #fff; border: 1px solid var(--sz-line); border-radius: 14px; box-shadow: none; overflow: hidden; }
.forumposts > .windowbg, .forumposts .windowbg, .forumposts .windowbg2 { background: transparent; border: 0; }
.poster { background: var(--sz-lav-ll); border-right: 1px solid #ece4f0; }
.poster h4, .poster h4 a, .poster .name { color: var(--sz-plum) !important; font-family: Lora, Georgia, serif; font-weight: 600; font-size: 1.05em; }
.poster img.avatar, .poster .avatar img { border-radius: 16px; border: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #e1d6e6; }
.keyinfo, .keyinfo h5, .keyinfo .smalltext, .postinfo { color: var(--sz-mute); }
.keyinfo h5 a { color: var(--sz-plum-2); }
.inner, .messageContent { font-size: 1.02em; line-height: 1.65; color: var(--sz-ink); }
.bbc_standard_quote, .bbc_quote, blockquote.bbc_standard_quote, blockquote.bbc_alternate_quote {
	background: var(--sz-milk); border: 0; border-left: 3px solid var(--sz-rose); border-radius: 0 10px 10px 0; color: #3f3a48; box-shadow: none;
}
.quoteheader, .quoteheader a, .bbc_quote_header, .codeheader { color: var(--sz-plum-2); font-family: Lora, Georgia, serif; font-style: italic; font-weight: 500; }
.bbc_code, code.bbc_code { background: #2f2a44; color: #ede8f6; border-radius: 8px; border: 0; }
.signature { border-top: 1px dashed #e3d9e6; color: var(--sz-mute); }

/* карточка автора: звание, сообщения, город, возраст и отношения видны сразу, без наведения */
.poster .listlevel1.subsections > .menulevel2 { display: block !important; position: static !important; visibility: visible !important; opacity: 1 !important; box-shadow: none !important; border: 0 !important; background: transparent !important; min-width: 0 !important; width: auto !important; padding: 4px 0 0 !important; margin: 0 !important; }
.poster .listlevel1.subsections:hover:after, .poster .subsections > a:after { display: none !important; }
.poster .menulevel2 > li { display: none; }
.poster .menulevel2 > li.postgroup, .poster .menulevel2 > li.membergroup, .poster .menulevel2 > li.custom, .poster .menulevel2 > li.postcount { display: block; padding: 1px 0; line-height: 1.4; background: none; }
.poster .menulevel2 > li.postgroup, .poster .menulevel2 > li.membergroup {
	display: inline-block; margin: 2px 0 6px; padding: 2px 10px; border-radius: 999px; background: var(--sz-rose-l); color: var(--sz-rose-d); font-weight: 600; font-size: 11.5px; letter-spacing: .01em;
}
.poster .menulevel2 > li.custom, .poster .menulevel2 > li.postcount { font-size: 12px; color: var(--sz-mute); }

/* ссылки в сообщениях: свой стиль форума — «ширма в кабинете»: под словом складки медицинской ширмы-гармошки
   высотой 5px (светлая и тёмная створки пыльной розы, SVG data-URI, шаг 10px), без подчёркивания и значка, 600;
   при наведении ширма «складывается» (шаг 6px), створки уходят в индиго, текст темнеет */
.inner a.bbc_link, .inner a.bbc_link:link, .inner a.bbc_link:visited, .bbc_link:link, .bbc_link:visited, .signature a.bbc_link {
	display: inline; vertical-align: baseline; line-height: inherit;
	color: #4a3f75; font-weight: 600; text-decoration: none; box-shadow: none !important; border: 0; padding: 0 0 5px; overflow-wrap: anywhere;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5'%3E%3Cpolygon points='0,5 1.6,0 5,0 5,5' fill='%23e3bfc2'/%3E%3Cpolygon points='5,5 5,0 8.4,0 10,5' fill='%23b8848a'/%3E%3C/svg%3E") repeat-x 0 100% / 10px 5px;
	-webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .3s ease, color .2s ease;
}
.inner a.bbc_link:hover, .bbc_link:hover, .signature a.bbc_link:hover {
	color: #2f2850;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5'%3E%3Cpolygon points='0,5 1.6,0 5,0 5,5' fill='%23b9acd9'/%3E%3Cpolygon points='5,5 5,0 8.4,0 10,5' fill='%235b4f8a'/%3E%3C/svg%3E");
	background-size: 6px 5px;
}
.inner a.bbc_link::after, .bbc_link::after { content: none !important; }

/* кнопки и пагинация */
.button_submit, .linkbutton, a.linkbutton:link, a.linkbutton:visited, input[type="submit"], button.button_submit {
	background: var(--sz-plum); background-image: none; color: #fff !important; border: 1px solid var(--sz-plum); border-radius: 999px; box-shadow: none; text-shadow: none; font-family: inherit;
}
.button_submit:hover, .linkbutton:hover, input[type="submit"]:hover { background: var(--sz-plum-2); color: #fff !important; }
.pagelinks .current_page, .pagelinks a:hover, .pagelinks .navPages:hover { background: var(--sz-plum); color: #fff; border-color: var(--sz-plum); border-radius: 8px; }
.pagelinks a, .pagelinks .navPages { border-radius: 8px; }

/* профиль */
#profileview .content, #basicinfo, #detailedinfo, .profile_center .content { background: #fff; border-color: var(--sz-line); border-radius: 14px; }
#basicinfo h4, #basicinfo .name { color: var(--sz-plum); font-family: Lora, Georgia, serif; }
#basicinfo img.avatar { border-radius: 18px; }
#detailedinfo dt { color: var(--sz-mute); }

/* подвал */
#footer_section { background: var(--sz-plum); color: #d9d2e8; border-top: 4px solid var(--sz-rose); margin-top: 26px; }
#footer_section .wrapper { background: transparent; border: 0; }
#footer_section a, #footer_section a:link, #footer_section a:visited { color: #fff; }
#footer_section .copyright { font-size: 13px; }

/* служебное: RSS, свёртка шапки, легенда, «отметить всё прочитанным», стрелки «вверх/вниз» */
#button_rss, .rssfeeds, #upshrink_header, .board_legend, #mark_all_read, #posting_icons, #gotop, #gobottom { display: none !important; }

/* планшет и телефон */
@media (max-width: 900px) {
	.sz-memo { grid-template-columns: 1fr; gap: 10px; }
	#header { grid-template-columns: 1fr; padding: 14px 16px; border-radius: 14px; }
	.sz-age { max-width: none; justify-self: start; }
}
@media (max-width: 640px) {
	#forumtitle { grid-template-columns: 48px 1fr; column-gap: 12px; }
	#logo { width: 48px; height: 48px; }
	#forumtitle .forumlink, #forumtitle > a { font-size: 1.45em; }
	#siteslogan { font-size: 13px; }
	.sz-age span { display: none; }
	.sz-age { padding: 4px; border: 0; background: transparent; }
	.sz-age b { width: 32px; height: 32px; font-size: 12px; }
	#header { grid-template-columns: 1fr auto; }
}

/* поправки после просмотра скриншотов */
#forumposts .category_header, html #forumposts > .category_header { background: var(--sz-lav-l); color: var(--sz-plum); border: 1px solid var(--sz-line); border-radius: 14px; margin-bottom: 12px; }
#forumposts .category_header img { display: none; }
#forumposts .nextlinks, #forumposts .nextlinks a { font-family: "Golos Text", Arial, sans-serif; font-size: 13px; font-weight: 500; color: var(--sz-mute); }
.forumposts .postarea, .post_wrapper .postarea { background: transparent !important; }
.post_wrapper { background: linear-gradient(90deg, var(--sz-lav-ll) 0, var(--sz-lav-ll) 13em, #ece4f0 13em, #ece4f0 calc(13em + 1px), #fff calc(13em + 1px)) !important; }
.post_wrapper > aside, .post_wrapper .poster { background: transparent !important; border: 0 !important; }
@media (max-width: 768px) { .post_wrapper { background: #fff !important; } }
.poster .icons, .poster li.icons { display: none !important; }
hr.post_separator { border: 0; height: 0; margin: 10px 0; }
.keyinfo .post_subject { color: var(--sz-mute); font-family: Lora, Georgia, serif; font-weight: 500; }
.keyinfo h5, .keyinfo h5 a, .keyinfo time { color: var(--sz-mute) !important; font-weight: 500; }
input[type="submit"], .button_submit, button.button_submit, #search_submit, .jump_to input[type="submit"] { background: var(--sz-plum) !important; color: #fff !important; border-color: var(--sz-plum) !important; }
.linkbutton, a.linkbutton:link, a.linkbutton:visited { background: #fff; color: var(--sz-plum) !important; border: 1px solid var(--sz-line); }
.linkbutton:hover { background: var(--sz-lav-l); color: var(--sz-plum) !important; }
.pagesection .pagelinks .current_page { border-radius: 8px; }

/* профиль: меню, белые блоки; встроенный «Возраст: нет данных» и «Время» скрыты (возраст — своё поле профиля), без пустых «Контакты» и «Подпись» */
.admin_menu .linklevel1, .admin_menu .linklevel1.active, .admin_menu .listlevel1:hover .linklevel1 { background: var(--sz-plum) !important; background-image: none !important; color: #fff !important; border-color: var(--sz-plum) !important; border-radius: 999px; text-shadow: none; }
.admin_menu .menulevel2 { background: #fff; border-color: var(--sz-line); }
.admin_menu .linklevel2, .admin_menu .linklevel3 { color: var(--sz-plum) !important; }
#tabs, #tabs .ui-tabs-panel, .profile_center, .profile_content, .profileblock, #detailedinfo, #basicinfo { background: #fff !important; }
#tabs { border: 1px solid var(--sz-line); border-radius: 14px; padding: 10px; }
#tabs > ul li a { color: var(--sz-plum); }
.profileblock, #detailedinfo, #basicinfo { border: 0; }
.cat_img_stats_info + .profileblock dl > dt:first-of-type, .cat_img_stats_info + .profileblock dl > dd:first-of-type,
.cat_img_stats_info + .profileblock dl > dt:last-of-type, .cat_img_stats_info + .profileblock dl > dd:last-of-type { display: none; }
.profileblock_left:has(.cat_img_contacts), .profileblock_right:has(.cat_img_write) { display: none; }
#basicinfo .username h4, #basicinfo .position { color: var(--sz-rose-d); font-family: "Golos Text", Arial, sans-serif; font-size: 14px; font-weight: 600; }
.profileblock dt, #detailedinfo dt { color: var(--sz-mute); font-weight: 600; }

/* телефон: в сообщении только ник автора (карточка с полями — в профиле), меню без синих плашек, шапка с полями */
@media (max-width: 768px) {
	.poster .listlevel1.subsections > .menulevel2 { display: none !important; }
	.poster h4, .poster .name { text-align: left; }
	#main_menu .linklevel1, #main_menu .linklevel1.active, #main_menu .listlevel1:hover .linklevel1 { background: transparent !important; border: 0 !important; box-shadow: none !important; }
	#main_menu .linklevel1 .icon, #main_menu .i-home, #main_menu .i-sign-in { filter: grayscale(1) brightness(2.2); }
	#header, #header.wrapper { margin: 10px 8px !important; width: auto !important; max-width: none !important; }
	#main_menu .linklevel1 { border: 0 !important; }
	#search_form { margin: 0 8px; }
}

/* список тем: без легенды значков, перейти в раздел остаётся */
#topic_icons > p.floatleft { display: none; }
#topic_icons { background: #fff; border: 1px solid var(--sz-line); border-radius: 14px; }
.topic_details .topic_name a, .topic_details h4 a, .topic_details > h4 { font-family: Lora, Georgia, serif; font-weight: 600; color: var(--sz-plum); }
.topic_listing .topic_latest .i-last_post, .topic_listing a .icon { filter: grayscale(1) brightness(.6) sepia(.5) hue-rotate(215deg) saturate(2); }
