@charset "utf-8";

/* ==========================================================================
   ANINEWING board form/read/comment skin
   Scope: read view (.anw-read), write form (.anw-write), comments
   (.anw-comment), and confirm dialogs (.anw-context-message / .anw-context-data).
   ========================================================================== */

/* -------------------- Shared card + button base -------------------- */

.anw-read,
.anw-write,
.anw-comment,
.anw-context-message,
.anw-context-data {
	box-sizing: border-box;
	font-size: 14px;
	color: #333333;
}

.anw-read *,
.anw-write *,
.anw-comment *,
.anw-context-message *,
.anw-context-data * {
	box-sizing: border-box;
}

.anw-form-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: auto !important;
	height: 36px !important;
	line-height: 34px !important;
	padding: 0 14px !important;
	margin: 0;
	font-size: 13px !important;
	color: #555555 !important;
	text-align: center;
	background-color: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 4px !important;
	cursor: pointer;
	text-decoration: none !important;
	text-shadow: none;
	box-shadow: none;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.anw-form-btn:hover,
.anw-form-btn:active {
	border-color: #336edc !important;
	color: #336edc !important;
	background-color: #ffffff !important;
}

.anw-form-btn-primary,
.anw-form-btn.anw-form-btn-primary {
	background-color: #ffffff !important;
	border-color: #336edc !important;
	color: #336edc !important;
	font-weight: 600;
}

.anw-form-btn-primary:hover,
.anw-form-btn.anw-form-btn-primary:hover {
	background-color: #f4f8ff !important;
	border-color: #2a5cc0 !important;
	color: #2a5cc0 !important;
}

.anw-form-btn-danger,
.anw-form-btn.anw-form-btn-danger {
	color: #d9534f !important;
}

.anw-form-btn-danger:hover,
.anw-form-btn.anw-form-btn-danger:hover {
	background-color: #fdf1f0 !important;
	border-color: #d9534f !important;
	color: #d9534f !important;
}

.anw-write .btn_insert.anw-form-btn,
.anw-comment .btn_insert.anw-form-btn {
	font-weight: 600;
}

.anw-read .iText,
.anw-write .iText,
.anw-comment .iText {
	height: 36px;
	padding: 0 10px;
	font-size: 13px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	color: #333333;
}

.anw-read .iText:focus,
.anw-write .iText:focus,
.anw-comment .iText:focus {
	outline: none;
	border-color: #336edc;
}

/* -------------------- Read view -------------------- */

.anw-read-header {
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 5px;
	padding: 16px 18px;
	margin-bottom: 16px;
}

.anw-read-header h1.anw-read-title {
	width: auto;
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	color: #222222;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

.anw-read-title a {
	color: #222222;
	text-decoration: none;
}

.anw-read-category {
	display: inline-block;
	margin-right: 8px;
	padding: 0;
	font-size: 12px;
	font-weight: 600;
	color: #336edc;
	background-color: transparent;
	vertical-align: middle;
}

.anw-read-meta {
	margin: 0;
	font-size: 13px;
	color: #888888;
}

.anw-read-meta > span {
	margin-right: 14px;
}

.anw-read-meta i {
	margin-right: 3px;
	color: #aaaaaa;
}

.anw-read .read_body {
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 5px;
	padding: 18px;
	margin-bottom: 16px;
	min-height: 160px;
}

.anw-read .read_footer {
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 5px;
	padding: 14px 18px;
}

.anw-read .read_footer .tags a {
	color: #336edc;
}

.anw-read .read_footer .btnArea {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #eeeeee;
}

.anw-read .read_footer .btnArea .anw-btnArea-left {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.anw-read .read_footer .btnArea .etc {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: auto;
}

.anw-read .read_footer .vote {
	display: flex;
	justify-content: center;
	margin-top: 0;
	margin-bottom: 14px;
}

.anw-read .read_footer .vote ul {
	display: flex;
	gap: 10px;
}

.anw-read .read_footer .vote a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 76px;
	min-height: 56px;
	padding: 10px 16px 14px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	border: 1px solid #e5e7eb;
	background-color: #ffffff;
	border-radius: 6px;
	color: #888888;
	box-sizing: border-box;
}

.anw-read .read_footer .vote i {
	font-size: 17px;
	color: inherit;
}

.anw-read .read_footer .vote li:first-child a {
	color: #2f9e5b;
}

.anw-read .read_footer .vote li:first-child a:hover {
	border-color: #2f9e5b;
	background-color: #f0faf4;
}

.anw-read .read_footer .vote li:last-child a {
	color: #d9534f;
}

.anw-read .read_footer .vote li:last-child a:hover {
	border-color: #d9534f;
	background-color: #fdf1f0;
}

/* -------------------- Write form -------------------- */

.anw-write .write_header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 5px 5px 0 0;
	border-bottom: none;
	padding: 16px 18px;
}

