/* ==========================================================================
   Jaunumi list (158:2 / 187:2) and article (160:423, 163:2 / 187:187, 187:416)
   ========================================================================== */

/* ------------------------------------------------------------ News list */

.news-list {
	padding: 70px 0;
}

.news-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 24px;
	margin-bottom: 50px;
	border-bottom: 1px solid var(--c-line);
}

.news-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.news-tabs__tab {
	display: block;
	padding: 11px 19px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	font-size: 12px;
	font-weight: var(--fw-bold);
	line-height: 20px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.news-tabs__tab:hover {
	border-color: var(--c-ink);
}

.news-tabs__tab.is-active {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-white);
}

.news-toolbar__count {
	flex: none;
	color: var(--c-muted);
	font-size: 14px;
	line-height: 22px;
}

.news-toolbar__count strong {
	margin-left: 2px;
	color: var(--c-ink);
}

/* Featured post */
.featured-post {
	position: relative;
	display: grid;
	grid-template-columns: 560px minmax(0, 1fr);
	margin-bottom: 50px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	transition: border-color var(--t-fast) var(--ease);
}

.featured-post:hover {
	border-color: var(--c-ink);
}

.featured-post__media {
	min-height: 672px;
	overflow: hidden;
	background: var(--c-placeholder);
}

.featured-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-post__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 22px;
	padding: 60px 70px;
}

.featured-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	color: var(--c-muted);
	font-size: 12px;
	font-weight: var(--fw-bold);
	line-height: 22px;
	letter-spacing: 0.125em;
	text-transform: uppercase;
}

.featured-post__tag {
	padding: 3px 14px;
	background: var(--c-ink);
	color: var(--c-white);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1091em;
}

.featured-post__tag-short,
.featured-post__excerpt-short {
	display: none;
}

.featured-post__title {
	font-size: 40px;
	line-height: 48px;
	letter-spacing: 0.0075em;
}

.featured-post__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.featured-post:hover .featured-post__title {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.featured-post__excerpt {
	color: var(--c-muted);
	font-size: 17px;
	line-height: 28px;
}

.featured-post__facts {
	display: flex;
	align-self: stretch;
	margin: 0;
	padding: 22px 0;
	border-block: 1px solid var(--c-line);
}

.featured-post__fact {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	padding: 0 20px;
	border-left: 1px solid var(--c-line);
}

.featured-post__fact:first-child {
	padding-left: 0;
	border-left: 0;
}

.featured-post__fact dt {
	color: var(--c-muted);
	font-size: 11px;
	font-weight: var(--fw-bold);
	line-height: 16px;
	letter-spacing: 0.1091em;
	text-transform: uppercase;
}

.featured-post__fact dd {
	margin: 0;
	font-size: 15px;
	font-weight: var(--fw-bold);
	line-height: 22px;
}

.featured-post__button {
	min-height: 0;
	padding: 16px 34px;
}

/* Grid */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
	margin: 0;
}

.news-grid > li {
	display: flex;
}

.news-grid .post-card {
	flex: 1;
}

.news-list .pagination {
	padding-top: 70px;
}

.news-empty {
	padding: 40px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	font-size: 17px;
	font-weight: var(--fw-bold);
}

/* ------------------------------------------------------------- Article */

.article {
	padding: 36px 0 70px;
}

.article__head {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 1040px;
}

.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	color: var(--c-muted);
	font-size: 12px;
	font-weight: var(--fw-bold);
	line-height: 22px;
	letter-spacing: 0.125em;
	text-transform: uppercase;
}

.article__cat {
	padding: 3px 14px;
	background: var(--c-ink);
	color: var(--c-white);
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1091em;
	transition: background-color var(--t-fast) var(--ease);
}

.article__cat:hover {
	background: var(--c-ink-80);
}

.article__title {
	font-size: clamp(30px, calc(30px + (100vw - 375px) * 20 / 1065), 50px);
	line-height: 1.2;
	letter-spacing: 0.012em;
}

.article__lead {
	color: var(--c-muted);
	font-size: clamp(17px, calc(17px + (100vw - 375px) * 3 / 1065), 20px);
	line-height: 1.6;
}

.article__cover {
	margin: 44px 0;
	aspect-ratio: 1400 / 620;
	overflow: hidden;
	background: var(--c-placeholder);
}

.article__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 80px;
	align-items: start;
}

