@charset "utf-8";

/* ==========================================================================
   ANINEWING board list skin
   Scope: all rules are namespaced under .anw-board to avoid leaking
   into other skins/layouts sharing the same page.
   ========================================================================== */

.anw-board {
	font-size: 13px;
	color: #333333;
}

.anw-board a {
	text-decoration: none;
	color: inherit;
}

/* -------------------- Category tabs -------------------- */

.anw-board-category {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	gap: 8px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0 0 2px;
}

.anw-board-category::-webkit-scrollbar {
	height: 4px;
}

.anw-board-category::-webkit-scrollbar-thumb {
	background-color: #dddddd;
	border-radius: 4px;
}

.anw-board-category > li {
	flex: none;
	position: relative;
}

.anw-board-category > li > a {
	display: inline-block;
	white-space: nowrap;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 500;
	color: #555555;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 5px;
}

.anw-board-category > li.on > a {
	background-color: #336edc;
	border-color: #336edc;
	color: #ffffff;
}

.anw-board-category > li > a:hover {
	border-color: #336edc;
	color: #336edc;
}

.anw-board-category > li.on > a:hover {
	color: #ffffff;
}

.anw-board-category-sub {
	display: none;
}

/* -------------------- List container -------------------- */

.anw-board-list {
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 5px;
	overflow: hidden;
}

.anw-board-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.anw-board-table .anw-col-no {
	width: 56px;
}

.anw-board-table .anw-col-author {
	width: 100px;
}

.anw-board-table .anw-col-date {
	width: 90px;
}

.anw-board-table .anw-col-count {
	width: 64px;
}

.anw-board-table .anw-col-check {
	width: 36px;
}

.anw-board-table thead th {
	background-color: #fafafa;
	border-bottom: 1px solid #e8e8e8;
	padding: 12px 6px;
	font-size: 13px;
	font-weight: 600;
	color: #444444;
	text-align: center;
	white-space: nowrap;
}

.anw-board-table thead th.anw-col-title {
	text-align: center;
}

.anw-board-table thead th a {
	color: inherit;
}

.anw-board-table tbody td {
	height: 36px;
	padding: 6px;
	border-bottom: 1px solid #eeeeee;
	font-size: 13px;
	color: #333333;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.anw-board-table tbody tr:last-child td {
	border-bottom: none;
}

.anw-board-table td.anw-col-title {
	text-align: left;
	padding-left: 10px;
	white-space: normal;
}

.anw-board-row:hover {
	background-color: #f8faff;
}

.anw-cate-badge {
	display: inline-block;
	margin-right: 6px;
	padding: 0;
	font-size: 11px;
	font-weight: 600;
	color: #336edc;
	background-color: transparent;
	vertical-align: middle;
}

.anw-title-link {
	font-size: 14px;
	font-weight: 400;
	color: #222222;
}

.anw-board-row:hover .anw-title-link {
	color: #336edc;
}

.anw-comment-count,
.anw-trackback-count {
	margin-left: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #336edc;
}

/* -------------------- Notice row -------------------- */

.anw-board-notice {
	background-color: #f4f8ff;
}

.anw-board-notice:hover {
	background-color: #eef4ff;
}

.anw-board-notice .anw-title-link {
	font-weight: 600;
}

.anw-badge-notice {
	display: inline-block;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #ffffff;
	background-color: #336edc;
	border-radius: 4px;
}

/* -------------------- Empty state -------------------- */

.anw-board-empty td {
	height: 120px;
	text-align: center;
	color: #999999;
	font-size: 13px;
	white-space: normal;
}

/* -------------------- Footer: search / pagination / actions -------------------- */

.anw-board-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
}

.anw-board-search {
	display: flex;
	align-items: center;
	gap: 6px;
	order: 1;
}

.anw-search-select {
	height: 38px;
	padding: 0 10px;
	font-size: 13px;
	color: #444444;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
}

.anw-search-input {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 12px;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
}

.anw-search-input:focus-within {
	border-color: #336edc;
}

.anw-search-input i {
	color: #999999;
	font-size: 13px;
}

.anw-search-input input {
	border: 0;
	outline: 0;
	font-size: 13px;
	width: 180px;
	color: #333333;
	background: transparent;
}

.anw-board-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 4px;
	order: 3;
	margin-top: 6px;
}

.anw-page-nav,
.anw-page-num,
.anw-page-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 6px;
	font-size: 13px;
	border-radius: 4px;
}

.anw-page-nav {
	color: #666666;
	border: 1px solid #e5e7eb;
}

.anw-page-nav:hover {
	border-color: #336edc;
	color: #336edc;
}

.anw-page-nav-disabled,
.anw-page-nav-disabled:hover {
	color: #cccccc;
	border-color: #eeeeee;
	cursor: default;
}

.anw-page-num {
	color: #555555;
}

.anw-page-num:hover {
	color: #336edc;
}

.anw-page-current {
	background-color: transparent;
	color: #336edc;
	font-weight: 700;
}

.anw-board-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	order: 2;
}

.anw-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 36px;
	padding: 0 14px;
	font-size: 13px;
	color: #555555;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	cursor: pointer;
}

.anw-btn:hover {
	border-color: #336edc;
	color: #336edc;
}

.anw-btn-write {
	background-color: #ffffff;
	border-color: #336edc;
	color: #336edc;
}

.anw-btn-write:hover {
	background-color: #f4f8ff;
	border-color: #2a5cc0;
	color: #2a5cc0;
}

.anw-btn-icon {
	width: 36px;
	padding: 0;
	justify-content: center;
}

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

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

	.anw-board-category > li > a {
		padding: 8px 14px;
		font-size: 13px;
	}

	.anw-board-table thead {
		display: none;
	}

	.anw-board-table,
	.anw-board-table tbody,
	.anw-board-table tr,
	.anw-board-table td {
		display: block;
		width: 100%;
	}

	.anw-board-table tbody tr {
		padding: 12px 14px;
	}

	.anw-board-table td {
		border-bottom: none;
		padding: 0;
		text-align: left;
		white-space: normal;
		height: auto;
	}

	.anw-board-table .anw-col-no,
	.anw-board-table .anw-col-check {
		display: none;
	}

	.anw-board-table td.anw-col-title {
		padding: 0 0 6px;
	}

	.anw-title-link {
		font-size: 14px;
	}

	.anw-board-table td.anw-col-author,
	.anw-board-table td.anw-col-date,
	.anw-board-table td.anw-col-count {
		display: inline-block;
		width: auto;
		font-size: 12px;
		color: #888888;
	}

	.anw-board-table td.anw-col-author::after,
	.anw-board-table td.anw-col-date::after {
		content: '\00b7';
		margin: 0 6px;
		color: #cccccc;
	}

	.anw-board-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.anw-board-search {
		order: 1;
	}

	.anw-search-input input {
		width: auto;
		flex: 1 1 auto;
	}

	.anw-board-actions {
		order: 2;
		justify-content: flex-end;
	}

	.anw-board-pagination {
		order: 3;
	}
}