.anw-write .write_header select {
	height: 36px;
	padding: 0 10px;
	font-size: 13px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	color: #444444;
}

.anw-write .write_header .iText[name="title"] {
	flex: 1 1 auto;
	height: 40px;
	font-size: 15px;
}

.anw-write .write_editor {
	background-color: #ffffff;
	border-left: 1px solid #e8e8e8;
	border-right: 1px solid #e8e8e8;
	padding: 0;
}

.anw-write .write_footer {
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 0 0 5px 5px;
	padding: 16px 18px;
}

.anw-write .write_option {
	margin-bottom: 12px;
	font-size: 13px;
	color: #555555;
}

.anw-write .write_option label {
	margin-right: 14px;
}

.anw-write .write_author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.anw-write .write_author .item {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.anw-write .write_captcha {
	margin-bottom: 12px;
}

/* -------------------- Confirm dialogs (delete / password) -------------------- */

.anw-context-data {
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 5px 5px 0 0;
	border-bottom: none;
	padding: 14px 16px;
}

.anw-context-data .title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: #222222;
}

.anw-context-data .author {
	margin: 0;
	font-size: 13px;
	color: #888888;
}

.anw-context-message {
	display: block;
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 5px;
	padding: 18px;
	text-align: center;
}

.anw-context-data + .anw-context-message {
	border-radius: 0 0 5px 5px;
}

.anw-context-message h1 {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 500;
	color: #333333;
}

.anw-context-message .btnArea {
	display: flex;
	justify-content: center;
	gap: 8px;
}

/* -------------------- Comments -------------------- */

.anw-comment {
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 5px;
	padding: 16px 18px;
	margin-top: 16px;
}

.anw-comment .fbHeader {
	height: auto;
	padding: 0 0 16px;
	border-top: none;
}

.anw-comment .fbHeader h2 {
	display: block;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #222222;
}

.anw-comment .fbHeader h2 i {
	color: #336edc;
	margin-right: 4px;
}

.anw-comment .fbHeader h2 em {
	color: #336edc;
	font-style: normal;
}

.anw-comment .fbList {
	list-style: none;
	margin: 0;
	padding: 0;
}

.anw-comment .fbItem {
	position: relative;
	padding: 14px 0 14px 70px;
	border-top: 1px solid #eeeeee;
}

.anw-comment .fbItem:first-child {
	border-top: none;
}

.anw-comment .fbItem.indent {
	position: relative;
	border-left: 2px solid #f0f4ff;
	background-repeat: no-repeat;
}

.anw-comment .fbItem.indent1 { padding-left: 110px; background-position: 26px 18px; }
.anw-comment .fbItem.indent2 { padding-left: 130px; background-position: 46px 18px; }
.anw-comment .fbItem.indent3 { padding-left: 150px; background-position: 66px 18px; }
.anw-comment .fbItem.indent4 { padding-left: 170px; background-position: 86px 18px; }
.anw-comment .fbItem.indent5 { padding-left: 190px; background-position: 106px 18px; }
.anw-comment .fbItem.indent6 { padding-left: 210px; background-position: 126px 18px; }
.anw-comment .fbItem.indent7 { padding-left: 230px; background-position: 146px 18px; }
.anw-comment .fbItem.indent8 { padding-left: 250px; background-position: 166px 18px; }

