/**
 * Portal compat: minimal structural rules from v2/style/main.css.
 * No /v2/, /style/, /images/, or legacy-ui asset URLs.
 * Visual chrome is owned by nev_site.css / library_nev.css.
 */

/* --- helpers --- */
.clearfix:after {
	content: '.';
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}

html[xmlns] .clearfix {
	display: block;
}

.text-center {
	text-align: center;
}

.text-red {
	color: #7e1d0a;
}

.text-green {
	color: #51660f;
}

.text-orange {
	color: #d13b00;
}

.text-brown {
	color: #7f542e;
}

/* --- popup shader / shell (JS toggles display) --- */
.b-popup-shader {
	display: none;
	position: fixed;
	z-index: 998;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.7;
	cursor: pointer;
	background: #0e0404;
}

.b-common-popup {
	display: none;
	position: fixed;
	z-index: 999;
	left: 50%;
	top: 50%;
	width: 330px;
	margin: 0 0 0 -165px;
}

.b-common-block {
	position: relative;
}

.b-common-block__cont {
	position: relative;
}

.b-common-block__close {
	position: absolute;
	top: 0;
	right: 0;
	cursor: pointer;
}

/* --- forms (layout only; fields styled in nev_site) --- */
.b-common-form__table {
	margin: 0 auto;
	border-collapse: collapse;
}

.b-common-form__table td {
	padding: 3px 5px 0 0;
	vertical-align: top;
}

.b-common-form__table td.valign-middle {
	vertical-align: middle;
}

.b-common-form__label {
	display: inline-block;
	padding: 1px 0 0;
	font-weight: bold;
	font-size: 1.2em;
}

.b-common-form__field,
.b-common-form__field-inner {
	display: inline-block;
	position: relative;
	background: none;
}

.b-common-form__field-inner input[type='text'],
.b-common-form__field-inner input[type='password'] {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* --- typography baseline --- */
.b-common-typography {
	overflow: hidden;
	margin: 10px 0 0;
	font-size: 12px;
}

.b-common-typography.nomargin {
	margin: 0;
}

.b-common-typography p {
	margin: 0 0 10px;
}

/* --- icons: layout + text fallback instead of sprite sheet --- */
.b-icon-32x32 {
	display: inline-block;
	vertical-align: middle;
	background: none;
	font-style: normal;
	line-height: 1;
	text-align: center;
}

.b-icon-32x32_time {
	width: 19px;
	height: 21px;
}

.b-icon-32x32_time::before {
	content: "\23F1";
	font-size: 14px;
}

.b-icon-32x32_comment {
	width: 12px;
	height: 17px;
}

.b-icon-32x32_comment::before {
	content: "\1F4AC";
	font-size: 12px;
}

.b-icon-32x32_info {
	width: 15px;
	height: 15px;
}

.b-icon-32x32_info::before {
	content: "i";
	font-size: 11px;
	font-weight: 700;
}

/* --- buttons: plain CSS fallback (portal pages override in nev_site / library_nev) --- */
.b-button-red-5,
.b-button-green-5,
.b-button-brown-2 {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0;
}

.b-button-red-5__inner,
.b-button-green-5__inner,
.b-button-brown-2__inner {
	display: block;
	font-weight: bold;
	font-size: 12px;
	line-height: 1.35;
	text-align: center;
	background: none;
}

.b-button-red-5__inner {
	min-height: 26px;
	padding: 5px 16px;
	color: #ffa533;
	background: linear-gradient(180deg, #8b1f12 0%, #5c1209 100%);
	border: 1px solid rgba(255, 180, 80, 0.45);
	border-radius: 4px;
}

.b-button-brown-2__inner {
	min-height: 20px;
	padding: 2px 10px;
	color: #4c3f2f;
	background: rgba(120, 90, 55, 0.35);
	border: 1px solid rgba(180, 140, 80, 0.45);
	border-radius: 4px;
}

.b-button-brown-2_active .b-button-brown-2__inner,
.b-button-brown-2_active:hover .b-button-brown-2__inner {
	color: #fce9c9;
	background: rgba(90, 58, 28, 0.75);
}

/* --- divider 2: structural only (nev replaces visuals on forum) --- */
.b-divider-2 {
	position: relative;
	overflow: hidden;
	clear: both;
	height: 16px;
	margin: 10px 0 0;
	font-size: 0;
}

.b-divider-2__l {
	float: left;
	width: 50%;
}

.b-divider-2__r {
	display: block;
	overflow: hidden;
}

.b-divider-2__l-inner,
.b-divider-2__r-inner,
.b-divider-2__c {
	font-size: 0;
	background: none;
}

.b-divider-2__l-inner,
.b-divider-2__r-inner {
	height: 16px;
}

.b-divider-2__l-inner {
	margin-right: 43px;
}

.b-divider-2__r-inner {
	margin-left: 43px;
}

.b-divider-2__c {
	position: absolute;
	left: 50%;
	top: 0;
	width: 86px;
	height: 16px;
	margin: 0 0 0 -43px;
}
