/* Theme styles set display on .sidebar_topic-item, which would override the hidden attribute. */
.hub-relinking .hub-relinking__extra[hidden] {
	display: none !important;
}

/* Word-count page Another word count: every item is visible. The theme's critical CSS hides items after the 30th
   (the 5th on mobile) and only its lazily loaded main stylesheet lets list-full show them again. */
.type-filter-content.hub-relinking .type-filter-content__list.list-full .type-filter-content__item {
	visibility: visible;
}

/* "Show more": text link with the chevron of .essay-nav__link_next, pointing down, up when expanded. */
.hub-relinking .hub-relinking__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #1b99e5;
	font: inherit;
	cursor: pointer;
}

.hub-relinking .hub-relinking__toggle:focus:not(:focus-visible) {
	outline: none;
}

.hub-relinking .hub-relinking__toggle::after {
	content: "";
	width: 6px;
	height: 9px;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="9" viewBox="0 0 6 9"><path fill="%231b99e5" fill-rule="evenodd" d="M4.071 4.243L.536.707 1.243 0l3.535 3.536.707.707-4.242 4.242-.707-.707L4.07 4.243z"/></svg>') no-repeat center;
	transform: rotate(90deg);
	transition: transform 0.3s ease-in-out;
}

.hub-relinking .hub-relinking__toggle[aria-expanded="true"]::after {
	transform: rotate(-90deg);
}

/* Debug mode (?hub_debug=1, administrators only). */
.hub-relinking-debug__note {
	display: block;
	font: 11px/1.4 ui-monospace, Menlo, Consolas, monospace;
	color: #6b5900;
}

/* Essay page Related Topics in debug mode: topics as a list, label to the right of the pill.
   The extra class beats the theme rules, whose stylesheet loads later. */
.hub-relinking--debug.related-topics-section .related-topics-items {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.hub-relinking--debug.related-topics-section .related-topics-items h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 10px;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.hub-relinking--debug.related-topics-section .related-topics-items .related-topics-smpl {
	margin: 0;
	padding: 2px 10px;
}

.hub-relinking--debug .hub-relinking-debug__note {
	display: inline;
}

.hub-relinking-debug__legend {
	color: #6b5900;
}

.hub-relinking-debug {
	margin: 16px 0 24px;
	padding: 10px 12px;
	border: 1px dashed #c9a400;
	background: #fffbe6;
	color: #333;
	font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
	overflow-wrap: anywhere;
}

.hub-relinking-debug .is-ok {
	color: #1f7a4d;
}

.hub-relinking-debug .is-warning {
	color: #b42318;
	font-weight: bold;
}

.hub-relinking-debug ul {
	margin: 4px 0 0 16px;
	padding: 0;
}
