/* STES MWS Repository - dasar: token, reset, tata letak, header, hero, footer */

:root {
	--blue-950: #0a2250;
	--blue-800: #12397a;
	--blue-700: #1a4a9c;
	--blue-600: #2058b8;
	--blue-500: #3a72d1;
	--blue-100: #e3ecfa;
	--blue-50: #f2f6fc;
	--yellow-500: #f6b400;
	--yellow-400: #ffc72c;
	--yellow-100: #fff3c7;
	--ink: #12203a;
	--muted: #56627a;
	--line: #dde4f0;
	--bg: #f6f8fc;
	--white: #fff;
	--ok: #1d7a4a;
	--ok-bg: #e6f4ec;
	--warn: #8a4b00;
	--warn-bg: #fff1d6;
	--info: #1a4a9c;
	--info-bg: #e8f0fc;

	--font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(10, 34, 80, 0.06), 0 1px 3px rgba(10, 34, 80, 0.06);
	--shadow: 0 4px 16px rgba(10, 34, 80, 0.08);
	--container: 1160px;
	--header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--blue-950); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
	position: absolute; left: 12px; top: -60px;
	background: var(--yellow-400); color: var(--ink);
	padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 200;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.site-main:focus { outline: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); padding-block: 8px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 12px; flex: none;
	background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
	color: var(--yellow-400); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
	box-shadow: inset 0 -3px 0 var(--yellow-500);
}
.brand-logo { display: block; flex: none; line-height: 0; }
.brand-logo img { height: var(--logo-h, 44px); width: auto; max-width: min(280px, 46vw); object-fit: contain; object-position: left center; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 800; font-size: 0.98rem; color: var(--blue-950); white-space: nowrap; }
.brand-sub { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.primary-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 2px; }
.nav-list a {
	display: block; padding: 8px 12px; border-radius: 8px;
	color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
}
.nav-list a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-list .current-menu-item > a, .nav-list a[aria-current="page"] { background: var(--blue-100); color: var(--blue-800); }

.header-actions { display: flex; align-items: center; gap: 4px; }
.nav-toggle { display: none; }
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

.header-search { border-top: 1px solid var(--line); background: var(--white); padding: 14px 0; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(255, 199, 44, 0.22), transparent 60%),
		linear-gradient(160deg, var(--blue-950), var(--blue-700) 85%);
	color: var(--white);
	padding: 72px 0 64px;
	overflow: hidden;
}
.hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: linear-gradient(90deg, var(--yellow-500), var(--yellow-400));
}
.hero-inner { position: relative; max-width: 860px; text-align: center; }
.hero-eyebrow { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--yellow-400); margin-bottom: 14px; }
.hero-title { color: var(--white); font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.hero-lead { color: #dbe6fb; font-size: 1.05rem; max-width: 720px; margin: 0 auto 28px; }
.hero-extra { margin-top: 22px; display: grid; gap: 14px; justify-items: center; }
.hero-keywords { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; }
.hero-keywords-label { color: #c5d5f3; font-size: 0.875rem; }
.hero-checker {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--white); text-decoration: none; font-size: 0.95rem;
	padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-checker:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.hero-checker .icon { color: var(--yellow-400); }

/* ---------- Pencarian ---------- */
.search-form { position: relative; width: 100%; }
.search-box {
	display: flex; align-items: center; gap: 8px;
	background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px;
	box-shadow: var(--shadow-sm);
}
.search-box:focus-within { border-color: var(--yellow-500); box-shadow: 0 0 0 4px rgba(246, 180, 0, 0.25); }
.search-box-icon { color: var(--muted); display: inline-flex; }
.search-box input[type="search"] {
	flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 12px 4px; font-size: 1rem; color: var(--ink);
	-webkit-appearance: none; appearance: none;
}
.search-box input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-form--hero .search-box { border-color: transparent; padding: 8px 8px 8px 18px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.search-form--hero input[type="search"] { font-size: 1.1rem; padding: 14px 6px; }

.suggest {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
	background: var(--white); color: var(--ink); text-align: left;
	border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.suggest-group { padding: 8px 0; }
.suggest-group + .suggest-group { border-top: 1px solid var(--line); }
.suggest-label { padding: 4px 16px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.suggest a { display: block; padding: 9px 16px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.suggest a small { display: block; color: var(--muted); font-size: 0.78rem; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--blue-50); color: var(--blue-800); }
.suggest-empty { padding: 12px 16px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Seksi ---------- */
.section-head { margin-bottom: 28px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin-bottom: 6px; }
.section-lead { color: var(--muted); margin: 0; }

.stats { padding: 0; margin-top: -1px; background: var(--white); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stat { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dt { color: var(--muted); font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.stat dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--blue-800); line-height: 1.1; }
.stat--total dd { color: var(--blue-950); box-shadow: inset 0 -8px 0 var(--yellow-100); display: inline-block; padding: 0 6px; }

.page-head { padding-top: 28px; padding-bottom: 8px; }
.page-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 8px; overflow-wrap: anywhere; }
.page-lead { color: var(--muted); max-width: 760px; font-size: 1.05rem; }

.breadcrumbs { margin-bottom: 14px; font-size: 0.875rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li + li::before { content: "/"; color: #9aa6bd; margin-right: 8px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

.cta-band { background: linear-gradient(135deg, var(--blue-800), var(--blue-950)); color: var(--white); padding: 44px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-title { color: var(--white); font-size: 1.5rem; margin-bottom: 4px; }
.cta-text { color: #c9d8f4; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: #c9d6ef; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 48px; padding-bottom: 40px; }
.footer-title { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.footer-about p { font-size: 0.93rem; max-width: 36ch; }
.footer-list, .footer-contact { list-style: none; display: grid; gap: 9px; font-size: 0.93rem; }
.footer-list a, .footer-contact a { color: #c9d6ef; text-decoration: none; }
.footer-list a:hover, .footer-contact a:hover { color: var(--yellow-400); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { flex: none; margin-top: 3px; color: var(--yellow-400); }
.footer-contact--dark { color: var(--ink); }
.footer-contact--dark a { color: var(--blue-700); }
.footer-contact--dark .icon { color: var(--blue-700); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; font-size: 0.85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-note { color: #98aad0; }

/* ---------- Konten halaman ---------- */
.prose { max-width: 72ch; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose-wrap .prose { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 820px; }
.not-found { text-align: center; max-width: 640px; }
.nf-code { font-size: 4rem; font-weight: 800; color: var(--blue-700); margin-bottom: 0; line-height: 1; }
.nf-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.not-found .search-form { margin-top: 20px; }

@media print {
	.site-header, .site-footer, .hero, .search-form, .filter-panel, .pdf-actions, .cta-band { display: none !important; }
	body { background: #fff; }
}
