.webtwin-subjects {
	--webtwin-subjects-text: #344b5e;
	width: 100%;
	color: var(--webtwin-subjects-text);
}

.webtwin-subjects [hidden] {
	display: none !important;
}

.webtwin-subjects__search {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 16px;
	padding: 18px 36px;
	border: 1px solid #dce6ed;
	border-radius: 4px;
	background: #f5f8fa;
	box-shadow: 8px 10px 24px rgba(44, 73, 94, 0.05);
}

.webtwin-subjects__search-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.25;
	color: #91a2b0;
}

.webtwin-subjects__search-input {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #526474;
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.webtwin-subjects__search-input::placeholder {
	color: inherit;
	opacity: 0.82;
}

.webtwin-subjects__search-input::-webkit-search-cancel-button {
	cursor: pointer;
}

.webtwin-subjects__alphabet {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 42px;
}

.webtwin-subjects__alphabet-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 14px;
	row-gap: 12px;
}

.webtwin-subjects__letter {
	display: inline-flex;
	min-width: 0;
	min-height: 0;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 7px 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #102534;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.webtwin-subjects__letter:hover,
.webtwin-subjects__letter:focus-visible {
	background: rgba(36, 106, 164, 0.1);
	color: #246aa4;
	outline: none;
}

.webtwin-subjects__letter.is-active {
	background: #246aa4;
	color: #fff;
}

.webtwin-subjects__groups {
	margin-top: 52px;
}

.webtwin-subjects__group {
	scroll-margin-top: 32px;
}

.webtwin-subjects__group + .webtwin-subjects__group {
	margin-top: 48px;
}

.webtwin-subjects__heading {
	margin: 0 0 28px;
	padding: 0;
	color: #102534;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.webtwin-subjects__entries {
	column-count: 3;
	column-gap: 60px;
}

.webtwin-subjects__item,
.webtwin-subjects__more {
	break-inside: avoid;
	page-break-inside: avoid;
}

.webtwin-subjects__item {
	margin: 0 0 16px;
	padding: 0;
	line-height: 1.35;
}

.webtwin-subjects__item-link {
	display: inline;
	margin: 0;
	padding: 0;
	color: #344b5e;
	font-size: 15px;
	font-weight: 400;
	line-height: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 0.2s ease;
}

a.webtwin-subjects__item-link:hover,
a.webtwin-subjects__item-link:focus {
	color: #f26a2e;
}

.webtwin-subjects__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #f26a2e;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.webtwin-subjects__more:hover,
.webtwin-subjects__more:focus-visible {
	color: #d94f18;
	background: transparent;
	outline: none;
}

.webtwin-subjects__more svg {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
	transition: transform 0.2s ease;
}

.webtwin-subjects__more:hover svg,
.webtwin-subjects__more:focus-visible svg {
	transform: translateX(3px);
}

.webtwin-subjects__empty {
	margin: 42px 0 0;
	color: #526474;
}

.webtwin-subjects__notice {
	padding: 14px 16px;
	border: 1px dashed #b7bec7;
	border-radius: 4px;
	background: #f6f7f8;
	color: #4b5563;
	font-size: 13px;
	line-height: 1.4;
}

@media (max-width: 1024px) {
	.webtwin-subjects__entries {
		column-count: 2;
	}
}

@media (max-width: 767px) {
	.webtwin-subjects__search {
		gap: 12px;
		padding: 14px 16px;
	}

	.webtwin-subjects__search-input {
		font-size: 13px;
	}

	.webtwin-subjects__alphabet {
		gap: 26px;
		margin-top: 28px;
	}

	.webtwin-subjects__alphabet-row {
		column-gap: 5px;
		row-gap: 12px;
	}

	.webtwin-subjects__letter {
		padding: 7px 6px;
		font-size: 14px;
	}

	.webtwin-subjects__groups {
		margin-top: 52px;
	}

	.webtwin-subjects__group + .webtwin-subjects__group {
		margin-top: 34px;
	}

	.webtwin-subjects__heading {
		margin-bottom: 20px;
		font-size: 18px;
	}

	.webtwin-subjects__entries {
		column-count: 1;
	}

	.webtwin-subjects__item {
		margin-bottom: 16px;
	}

	.webtwin-subjects__item-link,
	.webtwin-subjects__more {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.webtwin-subjects__letter,
	.webtwin-subjects__item-link,
	.webtwin-subjects__more,
	.webtwin-subjects__more svg {
		transition: none;
	}
}