.article__side {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Two columns: the side column stays in view next to long content (gallery, video), like the text pages' contents box.
   Not with the event box: that column (~940 px) is taller than a laptop screen and its bottom would stay out of reach. */
@media (min-width: 1024px) {
	.article__side:not(:has(.event-box)) {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}
}

/* Article content (classic editor HTML) */
.article__content {
	display: flex;
	flex-direction: column;
	gap: 26px;
	color: var(--c-muted);
	font-size: 17px;
	line-height: 30px;
}

.article__content > * {
	margin: 0;
}

.article__content h2 {
	margin-top: 30px;
	color: var(--c-ink);
	font-size: 28px;
	line-height: 36px;
	letter-spacing: 0.0107em;
}

.article__content > h2:first-child {
	margin-top: 0;
}

.article__content h3 {
	margin-top: 14px;
	color: var(--c-ink);
	font-size: 22px;
	line-height: 30px;
}

.article__content a:not([class]) {
	color: var(--c-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.article__content a:not([class]):hover {
	color: var(--c-muted);
}

.article__content ul:not([class]),
.article__content ol:not([class]) {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 4px 0;
	list-style: none;
	color: var(--c-ink);
	font-size: 16px;
	line-height: 26px;
}

.article__content ul:not([class]) li {
	position: relative;
	padding-left: 24px;
}

.article__content ul:not([class]) li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 0;
	width: 8px;
	height: 8px;
	background: var(--c-ink);
}

.article__content ol:not([class]) {
	counter-reset: item;
}

.article__content ol:not([class]) li {
	position: relative;
	padding-left: 32px;
	counter-increment: item;
}

.article__content ol:not([class]) li::before {
	content: counter(item, decimal-leading-zero);
	position: absolute;
	left: 0;
	color: var(--c-muted);
	font-weight: var(--fw-bold);
}

.article__content blockquote {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px 36px;
	background: var(--c-white);
	border-left: 4px solid var(--c-ink);
}

.article__content blockquote p {
	color: var(--c-ink);
	font-size: 22px;
	font-weight: var(--fw-bold);
	line-height: 34px;
}

.article__content cite {
	color: var(--c-muted);
	font-size: 12px;
	font-style: normal;
	font-weight: var(--fw-bold);
	line-height: 22px;
	letter-spacing: 0.125em;
	text-transform: uppercase;
}

.article__content figure {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.article__content figure img {
	width: 100%;
	max-height: 760px;
	object-fit: contain;
	background: var(--c-bg-2);
}

.article__content figcaption {
	color: var(--c-muted);
	font-size: 13px;
	line-height: 20px;
}

/* Gallery block */
.a-gallery,
.a-video {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 10px 0;
}

.a-gallery__head,
.a-video__head {
	display: flex;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--c-ink);
	color: var(--c-ink);
	font-size: 13px;
	font-weight: var(--fw-bold);
	line-height: 22px;
	letter-spacing: 0.1154em;
	text-transform: uppercase;
}

.a-gallery__count {
	color: var(--c-muted);
	font-size: 12px;
	letter-spacing: 0.125em;
}

.a-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a-gallery__tile {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--c-placeholder);
	cursor: zoom-in;
}

.a-gallery__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms var(--ease);
}

.a-gallery__tile:hover img {
	transform: scale(1.04);
}

.a-gallery__more {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: rgba(24, 23, 22, 0.65);
	color: var(--c-white);
	font-size: 11px;
	font-weight: var(--fw-bold);
	line-height: 16px;
	letter-spacing: 0.1364em;
	text-transform: uppercase;
}

.a-gallery__more strong {
	font-size: 28px;
	line-height: 36px;
	letter-spacing: 0;
}

.a-gallery__more--mobile {
	display: none;
}

/* Video block */
.a-video {
	gap: 12px;
}

.a-video__player {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--c-ink);
}

.a-video__player img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.a-video__player::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(24, 23, 22, 0.45);
}

.a-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 96px;
	height: 96px;
	transform: translate(-50%, -50%);
	transition: transform var(--t-fast) var(--ease);
}

.a-video__play svg {
	width: 100%;
	height: 100%;
}

button.a-video__player:hover .a-video__play {
	transform: translate(-50%, -50%) scale(1.06);
}

.a-video__title,
.a-video__duration {
	position: absolute;
	bottom: 20px;
	z-index: 1;
	padding: 7px 12px;
	font-size: 12px;
	font-weight: var(--fw-bold);
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.a-video__title {
	left: 20px;
	background: var(--c-white);
	color: var(--c-ink);
}

.a-video__duration {
	right: 20px;
	background: var(--c-ink);
	color: var(--c-white);
}

/* Back + share */
.a-share {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid var(--c-line);
}

.a-share__links {
	display: flex;
	align-items: center;
	gap: 10px;
}

.a-share__label {
	color: var(--c-muted);
	font-size: 12px;
	font-weight: var(--fw-bold);
	line-height: 22px;
	letter-spacing: 0.125em;
	text-transform: uppercase;
}

.a-share .social-links__link svg {
	width: 25px;
	height: 25px;
}

.a-share__copy {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--c-line);
	color: var(--c-ink);
	transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.a-share__copy svg {
	width: 16px;
	height: 16px;
}

.a-share__copy:hover {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-white);
}

