/*
 * Retail Forum Archives
 * Presentation for the archived official Lineage II retail forums.
 */

.ra-toolbar {
	margin-bottom: 1.25rem;
}

.ra-search .input,
.ra-search .button {
	height: auto;
}

.ra-meta-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	font-size: 0.8125rem;
	color: #6b7280;
}

.ra-meta-bar a {
	font-weight: 600;
}

.ra-meta-sep {
	color: #d1d5db;
}

/* Pagination must stay on a single line even when the theme's Bulma build
   ships without the pagination component. */
.ra-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 1rem 0 1.5rem;
	font-size: 0.875rem;
}

.ra-pagination .pagination-previous,
.ra-pagination .pagination-next {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	background: #fff;
	color: #374151;
	text-decoration: none;
	white-space: nowrap;
}

.ra-pagination .pagination-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ra-pagination .pagination-list > li {
	display: inline-block;
	margin: 0;
}

.ra-pagination .pagination-link,
.ra-pagination .pagination-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	background: #fff;
	color: #374151;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.ra-pagination .pagination-link:hover {
	border-color: #c7cbd1;
	color: #111827;
}

.ra-pagination .pagination-link.is-current {
	background: #485ec4;
	border-color: #485ec4;
	color: #fff;
	font-weight: 600;
}

.ra-pagination .pagination-ellipsis {
	border-color: transparent;
	background: transparent;
	color: #9ca3af;
}

/* ------------------------------------------------------------------ posts */

.ra-post {
	padding: 0;
	overflow: hidden;
}

.ra-post + .ra-post {
	margin-top: 1.25rem;
}

.ra-post-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.65rem 0.9rem;
	background: #f7f7f9;
	border-bottom: 1px solid #ececf0;
	font-size: 0.8125rem;
}

.ra-post-author {
	font-weight: 700;
	color: #1f2937;
}

.ra-post-meta {
	color: #6b7280;
	white-space: nowrap;
}

.ra-post-anchor {
	margin-left: 0.6rem;
	color: #9ca3af;
	font-variant-numeric: tabular-nums;
}

.ra-post-anchor:hover {
	color: #4b5563;
}

.ra-post-text {
	padding: 0.9rem;
	margin: 0;
	overflow-wrap: break-word;
}

.ra-post-text p:first-child {
	margin-top: 0;
}

.ra-post-text p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------- listings */

.ra-listing {
	font-size: 0.9375rem;
	margin-bottom: 0;
}

.ra-listing td {
	vertical-align: middle;
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
}

.ra-thread-title a {
	font-weight: 600;
}

.ra-listing .ra-col-date {
	white-space: nowrap;
	width: 1%;
	padding-right: 1.25rem;
}

.ra-listing .ra-row-date {
	white-space: nowrap;
	font-size: 0.875rem;
	color: #6b7280;
	font-variant-numeric: tabular-nums;
}

.ra-unarchived {
	color: #9ca3af;
}

.ra-unarchived-tag {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0 0.5rem;
	font-size: 0.65rem;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #9ca3af;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	vertical-align: middle;
	white-space: nowrap;
}

tr.ra-row-missing td {
	background: #fbfbfc;
}

/* -------------------------------------------------------- search results */

.ra-result-count {
	margin-bottom: 0.75rem;
}

.ra-result {
	margin-bottom: 1rem;
}

.ra-result .title {
	margin-bottom: 0.35rem;
}

.ra-result-meta {
	margin-bottom: 0.5rem;
}

.ra-result-snippet {
	margin: 0;
	font-size: 0.9375rem;
	color: #4b5563;
	overflow-wrap: break-word;
}

.ra-result-snippet mark {
	background: #fff3bf;
	color: inherit;
	padding: 0 0.1em;
}

.ra-archive-results {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 2px solid #ececf0;
}

/* ------------------------------------------------------- landing elements */

.ra-stats {
	margin: 1.25rem 0 2rem;
}

.ra-category-title {
	margin-bottom: 0.75rem;
}

.ra-forum-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.ra-forum-list > li {
	padding: 0.35rem 0;
	border-bottom: 1px dashed #ececf0;
}

.ra-forum-list .ra-forum-list {
	margin: 0.35rem 0 0 0;
	padding-left: 0.9rem;
	border-left: 2px solid #ececf0;
	border-bottom: 0;
}

.ra-forum-list .ra-forum-list > li {
	border-bottom: 1px dashed #f3f3f5;
}

.ra-forum-count {
	margin-left: 0.5rem;
	white-space: nowrap;
}

.ra-letters {
	margin-bottom: 1.25rem;
}

.ra-letters .tag {
	min-width: 2.75rem;
	justify-content: center;
}

/* ------------------------------------------------------------- responsive */

@media screen and (max-width: 768px) {
	.ra-post-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.ra-post-meta {
		white-space: normal;
	}

	.ra-meta-bar {
		font-size: 0.75rem;
	}

	.ra-listing {
		font-size: 0.875rem;
	}
}

/* BBCode converted from the original posts. */
.ra-post-text blockquote.ra-quote {
	margin: 0.75rem 0;
	padding: 0.4rem 0.9rem;
	border-left: 3px solid #d1d5db;
	background: #f8f9fb;
	color: #4b5563;
}

.ra-post-text blockquote.ra-quote cite {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.8125rem;
	font-style: normal;
	color: #6b7280;
}

.ra-post-text .ra-bbcode-list {
	margin: 0.5rem 0 0.5rem 1.25rem;
	list-style: disc;
}

.ra-post-text .ra-bbcode-code {
	margin: 0.5rem 0;
	padding: 0.5rem 0.75rem;
	background: #f7f7f9;
	border: 1px solid #ececf0;
	font-size: 0.875rem;
	white-space: pre-wrap;
	overflow-x: auto;
}
