/* News archive — posts page / category / tag */

.sdn-news {
	padding-bottom: 8rem;
}

.news-section-label {
	margin: 0;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 2.4rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111;
}

.news-featured {
	padding-top: 4.8rem;
	padding-bottom: 4.8rem;
	border-bottom: 1px solid #e9e9e5;
}

.news-featured-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.6rem;
	margin-bottom: 2.4rem;
}

.news-featured-nav {
	display: flex;
	gap: 0.8rem;
}

.news-featured-nav .prev,
.news-featured-nav .next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	padding: 0;
	border: 1px solid #e9e9e5;
	background: #fff;
	cursor: pointer;
}

.news-featured-nav .prev img,
.news-featured-nav .next img {
	width: 1.2rem;
	height: 1.2rem;
}

.news-featured-nav .prev img {
	transform: rotate(180deg);
}

.news-featured-nav .swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.news-featured-slider {
	position: relative;
}

.news-featured-slider .swiper {
	overflow: hidden;
}

.news-featured-slider .swiper-slide {
	height: auto;
}

.news-featured-slider .swiper-pagination {
	position: static;
	margin-top: 2.4rem;
	display: flex;
	justify-content: center;
	gap: 0;
	--swiper-pagination-bullet-width: 6rem;
	--swiper-pagination-bullet-height: 0.2rem;
	--swiper-pagination-bullet-horizontal-gap: 0;
	--swiper-pagination-bullet-inactive-color: #e9e9e5;
	--swiper-pagination-bullet-inactive-opacity: 1;
	--swiper-pagination-color: #111;
	--swiper-pagination-bullet-opacity: 1;
}

.news-featured-slider .swiper-pagination .swiper-pagination-bullet {
	border-radius: 0;
	margin: 0 !important;
}

.news-card-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.news-card-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #e9e9e5;
}

.news-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.news-card-link:hover .news-card-img {
	transform: scale(1.04);
}

.news-card-body {
	display: block;
	padding-top: 1.4rem;
}

.news-card-cats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.6rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111;
}

.news-card-cats-sep {
	color: #999;
}

.news-card-date {
	display: block;
	font-family: "IBM Plex Mono", monospace;
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	color: #999;
}

.news-card-title {
	margin: 0.8rem 0 0;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 2.4rem;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.news-card-excerpt {
	margin: 1rem 0 0;
	font-size: 1.5rem;
	line-height: 1.5;
	color: #666;
}

.news-list {
	padding-top: 4.8rem;
}

.news-list > .news-section-label {
	margin-bottom: 2.4rem;
}

.news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.4rem;
}

.news-empty {
	margin: 0;
	padding: 6.4rem 0;
	text-align: center;
	font-size: 1.8rem;
	color: #666;
}

.news-pagination {
	display: flex;
	justify-content: center;
	margin-top: 4.8rem;
	padding: 0 0 0;
}

.news-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 2.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	user-select: none;
	border-bottom: 1px solid #e9e9e5;
}

.news-pagination .page-numbers li {
	display: flex;
	align-items: stretch;
	justify-content: center;
	margin: 0;
}

.news-pagination a,
.news-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.2rem;
	padding: 0 0 1.2rem;
	margin-bottom: -1px;
	text-decoration: none;
	color: #131313;
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;
	border-bottom: 2px solid transparent;
}

.news-pagination .current {
	font-weight: 700;
	color: #c8102e;
	border-bottom-color: #c8102e;
}

.news-pagination .dots {
	pointer-events: none;
	color: #131313;
}

.news-pagination .prev img,
.news-pagination .next img {
	display: block;
	width: 1.6rem;
	height: 1.6rem;
	filter: invert(28%) sepia(72%) saturate(2140%) hue-rotate(339deg) brightness(92%) contrast(92%);
}

.news-pagination .prev img {
	transform: rotate(90deg);
}

.news-pagination .next img {
	transform: rotate(-90deg);
}

/* Phone landscape: 2 cols */
@media (max-width: 767px) and (orientation: landscape) {
	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.4rem 1.6rem;
	}
}

/* Tablet+: 3 cols */
@media (min-width: 768px) {
	.news-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 3.2rem 2.4rem;
	}
}

@media (max-width: 1024px) {
	.news-featured-slider .swiper-pagination {
		--swiper-pagination-bullet-width: 4rem;
	}
}

@media (max-width: 767px) {
	.news-featured {
		padding-top: 3.2rem;
		padding-bottom: 3.2rem;
	}

	.news-card-title {
		font-size: 2.2rem;
	}

	.news-list {
		padding-top: 3.2rem;
	}

	.news-featured-slider .swiper-pagination {
		--swiper-pagination-bullet-width: 3rem;
	}
}

/* —— Single post —— */