/* Sidebar: event box */
.event-box {
	background: var(--c-white);
	border: 1px solid var(--c-line);
}

.event-box__head {
	margin: -1px -1px 0;
	padding: 20px 28px;
	background: var(--c-ink);
	color: var(--c-white);
	font-size: 12px;
	line-height: 22px;
	letter-spacing: 0.125em;
	text-transform: uppercase;
}

.event-box__rows {
	margin: 0;
}

.event-box__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 28px;
	border-bottom: 1px solid var(--c-line);
}

.event-box__row dt {
	color: var(--c-muted);
	font-size: 11px;
	font-weight: var(--fw-bold);
	line-height: 16px;
	letter-spacing: 0.1091em;
	text-transform: uppercase;
}

.event-box__row dd {
	margin: 0;
	font-size: 16px;
	font-weight: var(--fw-bold);
	line-height: 24px;
}

.event-box__actions {
	padding: 22px 28px 26px;
}

.event-box__actions .btn {
	min-height: 0;
	padding-block: 16px;
}

/* Sidebar: latest posts */
.latest-posts__head {
	padding-bottom: 12px;
	border-bottom: 2px solid var(--c-ink);
	font-size: 13px;
	line-height: 22px;
	letter-spacing: 0.1154em;
	text-transform: uppercase;
}

.latest-posts__list {
	margin: 0;
}

.latest-posts__item {
	position: relative;
	display: flex;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid var(--c-line);
}

.latest-posts__img {
	flex: none;
	width: 104px;
	height: 78px;
	object-fit: cover;
	background: var(--c-placeholder);
}

.latest-posts__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.latest-posts__date {
	color: var(--c-muted);
	font-size: 11px;
	font-weight: var(--fw-bold);
	line-height: 16px;
	letter-spacing: 0.1364em;
}

.latest-posts__title {
	font-size: 15px;
	font-weight: var(--fw-bold);
	line-height: 22px;
}

.latest-posts__title::after {
	content: "";
	position: absolute;
	inset: 0;
}

.latest-posts__item:hover .latest-posts__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Other posts */
.other-posts__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.other-posts__intro {
	margin-bottom: 0;
}

.other-posts__grid {
	overflow: visible;
}

.other-posts__dots,
.other-posts__all-mobile {
	display: none;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1439px) {
	.featured-post {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
	}

	.featured-post__body {
		padding: 48px;
	}

	.featured-post__title {
		font-size: 32px;
		line-height: 40px;
	}

	.article__layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 56px;
	}
}

@media (max-width: 1279px) {
	.news-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.featured-post__media {
		min-height: 520px;
	}
}

@media (max-width: 1023px) {
	.featured-post {
		grid-template-columns: minmax(0, 1fr);
	}

	.featured-post__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.article__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.other-posts__grid {
		display: flex;
		gap: 12px;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
		overflow-x: auto;
	}

	.other-posts__grid > li {
		width: min(320px, 80vw);
	}

	.other-posts__dots {
		display: flex;
		justify-content: flex-start;
		margin-top: 20px;
	}
}

