@charset "utf-8";
article{
	border-width: 0;
	height: fit-content;
	margin: auto;
	max-width: 720px;
}

.pageContent{
	max-width: 720px;
}

.pageContent, article{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.news-content :not(last-child){
	text-align: justify;
	text-indent: 24px;
	margin-bottom: 12px;
	word-break: break-word;
}

.news-content .news-header {
	line-height: 120%;
	margin-bottom: 0.5em;
}

.news-content a {
	color: var(--color-primaryB);
}

.news-meta {
	color: var(--color-primaryB);
	margin-top: 0.5em;
	display: flex;
	justify-content: right;
}

.share-news {
	border: none;
	padding: 0;
	font-size: inherit;
	color: inherit;
	margin-right: 0.5em;
	background: url(../icons/share.svg);
	background-size: calc(var(--fs-standart) - 2px) calc(var(--fs-standart) - 4px);
	background-repeat: no-repeat;
	background-position: right center;
	padding-right: var(--fs-standart);
	cursor: pointer;
	user-select: none;
	display: none;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

.topic-news {
	margin-top: 1em;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 30px;
	row-gap: 20px;
	justify-content: center;
}

.news-preview-list {
	display: flex;
	flex-direction: column;
	row-gap: 20px;
}

.news-preview.default {
	display: flex;
	column-gap: 12px;
	padding: 12px;
	outline: 2px solid var(--color-secondaryA);
	box-shadow: 0 0 10px 0 var(--color-primaryA);
}

.news-preview.compact {
	width: 200px;
}

.news-preview-thumbnail {
	height: 120px;
	width: 120px;
	border-radius: 3px;
}

.news-preview-thumbnail.default {
	background: var(--color-primaryB);
	padding: 12px;
}

.news-preview-info {
	display: flex;
	flex-direction: column;
	row-gap: 4px;
}

.news-preview-meta {
	display: flex;
	justify-content: space-between;
	font-size: 80%;
}

.news-preview-date {
	color: var(--color-primaryA);
	font-weight: bold;
}

.news-preview-txt-link {
	margin-right: 2em;
	color: var(--color-primaryB);
}

.news-preview-excerpt {
	line-height: calc( var(--fs-standart)*1.5 );
	max-height: calc( var(--fs-standart)*7.5 );
	overflow: hidden;
}

.compact .news-preview-excerpt {
	line-height: calc( var(--fs-standart)*1.5 );
	max-height: calc( var(--fs-standart)*4.5 );
	overflow: hidden;
}

.news-preview-header {
	color: var(--color-primaryB);
	font-size: var(--fs-header);
	font-weight: bold;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.compact .news-preview-header {
	display: none;
	max-width: 380px;
	font-size: inherit;
	line-height: var(--fs-standart);
	height: var(--fs-standart);
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.pages-selection {
	display: flex;
	width: 100%;
	padding: 1em 10px 0 10px;
	justify-content: center;
	column-gap: 12px;
	font-size: var(--fs-header);
}

.page-selection-link {
	color: var(--color-primaryB);
}

.page-selection-link.current {
	color: var(--color-primaryA);
	text-decoration: none;
	pointer-events: none;
	cursor: default;
}

/** Адаптив **/
@media screen and (max-width: 1024px){
	article{
		margin: 0 auto;
		height: unset;
	}

	.share-news {
		display: unset;
	}
}

@media screen and (max-width: 720px){
	.single .vis-imp {
		right: unset;
		left: 12px;
	}

	.news-preview.compact {
		display: flex;
		width: 100%;
		column-gap: 14px;
	}

	.compact .news-preview-header {
		display: unset;
	}

	.compact .news-preview-thumbnail{
		height: 100px;
		width: 100px;
	}

	.compact .news-preview-txt-link {
		text-align: right;
	}
}

@media screen and (max-width: 540px){
	.news-preview.default{
		outline: none;
	}

	.news-preview-thumbnail {
		height: 100px;
		width: 100px;
	}

	.news-preview-thumbnail.default {
		padding: 8px;
	}

	.compact .news-preview-header {
		max-width: 290px;
	}
}

@media screen and (max-width: 440px){
	.share-news {
		color: transparent;
		background-size: contain;
		margin-right: 0.3em;
	}

	.compact .news-preview-thumbnail{
		height: 80px;
		width: 80px;
	}

	.compact .news-preview-header {
		max-width: 200px;
	}

	[text-size="medium"] .news-content :not(last-child), [text-size="large"] .news-content :not(last-child){
		text-align: unset;
	}

	.news-content :not(last-child){
		text-indent: 12px;
		margin-bottom: 6px;
	}
}