.sdn-news-single {
	padding-bottom: 8rem;
}

.news-single-media {
	margin: 0 0 3.2rem;
	padding-top: 3.2rem;
	overflow: hidden;
	background: #e9e9e5;
}

.news-single-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.news-single-header {
	margin-bottom: 3.2rem;
}

.news-single-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1.6rem;
	font-size: 1.4rem;
	color: #999;
}

.news-single-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.news-single-breadcrumb a:hover {
	color: #111;
}

.news-single-cats {
	margin: 0 0 0.8rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111;
}

.news-single-cats a {
	color: inherit;
	text-decoration: none;
}

.news-single-cats a:hover {
	color: #c5342d;
}

.news-single-date {
	display: block;
	margin-bottom: 1.6rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	color: #999;
}

.news-single-title {
	margin: 0;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 4.8rem;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #111;
}

.news-single-layout {
	position: relative;
	display: grid;
	grid-template-columns: 6.4rem minmax(0, 96rem);
	gap: 4rem;
	justify-content: center;
	align-items: start;
}

.news-single-main {
	min-width: 0;
}

.news-single-content {
	font-size: 1.7rem;
	line-height: 1.7;
}

.news-single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 4rem 0 0;
	padding: 0;
	list-style: none;
}

.news-single-tag {
	display: inline-flex;
	align-items: center;
	min-height: 3.2rem;
	padding: 0 1.2rem;
	border: 1px solid #e9e9e5;
	font-family: "IBM Plex Mono", monospace;
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: #111;
	transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

a.news-single-tag:hover {
	color: #fff;
	border-color: #c5342d;
	background: #c5342d;
}

.news-single-adjacent {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.4rem;
	margin-top: 4.8rem;
	padding-top: 3.2rem;
	border-top: 1px solid #e9e9e5;
}

.news-adjacent {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	text-decoration: none;
	color: inherit;
}

.news-adjacent--next {
	text-align: right;
}

.news-adjacent-label {
	font-family: "IBM Plex Mono", monospace;
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #999;
}

.news-adjacent-title {
	font-family: "Barlow Condensed", sans-serif;
	font-size: 2.2rem;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.news-adjacent:hover .news-adjacent-title {
	color: #c5342d;
}

.news-adjacent--empty {
	visibility: hidden;
}

.news-related {
	margin-top: 6.4rem;
	padding-top: 4.8rem;
	border-top: 1px solid #e9e9e5;
}

.news-related > .news-section-label {
	margin-bottom: 2.4rem;
}

/* Floating share */
.news-share {
	position: sticky;
	top: calc(var(--header-height, 7.2rem) + 2.4rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	opacity: 0;
	pointer-events: none;
	transform: translateY(0.8rem);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-share.is-active {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.news-share-label {
	margin: 0;
	font-family: "IBM Plex Mono", monospace;
	font-size: 1.1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #999;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.news-share-list {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	padding: 0;
	border: 1px solid #e9e9e5;
	border-radius: 50%;
	background: #fff;
	color: #111;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.news-share-btn img {
	width: 1.6rem;
	height: 1.6rem;
	object-fit: contain;
}

.news-share-btn:hover,
.news-share-btn:focus-visible,
.news-share-btn.is-copied {
	color: #fff;
	border-color: #c5342d;
	background: #c5342d;
}

.news-share-btn:hover img,
.news-share-btn:focus-visible img {
	filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
	.news-single-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.news-share {
		position: fixed;
		left: 50%;
		bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
		top: auto;
		z-index: 40;
		flex-direction: row;
		align-items: center;
		padding: 0.8rem 1.2rem;
		border: 1px solid #e9e9e5;
		border-radius: 999px;
		background: #fff;
		box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.08);
		transform: translate(-50%, 1.2rem);
	}

	.news-share.is-active {
		transform: translate(-50%, 0);
	}

	.news-share-label {
		writing-mode: horizontal-tb;
		transform: none;
	}

	.news-share-list {
		flex-direction: row;
	}

	.sdn-news-single {
		padding-bottom: 10rem;
	}

	.news-single-title {
		font-size: 3.6rem;
	}

	.news-single-media {
		padding-top: 2.4rem;
	}
}

@media (max-width: 767px) {
	.news-single-media {
		margin-bottom: 2.4rem;
		margin-left: -1.6rem;
		margin-right: -1.6rem;
		width: calc(100% + 3.2rem);
		padding-top: 0;
	}

	.news-single-header {
		margin-bottom: 2.4rem;
	}

	.news-single-title {
		font-size: 2.8rem;
	}

	.news-single-adjacent {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.news-adjacent--next {
		text-align: left;
	}

	.news-related {
		margin-top: 4.8rem;
		padding-top: 3.2rem;
	}
}
