/*
 * NCT Fanbase Theme — main stylesheet
 * Hand-written CSS (no build step) replicating the original design system.
 */

/* -------------------------------------------------- */
/* Design tokens                                       */
/* -------------------------------------------------- */
:root {
	--brand-950: #0a2f1e;
	--brand-900: #0d3d27;
	--brand-800: #0f4d30;
	--brand-700: #0f5c37;
	--brand-600: #0e7a45;
	--brand-500: #159654;
	--brand-400: #3fb072;
	--brand-100: #e3f3e9;
	--brand-50: #f4faf6;

	--neutral-900: #171717;
	--neutral-700: #404040;
	--neutral-600: #525252;
	--neutral-500: #737373;
	--neutral-400: #a3a3a3;
	--neutral-200: #e5e5e5;

	--foreground: #16241c;
	--background: #ffffff;

	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--container-max: 1120px;
}

/* -------------------------------------------------- */
/* Reset & base                                         */
/* -------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
	margin: 0;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	background: var(--brand-700);
	color: #fff;
	padding: 0.75rem 1.25rem;
	transform: translateY(-120%);
	transition: transform 0.15s ease;
}

.skip-link:focus {
	transform: translateY(0);
}

/* -------------------------------------------------- */
/* Layout helpers                                       */
/* -------------------------------------------------- */
.nct-container {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.nct-section {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.nct-section--tint {
	background: var(--brand-50);
	border-top: 1px solid var(--brand-100);
}

/* -------------------------------------------------- */
/* Header                                               */
/* -------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--brand-100);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
	position: relative;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--brand-800);
}

.site-branding img.custom-logo {
	height: 2rem;
	width: auto;
}

.site-branding__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2rem;
	width: 2rem;
	border-radius: 2px;
	background: var(--brand-700);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 900;
	flex-shrink: 0;
}

.primary-navigation {
	display: none;
}

.primary-navigation ul {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.primary-navigation a {
	display: block;
	border-radius: 2px;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--neutral-700);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
	background: var(--brand-50);
	color: var(--brand-800);
}

.menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.25rem;
	width: 2.25rem;
	border: 1px solid var(--brand-100);
	border-radius: 2px;
	color: var(--brand-800);
	background: transparent;
	cursor: pointer;
	list-style: none;
}

.menu-toggle::-webkit-details-marker {
	display: none;
}

.mobile-navigation {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-bottom: 1px solid var(--brand-100);
	box-shadow: 0 8px 16px rgba(15, 92, 55, 0.08);
}

.mobile-navigation ul {
	display: flex;
	flex-direction: column;
	padding: 0.5rem 1.25rem 1rem;
}

.mobile-navigation a {
	display: block;
	border-radius: 2px;
	padding: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--neutral-700);
}

.mobile-navigation a:hover {
	background: var(--brand-50);
	color: var(--brand-800);
}

.mobile-nav-details {
	position: relative;
}

@media (min-width: 768px) {
	.primary-navigation {
		display: block;
	}

	.mobile-nav-details {
		display: none;
	}
}

/* -------------------------------------------------- */
/* Footer                                               */
/* -------------------------------------------------- */
.site-footer {
	border-top: 1px solid var(--brand-100);
	background: var(--brand-50);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 4rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
	text-align: center;
	font-size: 0.875rem;
	color: var(--neutral-600);
}

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1rem;
}

.footer-navigation a:hover {
	color: var(--brand-700);
}

.footer-widgets {
	display: grid;
	gap: 1.5rem;
	width: 100%;
	padding: 1.5rem 0;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.footer-widgets {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* -------------------------------------------------- */
/* Buttons                                              */
/* -------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	border: 1px solid transparent;
}

.btn-primary {
	background: var(--brand-700);
	color: #fff;
}

.btn-primary:hover {
	background: var(--brand-800);
}

.btn-secondary {
	background: transparent;
	border-color: var(--brand-700);
	color: var(--brand-700);
}

.btn-secondary:hover {
	background: var(--brand-50);
}

/* -------------------------------------------------- */
/* Hero                                                 */
/* -------------------------------------------------- */
.hero {
	background: linear-gradient(to bottom, var(--brand-50), #fff);
	border-bottom: 1px solid var(--brand-100);
	padding-top: 3.5rem;
	padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
	.hero {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}
}

.hero__kicker {
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--brand-600);
}

.hero__title {
	max-width: 42rem;
	font-size: 1.875rem;
	line-height: 1.15;
	font-weight: 900;
	color: var(--brand-900);
}

@media (min-width: 640px) {
	.hero__title {
		font-size: 2.25rem;
	}
}

.hero__desc {
	margin-top: 1rem;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--neutral-600);
}

.hero__actions {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* -------------------------------------------------- */
/* Section heading                                      */
/* -------------------------------------------------- */
.section-heading {
	margin-bottom: 2rem;
	border-left: 4px solid var(--brand-700);
	padding-left: 1rem;
}

.section-heading__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.section-heading h1,
.section-heading h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--neutral-900);
}

.section-heading p {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--neutral-500);
}

