/* ============================================================
   e-Office Sumedang — Public template (shared)
   Dipakai: /login, /verifikasi_surat, /kebijakan-privasi, dll.
   Design tokens: pixel inverse (#6003c8), Rubik 300/400/500.
   ============================================================ */
:root {
	--pixel-primary: #6003c8;
	--pixel-primary-dark: #480099;
	--pixel-primary-soft: #f2eafa;
	--pixel-success: #00c292;
	--pixel-success-soft: #eefbf7;
	--pixel-warn: #e8a33d;
	--pixel-warn-soft: #fdf6e8;
	--pixel-danger: #e6465a;
	--pixel-danger-soft: #fdeef0;
	--pixel-heading: #3e4d6c;
	--pixel-text: #54667a;
	--pixel-muted: #8a93a6;
	--pixel-border: #e4e7ea;
	--pixel-canvas: #f4f6fa;
	--white: #fff;

	/* Alias lama (kompatibilitas view sebelum refactor) */
	--mp-primary: var(--pixel-primary);
	--mp-primary-dark: var(--pixel-primary-dark);
	--mp-primary-soft: var(--pixel-primary-soft);
	--mp-success: var(--pixel-success);
	--mp-success-soft: var(--pixel-success-soft);
	--mp-warn: var(--pixel-warn);
	--mp-warn-soft: var(--pixel-warn-soft);
	--mp-danger: var(--pixel-danger);
	--mp-danger-soft: var(--pixel-danger-soft);
	--mp-heading: var(--pixel-heading);
	--mp-text: var(--pixel-text);
	--mp-muted: var(--pixel-muted);
	--mp-border: var(--pixel-border);
	--mp-canvas: var(--pixel-canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	color: var(--pixel-text);
	background: var(--pixel-canvas);
	font-family: Rubik, sans-serif;
	font-weight: 300;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--pixel-primary); }
strong { font-weight: 400; }
button, input { font: inherit; }
img { max-width: 100%; }
main { flex: 1 0 auto; }

/* ===== Skip link ===== */
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 11px 16px; border-radius: 8px; color: var(--white); background: var(--pixel-primary-dark); }
.skip-link:focus { top: 16px; }

/* ===== Header / Navbar ===== */
.site-header { border-bottom: 1px solid rgba(62,77,108,.1); background: rgba(255,255,255,.95); }
.nav {
	width: min(1180px, calc(100% - 40px));
	min-height: 72px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 120px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pixel-heading);
	font-size: 13px;
	font-weight: 300;
	text-decoration: none;
	border-radius: 8px;
	padding: 9px 14px;
	transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--pixel-primary); background: var(--pixel-primary-soft); outline: none; }
.nav-link.active { color: var(--pixel-primary); background: var(--pixel-primary-soft); font-weight: 400; }
.nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid var(--pixel-primary);
	border-radius: 8px;
	color: var(--white);
	background: var(--pixel-primary);
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
	transition: background .2s;
}
.nav-cta:hover { background: var(--pixel-primary-dark); color: var(--white); }

