/* ---------------- News & Tips ---------------- */

.moss-news-page { padding: 32px 0 64px; }

.moss-news-title {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: 0.01em;
	margin: 0 0 18px;
}

/* tab bar — same visual language as the service pages */
.moss-news-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 28px;
}
.moss-news-tab {
	position: relative;
	padding: 0 0 14px;
	font-size: 13.5px;
	font-weight: 500;
	color: #94a3b8;
	white-space: nowrap;
	text-decoration: none;
}
.moss-news-tab::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: var(--moss-orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.moss-news-tab.is-active { color: #0f172a; font-weight: 700; }
.moss-news-tab.is-active::after { transform: scaleX(1); }

/* card grid */
.moss-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.moss-news-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e8eef6;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

/* image + category pill */
.moss-news-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eef2f7;
}
.moss-news-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.moss-news-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #fff;
	color: #0f172a;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	padding: 5px 10px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.moss-news-card-body {
	display: flex;
	flex-direction: column;
	padding: 14px 16px 16px;
}

/* date block sits to the LEFT, centered against the headline+place
   column together - not just against the headline on its own. */
.moss-news-card-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.moss-news-card-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

.moss-news-date {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.1;
	min-width: 52px;
}
.moss-news-month {
	font-size: 16px;
	font-weight: 400;
	color: var(--moss-blue);
}
.moss-news-day {
	font-size: 40px;
	font-weight: 400;
	color: #FF0000;
	margin: 1px 0;
}
.moss-news-year {
	font-size: 16px;
	font-weight: 400;
	color: #5A6471;
}

.moss-news-headline {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: #000000;
}
.moss-news-headline a {
	color: inherit;
	text-decoration: none;
}
.moss-news-headline a:hover { text-decoration: underline; }

.moss-news-place {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: #0064A9;
}
.moss-news-place svg { flex-shrink: 0; }

@media (max-width: 900px) {
	.moss-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.moss-news-grid { grid-template-columns: 1fr; }
	.moss-news-tabs { gap: 18px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
}

/* ---------------- Single article ---------------- */

.moss-sp-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 40px;
	align-items: start;
}

.moss-sp-title {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 20px;
	line-height: 1.35;
}

.moss-sp-content {
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}
.moss-sp-content p { margin: 0 0 18px; }
.moss-sp-content img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 4px 0 18px;
}

.moss-sp-sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.moss-sp-sidebar-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.moss-sp-sidebar-label {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}

.moss-sp-date { align-items: flex-start; }

.moss-sp-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.moss-sp-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 500;
	color: #334155;
	white-space: nowrap;
}

.moss-sp-share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.moss-sp-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--moss-blue);
	border-radius: 999px;
	background: #fff;
	color: var(--moss-blue);
	font-size: 12.5px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
}
.moss-sp-share-btn:hover { background: #eaf1ff; }

.moss-sp-related-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.moss-sp-related-card .moss-news-card-media { aspect-ratio: 16 / 9; }
.moss-sp-related-card .moss-news-card-body { padding: 10px 12px 12px; }
.moss-sp-related-card .moss-news-headline { font-size: 13px; }
.moss-sp-related-card .moss-news-date { min-width: 40px; }
.moss-sp-related-card .moss-news-day { font-size: 22px; }
.moss-sp-related-card .moss-news-month,
.moss-sp-related-card .moss-news-year { font-size: 11px; }

@media (max-width: 900px) {
	.moss-sp-layout { grid-template-columns: 1fr; }
}

.moss-sp-toast {
	position: fixed;
	left: 50%;
	bottom: 32px;
	transform: translate(-50%, 12px);
	background: #0f172a;
	color: #fff;
	font-size: 13.5px;
	font-weight: 500;
	padding: 10px 18px;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 200;
}
.moss-sp-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------------- Pagination ---------------- */

.moss-news-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.moss-news-page-numbers {
	display: flex;
	align-items: center;
	gap: 6px;
}

.moss-news-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: #475569;
}
.moss-news-page-link:hover { border-color: var(--moss-blue); color: var(--moss-blue); }
.moss-news-page-number.is-active {
	background: var(--moss-blue);
	border-color: var(--moss-blue);
	color: #fff;
	font-weight: 700;
}
.moss-news-page-prev,
.moss-news-page-next { padding: 0 16px; }