.anw-comment .fbItem.indent .fbMeta .profile {
	left: auto;
}

.anw-comment .fbItem.indent1 .fbMeta .profile { left: 54px; }
.anw-comment .fbItem.indent2 .fbMeta .profile { left: 74px; }
.anw-comment .fbItem.indent3 .fbMeta .profile { left: 94px; }
.anw-comment .fbItem.indent4 .fbMeta .profile { left: 114px; }
.anw-comment .fbItem.indent5 .fbMeta .profile { left: 134px; }
.anw-comment .fbItem.indent6 .fbMeta .profile { left: 154px; }
.anw-comment .fbItem.indent7 .fbMeta .profile { left: 174px; }
.anw-comment .fbItem.indent8 .fbMeta .profile { left: 194px; }

.anw-comment .fbMeta {
	display: block;
	float: none;
	width: auto;
	padding: 0;
	margin-bottom: 6px;
}

.anw-comment .fbItem > .rhymix_content.xe_content {
	margin: 0;
	padding-top: 10px;
	padding-bottom: 14px;
}

.anw-comment .fbItem > .action {
	margin-left: 0;
}

.anw-comment .fbMeta .profile {
	position: absolute;
	top: 14px;
	left: 0;
	width: 56px;
	height: 56px;
	margin: 0;
	background: none;
	border-radius: 50%;
	background-color: #eef2f9;
	object-fit: cover;
}

.anw-comment .anw-fbMeta-info {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.anw-comment .fbMeta .author {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: #333333;
}

.anw-comment .fbMeta .author a,
.anw-comment .fbMeta .author strong {
	color: #333333;
	text-decoration: none;
}

.anw-comment .fbMeta .time {
	margin: 0;
	font-size: 11px;
	line-height: 1.2;
	color: #999999;
}

.anw-comment .action {
	float: none;
	margin: 8px 0 0;
	padding: 0;
	text-align: left;
	font-size: 12px;
}

.anw-comment .action a {
	margin-right: 10px;
	color: #888888;
	text-decoration: none;
}

.anw-comment .action a:hover {
	color: #336edc;
}

.anw-comment .write_comment {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eeeeee;
}

.anw-comment .write_author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}

.anw-comment .pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 14px 0;
	font-size: 13px;
}

.anw-comment .pagination strong {
	color: #336edc;
	font-weight: 700;
}

.anw-comment .pagination a {
	color: #666666;
	text-decoration: none;
}

.anw-comment .pagination a:hover {
	color: #336edc;
}

/* -------------------- Responsive: mobile -------------------- */

@media screen and (max-width: 720px) {

	.anw-read-header,
	.anw-read .read_body,
	.anw-read .read_footer,
	.anw-write .write_header,
	.anw-write .write_footer,
	.anw-context-data,
	.anw-context-message,
	.anw-comment {
		padding: 14px 16px;
	}

	.anw-read-title {
		font-size: 18px;
	}

	.anw-write .write_header .iText[name="title"] {
		flex: 1 1 100%;
	}

	.anw-write .write_author,
	.anw-comment .write_author {
		flex-direction: column;
		align-items: flex-start;
	}

	.anw-comment .fbItem.indent {
		margin-left: 14px;
		padding-left: 10px;
	}

	.anw-read .read_footer .btnArea {
		flex-direction: column;
		align-items: stretch;
	}

	.anw-read .read_footer .btnArea .etc {
		margin-left: 0;
	}

	.anw-read .read_footer .vote a {
		width: 68px;
		height: 50px;
	}
}