/* ===== Page hero (halaman publik: privacy/kontak) ===== */
.page-hero { background: var(--pixel-primary); }
.page-hero .hero-inner { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 36px 0 38px; }
.page-hero .hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 8px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 400; letter-spacing: .13em; text-transform: uppercase; }
.page-hero h1 { margin: 0; color: var(--white); font-size: clamp(32px, 4vw, 44px); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
.page-hero .hero-copy p:not(.eyebrow) { max-width: 720px; margin: 10px 0 0; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 300; line-height: 1.65; }
.updated { margin-top: 12px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 300; line-height: 1.65; }

/* ===== Page shell dua kolom (sidebar + konten) ===== */
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 88px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 88px; align-items: start; }
.toc { position: sticky; top: 24px; padding: 0; }
.toc-title { margin: 0 0 20px; color: var(--pixel-heading); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; border-left: 1px solid var(--pixel-border); list-style: none; }
.toc li + li { margin-top: 2px; }
.toc a { display: block; margin-left: -1px; padding: 8px 0 8px 18px; border-left: 1px solid transparent; color: var(--pixel-muted); font-size: 12px; line-height: 1.5; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { border-left-color: var(--pixel-primary); color: var(--pixel-primary); }
.toc .toc-back { margin-top: 28px; padding: 20px 0 0; border-top: 1px solid var(--pixel-border); border-left: 0; color: var(--pixel-heading); font-weight: 400; }
.page-card { min-width: 0; max-width: 790px; }
.notice { margin: 36px 0 0; padding: 24px 26px; border-left: 3px solid var(--pixel-primary); color: var(--pixel-text); background: var(--pixel-canvas); font-size: 14px; }
.contact-box { padding: 32px; border: 1px solid var(--pixel-border); border-radius: 10px; background: var(--pixel-canvas); }
.contact-box h3 { margin-top: 0; font-size: 20px; line-height: 1.5; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-email { overflow-wrap: anywhere; font-weight: 300; text-decoration: none; }
.page-card h3 { margin: 34px 0 12px; color: var(--pixel-heading); font-size: 18px; font-weight: 400; }
.page-card p { margin: 0 0 20px; }
.page-card ul { margin: 18px 0 26px; padding-left: 22px; }
.page-card li { padding-left: 6px; }
.page-card li + li { margin-top: 9px; }
.page-card a { color: var(--pixel-primary); }
.lead { margin: 0 0 28px; color: var(--pixel-heading); font-size: 18px; font-weight: 300; line-height: 1.85; }

/* ===== Form dasar ===== */
.form-group label { margin-bottom: 9px; display: block; color: var(--pixel-heading); font-size: 12px; font-weight: 400; }
.input-wrap { position: relative; }
.input-icon { position: absolute; z-index: 1; left: 16px; top: 50%; color: var(--pixel-muted); transform: translateY(-50%); pointer-events: none; font-size: 15px; line-height: 1; }
.form-control {
	width: 100%;
	height: 54px;
	padding: 0 16px 0 46px;
	border: 1px solid var(--pixel-border);
	border-radius: 10px;
	outline: none;
	color: var(--pixel-heading);
	background: #fafbfd;
	font-size: 14px;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control::placeholder { color: #a2aab8; font-weight: 300; }
.form-control:focus { border-color: var(--pixel-primary); background: var(--white); box-shadow: 0 0 0 3px rgba(96,3,200,.1); }

/* ===== Tombol ===== */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 54px;
	padding: 0 28px;
	border: 1px solid var(--pixel-primary);
	border-radius: 10px;
	color: var(--white);
	background: var(--pixel-primary);
	box-shadow: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	transition: background .2s;
}
.btn-primary:hover { background: var(--pixel-primary-dark); color: var(--white); }
.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--pixel-border);
	border-radius: 10px;
	color: var(--pixel-heading);
	background: var(--white);
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
	transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--pixel-primary); color: var(--pixel-primary); background: var(--pixel-primary-soft); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--pixel-border); background: var(--white); }
.footer-inner {
	width: min(1180px, calc(100% - 40px));
	min-height: 88px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 12.5px;
	color: var(--pixel-muted);
}
.footer-inner a { color: var(--pixel-primary); font-weight: 400; text-underline-offset: 3px; }
.footer-links { display: flex; align-items: center; gap: 20px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
	.nav { width: min(1180px, calc(100% - 36px)); }
	.footer-inner { width: min(1180px, calc(100% - 36px)); }
	.page-shell { grid-template-columns: 1fr; gap: 54px; }
	.toc { position: static; }
	.toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.page-card { max-width: none; }
}
@media (max-width: 760px) {
	.nav { width: calc(100% - 28px); min-height: 64px; }
	.brand img { width: 96px; }
	.nav-link { padding: 8px 10px; font-size: 12.5px; }
	.footer-inner { min-height: 90px; padding: 18px 0; flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
	.page-hero .hero-inner { padding: 30px 0 32px; }
	.page-hero h1 { font-size: 32px; }
	.page-hero .hero-inner { width: min(100% - 28px, 1120px); }
	.page-shell { width: min(100% - 28px, 1120px); padding: 46px 0 72px; }
	.toc ol { grid-template-columns: 1fr; }
	.notice, .contact-box { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