.section-heading__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--brand-700);
	white-space: nowrap;
}

.section-heading__link:hover {
	text-decoration: underline;
}

/* -------------------------------------------------- */
/* Category badge                                       */
/* -------------------------------------------------- */
.category-badge {
	display: inline-block;
	border-radius: 2px;
	padding: 0.125rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--brand-100);
	color: var(--brand-800);
}

.category-badge--pengumuman {
	background: var(--brand-700);
	color: #fff;
}

.meta-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--neutral-500);
	margin-bottom: 0.75rem;
}

/* -------------------------------------------------- */
/* News grid & cards                                    */
/* -------------------------------------------------- */
.news-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
	.news-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.news-card {
	position: relative;
	display: flex;
	height: 100%;
	flex-direction: column;
	border: 1px solid var(--neutral-200);
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.news-card:hover {
	box-shadow: 0 6px 18px rgba(15, 92, 55, 0.1);
}

.news-card__media {
	position: relative;
	overflow: hidden;
	height: 9rem;
	background: var(--brand-100);
}

.news-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card--featured .news-card__media {
	height: 12rem;
}

@media (min-width: 640px) {
	.news-card--featured .news-card__media {
		height: 16rem;
	}
}

.news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
}

.news-card__title {
	font-weight: 700;
	font-size: 1rem;
	color: var(--neutral-900);
}

.news-card--featured .news-card__title {
	font-size: 1.25rem;
}

.news-card__title a {
	position: static;
}

.news-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.news-card__title a:hover {
	color: var(--brand-700);
}

.news-card__excerpt {
	font-size: 0.875rem;
	color: var(--neutral-600);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Home page split layout: featured + side list */
.news-split {
	display: grid;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

@media (min-width: 1024px) {
	.news-split {
		grid-template-columns: 2fr 1fr;
	}
}

.news-side-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border: 1px solid var(--neutral-200);
	padding: 1rem;
}

.news-side-list h3 {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--brand-700);
}

.news-side-list__items {
	display: flex;
	flex-direction: column;
}

.news-side-list__item {
	position: relative;
	padding: 0.75rem 0;
	border-top: 1px solid var(--neutral-200);
}

.news-side-list__item:first-child {
	border-top: none;
	padding-top: 0;
}

.news-side-list__item a {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--neutral-800, #262626);
}

.news-side-list__item a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.news-side-list__item a:hover {
	color: var(--brand-700);
}

/* -------------------------------------------------- */
/* Schedule list                                        */
/* -------------------------------------------------- */
.schedule-intro {
	margin-bottom: 1.5rem;
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--neutral-500);
}

.schedule-list {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--neutral-200);
}

.schedule-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	border-top: 1px solid var(--neutral-200);
}

.schedule-item:first-child {
	border-top: none;
}

@media (min-width: 640px) {
	.schedule-item {
		flex-direction: row;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.schedule-item__meta {
		width: 11rem;
		flex-shrink: 0;
	}
}

.schedule-item__date {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--brand-700);
}

.schedule-item__tag {
	display: inline-block;
	margin-top: 0.25rem;
	border-radius: 2px;
	background: var(--brand-100);
	color: var(--brand-800);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.125rem 0.5rem;
	width: fit-content;
}

.schedule-item__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--neutral-900);
}

.schedule-item__desc {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--neutral-600);
}

.schedule-item__source {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	font-style: italic;
	color: var(--neutral-400);
}

/* Homepage upcoming schedule cards */
.schedule-preview-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.schedule-preview-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.schedule-preview-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.schedule-preview-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border: 1px solid var(--neutral-200);
	background: #fff;
	padding: 1rem;
}

.schedule-preview-card time {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--brand-700);
}

.schedule-preview-card p.title {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--neutral-900);
}

.schedule-preview-card p.desc {
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--neutral-600);
}

/* -------------------------------------------------- */
/* Page header + prose                                  */
/* -------------------------------------------------- */
.page-header {
	margin-bottom: 2rem;
	border-left: 4px solid var(--brand-700);
	padding-left: 1rem;
}

.page-header h1 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--neutral-900);
}

@media (min-width: 640px) {
	.page-header h1 {
		font-size: 1.875rem;
	}
}

.page-header p {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--neutral-500);
}

.prose {
	max-width: 48rem;
	color: var(--neutral-800, #262626);
}

.prose.prose--narrow {
	max-width: 42rem;
}

.prose p {
	margin-bottom: 1.1em;
	line-height: 1.85;
}

.prose h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-top: 1.75em;
	margin-bottom: 0.6em;
	color: var(--brand-800);
}

.prose a {
	font-weight: 600;
	color: var(--brand-700);
	text-decoration: underline;
}

.prose a:hover {
	color: var(--brand-800);
}

.prose img {
	margin: 1.5em 0;
}

/* Article single */
.breadcrumb {
	margin-bottom: 1.5rem;
	font-size: 0.75rem;
	color: var(--neutral-500);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
}

.breadcrumb a:hover {
	color: var(--brand-700);
}

.article {
	margin-left: auto;
	margin-right: auto;
	max-width: 42rem;
}