@media (max-width: 767px) {
	.page-news .hero-page {
		min-height: 280px;
	}

	.news-list {
		padding: 0 0 40px;
	}

	.news-toolbar {
		margin: 0 calc(-1 * var(--gutter)) 8px;
		padding: 20px 0 16px;
		border: 0;
	}

	.news-tabs {
		width: 100%;
	}

	.news-tabs__list {
		flex-wrap: nowrap;
		gap: 8px;
		padding-inline: var(--gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.news-tabs__list::-webkit-scrollbar {
		display: none;
	}

	.news-tabs__tab {
		padding: 9px 15px;
		font-size: 11px;
		line-height: 18px;
		letter-spacing: 0.0545em;
	}

	.news-toolbar__count {
		display: none;
	}

	.featured-post {
		margin-bottom: 16px;
	}

	.featured-post__media {
		aspect-ratio: 343 / 412;
	}

	.featured-post__body {
		gap: 14px;
		padding: 22px 18px 24px;
	}

	.featured-post__meta {
		gap: 10px;
		font-size: 10px;
		line-height: 14px;
		letter-spacing: 0.12em;
	}

	.featured-post__tag {
		padding: 5px 10px;
		font-size: 10px;
		line-height: 14px;
		letter-spacing: 0.12em;
	}

	.featured-post__tag-long,
	.featured-post__excerpt-long {
		display: none;
	}

	.featured-post__tag-short,
	.featured-post__excerpt-short {
		display: inline;
	}

	.featured-post__title {
		font-size: 24px;
		line-height: 30px;
		letter-spacing: 0.0125em;
	}

	.featured-post__excerpt {
		font-size: 15px;
		line-height: 24px;
	}

	.featured-post__facts {
		flex-direction: column;
		padding: 0;
		border-bottom: 0;
	}

	.featured-post__fact {
		flex-direction: row;
		justify-content: space-between;
		gap: 16px;
		padding: 10px 0;
		border-left: 0;
		border-bottom: 1px solid var(--c-line);
	}

	.featured-post__fact dt {
		font-size: 10px;
		letter-spacing: 0.12em;
	}

	.featured-post__fact dd {
		font-size: 13px;
		line-height: 18px;
		text-align: right;
	}

	.featured-post__button {
		align-self: stretch;
		min-height: 58px;
	}

	.news-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.news-list .pagination {
		padding-top: 16px;
	}

	/* Article */
	.article {
		padding: 0 0 40px;
	}

	.article__head {
		gap: 14px;
	}

	.article__meta {
		gap: 8px;
		font-size: 10px;
		line-height: 16px;
		letter-spacing: 0.12em;
	}

	.article__cat {
		padding: 4px 10px;
		font-size: 10px;
		line-height: 14px;
		letter-spacing: 0.12em;
	}

	.article__time-long {
		display: none;
	}

	.article__title {
		line-height: 1.2;
	}

	.article__lead {
		line-height: 1.6;
	}

	.article__cover {
		margin: 24px calc(-1 * var(--gutter)) 40px;
		aspect-ratio: 375 / 250;
	}

	.article__content {
		gap: 20px;
		font-size: 15px;
		line-height: 26px;
	}

	.article__content h2 {
		margin-top: 8px;
		font-size: 22px;
		line-height: 28px;
	}

	.article__content ul:not([class]),
	.article__content ol:not([class]) {
		gap: 10px;
		font-size: 14px;
		line-height: 22px;
	}

	.article__content ul:not([class]) li {
		padding-left: 18px;
	}

	.article__content ul:not([class]) li::before {
		top: 8px;
		width: 6px;
		height: 6px;
	}

	.article__content blockquote {
		padding: 22px 24px 22px 20px;
	}

	.article__content blockquote p {
		font-size: 18px;
		line-height: 26px;
	}

	.article__content cite {
		font-size: 10px;
		letter-spacing: 0.12em;
	}

	.article__content figure img {
		max-height: 520px;
	}

	.a-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.a-gallery__item--desktop {
		display: none;
	}

	.a-gallery__more--desktop {
		display: none;
	}

	.a-gallery__more--mobile {
		display: flex;
	}

	.a-gallery__more strong {
		font-size: 22px;
		line-height: 28px;
	}

	.a-video__play {
		width: 56px;
		height: 56px;
	}

	.a-video__title {
		display: none;
	}

	.a-video__duration {
		right: 12px;
		bottom: 12px;
		font-size: 10px;
	}

	.a-share {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 24px;
	}

	.a-share__copy {
		display: none;
	}

	.article__layout {
		gap: 40px;
	}

	.event-box__head {
		padding: 16px 18px;
	}

	.event-box__row {
		padding: 14px 18px;
	}

	.event-box__row dd {
		font-size: 15px;
		line-height: 22px;
	}

	.event-box__actions {
		padding: 16px 18px 18px;
	}

	.latest-posts__item {
		gap: 14px;
		padding: 14px 0;
	}

	.latest-posts__img {
		width: 88px;
		height: 66px;
	}

	.latest-posts__title {
		font-size: 14px;
		line-height: 20px;
	}

	.article__side .help-box {
		padding: 28px 18px;
	}

	.article__side .help-box__button {
		align-self: stretch;
		min-height: 58px;
	}

	.other-posts {
		padding: 40px 0;
	}

	.other-posts__head {
		margin-bottom: 20px;
	}

	.other-posts__all {
		display: none;
	}

	.other-posts__all-mobile {
		display: flex;
		margin-top: 20px;
	}

	.other-posts__grid > li {
		width: 290px;
	}
}
