@charset "utf-8";

/* 세 위젯의 기본 모양은 여기서 관리하고, 영역별 차이는 최상위 모디파이어로 한정합니다. */
.rt-sidebar-widget {
	--rt-sidebar-row-height: 29px;
	--rt-sidebar-list-height: 0px;
	box-sizing: border-box;
	min-width: 0;
	padding: 15px 16px;
	border-radius: 5px;
	background: #f9f9f9;
	color: #333;
	font-size: 13px;
	line-height: 1.5;
}

.rt-sidebar-widget--member-ranking,
.rt-sidebar-widget--document-ranking {
	--rt-sidebar-list-height: calc(var(--rt-sidebar-row-height) * 5);
}

.rt-sidebar-widget [hidden] {
	display: none !important;
}

.rt-sidebar-widget__head {
	margin-bottom: 8px;
}

.rt-sidebar-widget__title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.rt-sidebar-widget__title-icon {
	display: block;
	flex: none;
	width: 1.3em;
	height: 1.3em;
	fill: currentColor;
}

.rt-sidebar-widget button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.rt-sidebar-widget__tabs {
	display: flex;
	gap: 12px;
	margin-bottom: 6px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e5e5;
	font-size: 12px;
}

.rt-sidebar-widget__tabs button + button::before,
.rt-sidebar-widget__paging button + button::before {
	display: inline-block;
	width: 1px;
	height: 10px;
	margin-right: 12px;
	background: #dedede;
	content: "";
}

.rt-sidebar-widget__tabs [aria-selected="true"] {
	color: var(--rt-color-primary, #2f6664);
	font-weight: 700;
}

.rt-sidebar-widget__list {
	min-height: var(--rt-sidebar-list-height);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rt-sidebar-widget__item {
	display: flex;
	align-items: center;
	gap: 3px;
	min-width: 0;
	min-height: var(--rt-sidebar-row-height);
	margin: 0;
	padding: 0;
}

.rt-sidebar-widget__rank {
	flex: none;
	font-variant-numeric: tabular-nums;
}

.rt-sidebar-widget__link {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: var(--rt-sidebar-row-height);
	color: inherit;
	text-decoration: none;
}

.rt-sidebar-widget a.rt-sidebar-widget__link:hover {
	color: var(--rt-color-primary, #2f6664);
	text-decoration: underline;
}

.rt-sidebar-widget__text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 라이믹스 회원 메뉴는 클릭 대상의 member_* 클래스를 읽으므로 링크가 클릭을 받습니다. */
.rt-sidebar-widget--member-ranking .rt-sidebar-widget__text {
	pointer-events: none;
}

.rt-sidebar-widget__media {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--rt-color-text-light, #767676);
}

.rt-sidebar-widget__media-icon {
	display: block;
	flex: none;
}

.rt-sidebar-widget__media-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rt-sidebar-widget__link:hover .rt-sidebar-widget__media,
.rt-sidebar-widget__link:focus-visible .rt-sidebar-widget__media {
	color: inherit;
}

.rt-sidebar-widget__date {
	flex: none;
	color: var(--rt-color-text-light, #767676);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rt-sidebar-widget__empty {
	box-sizing: border-box;
	min-height: var(--rt-sidebar-list-height);
	margin: 0;
	padding: 16px 0;
	color: var(--rt-color-text-light, #767676);
	word-break: keep-all;
}

.rt-sidebar-widget__paging {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 7px;
	font-size: 12px;
}

.rt-sidebar-widget__paging button:disabled {
	color: #aaa;
	cursor: default;
}

.rt-sidebar-widget a:focus-visible,
.rt-sidebar-widget button:focus-visible {
	outline: 2px solid var(--rt-color-primary, #2f6664);
	outline-offset: 2px;
}

@media (max-width: 767.99px) {
	.rt-sidebar-widget {
		--rt-sidebar-row-height: 36px;
		padding: 18px;
		font-size: 16px;
	}

	.rt-sidebar-widget__title {
		font-size: 16px;
	}

	.rt-sidebar-widget__tabs,
	.rt-sidebar-widget__paging {
		font-size: 14px;
	}

	.rt-sidebar-widget__date {
		font-size: 13px;
	}
}