.article__header {
	margin-bottom: 1.5rem;
}

.article__title {
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 1.3;
	color: var(--neutral-900);
}

@media (min-width: 640px) {
	.article__title {
		font-size: 1.875rem;
	}
}

.article__media {
	position: relative;
	margin-bottom: 2rem;
	height: 14rem;
	overflow: hidden;
}

@media (min-width: 640px) {
	.article__media {
		height: 18rem;
	}
}

.article__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-news {
	margin: 4rem auto 0;
	max-width: 56rem;
	border-top: 1px solid var(--neutral-200);
	padding-top: 2.5rem;
}

.related-news h2 {
	margin-bottom: 1.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--neutral-900);
}

/* -------------------------------------------------- */
/* Profil sub-unit cards                                */
/* -------------------------------------------------- */
.overview-grid {
	display: grid;
	gap: 2rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
	.overview-grid {
		grid-template-columns: 2fr 1fr;
	}
}

.overview-facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	border: 1px solid var(--neutral-200);
	padding: 1.25rem;
	font-size: 0.875rem;
	height: fit-content;
}

@media (min-width: 1024px) {
	.overview-facts {
		grid-template-columns: 1fr;
	}
}

.overview-facts dt {
	font-weight: 600;
	color: var(--neutral-500);
}

.overview-facts dd {
	margin: 0;
	color: var(--neutral-900);
}

.overview-note {
	margin-bottom: 2.5rem;
	border: 1px solid var(--brand-100);
	background: var(--brand-50);
	padding: 1rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--brand-900);
}

.unit-grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.unit-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.unit-card {
	border: 1px solid var(--neutral-200);
	padding: 1.25rem;
}

.unit-card h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--brand-700);
}

.unit-card p {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--neutral-600);
}

.member-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.member-chip {
	border-radius: 2px;
	background: var(--brand-100);
	color: var(--brand-800);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.25rem 0.625rem;
}

.unit-card__note {
	margin-top: 1rem;
	font-size: 0.75rem;
	font-style: italic;
	color: var(--neutral-500);
}

/* -------------------------------------------------- */
/* Contact page                                         */
/* -------------------------------------------------- */
.contact-page {
	max-width: 42rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--neutral-700);
}

.contact-page__email {
	margin-top: 1rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--brand-700);
}

.contact-page__email a:hover {
	text-decoration: underline;
}

/* -------------------------------------------------- */
/* 404 page                                             */
/* -------------------------------------------------- */
.not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding-top: 6rem;
	padding-bottom: 6rem;
	text-align: center;
}

.not-found__kicker {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--brand-600);
}

.not-found__title {
	font-size: 1.875rem;
	font-weight: 900;
	color: var(--neutral-900);
}

.not-found p {
	max-width: 28rem;
	font-size: 0.875rem;
	color: var(--neutral-600);
}

/* -------------------------------------------------- */
/* Search form + results                                */
/* -------------------------------------------------- */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
	margin-bottom: 2rem;
}

.search-form__field {
	flex: 1;
	border: 1px solid var(--neutral-200);
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
}

.search-form__field:focus {
	outline: none;
	border-color: var(--brand-600);
	box-shadow: 0 0 0 1px var(--brand-600);
}

.search-result {
	border-bottom: 1px solid var(--neutral-200);
	padding: 1.5rem 0;
}

.search-result:first-child {
	padding-top: 0;
}

.search-result__title {
	font-size: 1.125rem;
	font-weight: 700;
}

.search-result__title a:hover {
	color: var(--brand-700);
}

.no-results {
	padding: 3rem 0;
	text-align: center;
	color: var(--neutral-600);
}

/* -------------------------------------------------- */
/* Pagination                                           */
/* -------------------------------------------------- */
.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	border: 1px solid var(--neutral-200);
	font-size: 0.875rem;
	color: var(--neutral-700);
}

.pagination .current {
	background: var(--brand-700);
	border-color: var(--brand-700);
	color: #fff;
}

.pagination a:hover {
	border-color: var(--brand-700);
	color: var(--brand-700);
}

/* -------------------------------------------------- */
/* Comments                                             */
/* -------------------------------------------------- */
.comments-area {
	margin: 3rem auto 0;
	max-width: 42rem;
}

.comments-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--neutral-900);
}

.comment-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.comment-body {
	border: 1px solid var(--neutral-200);
	padding: 1rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--neutral-200);
	padding: 0.625rem 0.75rem;
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.comment-form p {
	margin-bottom: 1rem;
}

.comment-form label {
	font-size: 0.875rem;
	font-weight: 600;
}

/* -------------------------------------------------- */
/* Widget area (sidebar) — off by default, styled just in case */
/* -------------------------------------------------- */
.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--brand-700);
	margin-bottom: 0.75rem;
}

/* -------------------------------------------------- */
/* Utility                                              */
/* -------------------------------------------------- */
.u-hidden-mobile {
	display: none;
}

@media (min-width: 640px) {
	.u-hidden-mobile {
		display: block;
	}
}

.u-text-center {
	text-align: center;
}
