/* SOP Divisi TI — tema situs (selaras landing it.karangturi.or.id: ypnk-landing).
 * Dimuat setelah sop.css pada halaman SOP berangka "sop". Header, tombol & footer disalin dari
 * landing.css (lingkup body.ypnk-landing -> body.ypnk-sop); di bawahnya: hero halaman, token warna
 * & tipografi untuk komponen SOP lama, cetak.
 */
@font-face {
	font-family: "YPNK Fraunces";
	src: url(../ypnk-landing/fonts/fraunces-latin.woff2) format("woff2");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "YPNK Jakarta";
	src: url(../ypnk-landing/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

/* ---- Token: palet resmi (biru, merah, putih) dipetakan ke variabel SOP lama ---- */
:root {
	--y-deep: #061a4d;
	--y-blue: #0b2d7c;
	--y-blue-2: #143d9e;
	--y-red: #d0121b;
	--y-red-2: #b00e16;
	--y-red-soft: #ff7277;
	--y-tint: #f2f5fb;
	--y-tint-2: #e6ecf8;
	--y-ink: #101c3d;
	--y-body: #26324f;
	--y-muted: #4f5d7a;
	--y-line: #dbe3f1;
	--y-serif: "YPNK Fraunces", Georgia, "Times New Roman", serif;
	--y-sans: "YPNK Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--y-ease: cubic-bezier(.2, .7, .2, 1);
	--y-gutter: clamp(16px, 4vw, 32px);
	--y-header: 72px;

	--primary: var(--y-blue);
	--primary-light: var(--y-blue-2);
	--primary-dark: var(--y-deep);
	--accent: var(--y-red);
	--accent-light: var(--y-red-soft);
	--bg: var(--y-tint);
	--text: var(--y-body);
	--text-light: var(--y-muted);
	--border: var(--y-line);
	--info: var(--y-blue-2);
	--radius: 12px;
	--shadow: 0 2px 10px rgba(6, 26, 77, .06);
	--shadow-lg: 0 18px 40px -22px rgba(6, 26, 77, .35);
	--font-sans: var(--y-sans);
}
@media (max-width: 900px) { :root { --y-header: 104px; } }

body.ypnk-sop {
	--y-focus: var(--y-blue);
	margin: 0;
	padding: 0;
	background: var(--y-tint);
	color: var(--y-body);
	font-family: var(--y-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
body.ypnk-sop *, body.ypnk-sop *::before, body.ypnk-sop *::after { box-sizing: border-box; }
body.ypnk-sop :focus-visible { outline: 3px solid var(--y-focus); outline-offset: 3px; }
body.ypnk-sop [id] { scroll-margin-top: calc(var(--y-header) + 24px); }
body.ypnk-sop .ypnk-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--y-deep); font-weight: 700;
}
body.ypnk-sop .ypnk-skip:focus { top: 12px; }

body.ypnk-sop .ypnk-wrap {
	position: relative;
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: var(--y-gutter);
}
/* ---- Tombol ---- */
body.ypnk-sop .ypnk-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	padding: 0.8em 1.45em;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--y-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	isolation: isolate;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, translate .35s var(--y-ease), box-shadow .3s ease;
}
/* kilau menyapu saat hover */
body.ypnk-sop .ypnk-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
	translate: -120% 0;
	transition: translate .7s var(--y-ease);
}
body.ypnk-sop .ypnk-btn:hover::after { translate: 120% 0; }
body.ypnk-sop .ypnk-btn--red { background: var(--y-red); color: #fff; box-shadow: 0 10px 28px -12px rgba(208, 18, 27, .7); }
body.ypnk-sop .ypnk-btn--red:hover { background: var(--y-red-2); }
body.ypnk-sop .ypnk-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
body.ypnk-sop .ypnk-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
body.ypnk-sop .ypnk-btn--white { background: #fff; color: var(--y-red-2); }
body.ypnk-sop .ypnk-btn--white:hover { background: var(--y-tint); }
body.ypnk-sop .ypnk-btn--sm { min-height: 40px; padding: 0.55em 1.1em; font-size: 14.5px; }
body.ypnk-sop .ypnk-btn .ypnk-sonar { width: 8px; height: 8px; }
/* =====================================================================
   Header (melayang di atas hero, padat setelah digulir)
   ===================================================================== */
body.ypnk-sop .ypnk-header {
	--y-focus: #fff;
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: rgba(6, 26, 77, .94);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55);
	color: #fff;
	transition: background-color .4s ease, box-shadow .4s ease, -webkit-backdrop-filter .4s ease, backdrop-filter .4s ease;
}
body.ypnk-sop .ypnk-header.is-top {
	background: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
body.admin-bar.ypnk-sop .ypnk-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar.ypnk-sop .ypnk-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar.ypnk-sop .ypnk-header { top: 0; } }

body.ypnk-sop .ypnk-progress {
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 3px;
	background: linear-gradient(90deg, var(--y-red), #ff4b55);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

body.ypnk-sop .ypnk-header__in {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 72px;
}
body.ypnk-sop .ypnk-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	margin-right: auto;
}
body.ypnk-sop .ypnk-brand img { height: 34px; width: auto; }
body.ypnk-sop .ypnk-brand__sub {
	padding-left: 14px;
	border-left: 1px solid rgba(255, 255, 255, .3);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.3;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
}
body.ypnk-sop .ypnk-nav { display: flex; gap: 26px; }
body.ypnk-sop .ypnk-nav a {
	position: relative;
	padding-block: 6px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: rgba(255, 255, 255, .88);
	transition: color .2s ease;
}
body.ypnk-sop .ypnk-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--y-red);
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform .35s var(--y-ease);
}
body.ypnk-sop .ypnk-nav a:hover { color: #fff; }
body.ypnk-sop .ypnk-nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

@media (max-width: 900px) {
	body.ypnk-sop .ypnk-brand__sub { display: none; }
	body.ypnk-sop .ypnk-header__in { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-block: 12px 0; }
	body.ypnk-sop .ypnk-nav {
		order: 3;
		width: 100%;
		gap: 22px;
		padding-block: 10px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	body.ypnk-sop .ypnk-nav::-webkit-scrollbar { display: none; }
	body.ypnk-sop .ypnk-nav a { white-space: nowrap; }
}
@media (max-width: 400px) {
	body.ypnk-sop .ypnk-brand img { height: 28px; }
	body.ypnk-sop .ypnk-header .ypnk-btn--sm { font-size: 13.5px; padding-inline: .9em; }
}
/* ---- Footer ---- */
body.ypnk-sop .ypnk-footer {
	--y-focus: #fff;
	padding-block: 56px 28px;
	background: var(--y-deep);
	border-top: 4px solid var(--y-red);
	color: rgba(255, 255, 255, .74);
	font-size: 15px;
}
body.ypnk-sop .ypnk-footer__in {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	flex-wrap: wrap;
}
body.ypnk-sop .ypnk-footer__brand img { height: 30px; width: auto; }
body.ypnk-sop .ypnk-footer__brand p { margin-top: 14px; line-height: 1.55; }
body.ypnk-sop .ypnk-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
body.ypnk-sop .ypnk-footer__links a { color: #fff; font-weight: 600; text-decoration: none; }
body.ypnk-sop .ypnk-footer__links a:hover { text-decoration: underline; text-decoration-color: var(--y-red); text-underline-offset: 4px; }
body.ypnk-sop .ypnk-footer__legal {
	margin-top: 40px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 13.5px;
	color: rgba(255, 255, 255, .6);
}

/* ---- Menu aktif ---- */
body.ypnk-sop .ypnk-nav a[aria-current="page"] { color: #fff; }
body.ypnk-sop .ypnk-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---- Footer: kontak ---- */
body.ypnk-sop .ypnk-footer a { color: #fff; }
body.ypnk-sop .ypnk-footer__kontak {
	margin-top: 28px;
	font-size: 14px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .74);
}
body.ypnk-sop .ypnk-footer__kontak a { font-weight: 600; text-decoration: none; }
body.ypnk-sop .ypnk-footer__kontak a:hover { text-decoration: underline; text-decoration-color: var(--y-red); }

/* =====================================================================
   Hero halaman (pengganti bilah atas + .page-header lama)
   ===================================================================== */
body.ypnk-sop .sop-hero {
	--y-focus: #fff;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: calc(var(--y-header) + clamp(36px, 6vw, 72px)) 0 clamp(36px, 5vw, 60px);
	background:
		radial-gradient(900px 420px at 88% -20%, rgba(208, 18, 27, .32), transparent 62%),
		radial-gradient(700px 360px at -10% 120%, rgba(20, 61, 158, .55), transparent 60%),
		linear-gradient(135deg, var(--y-deep) 0%, var(--y-blue) 62%, var(--y-blue-2) 100%);
	border-bottom: 4px solid var(--y-red);
	color: #fff;
	text-align: left;
}
body.ypnk-sop .sop-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
}
body.ypnk-sop .sop-hero.is-rahasia {
	background:
		radial-gradient(900px 420px at 88% -20%, rgba(255, 114, 119, .3), transparent 62%),
		linear-gradient(135deg, #3d070b 0%, var(--y-red-2) 58%, var(--y-red) 100%);
	border-bottom-color: var(--y-deep);
}
/* Sejajar dengan kolom isi .content (lebar & jarak tepi sama; lebar khusus halaman lewat --sop-lebar). */
body.ypnk-sop .sop-hero__in { max-width: var(--sop-lebar, 960px); margin: 0 auto; padding-inline: 48px; }
@media (max-width: 768px) { body.ypnk-sop .sop-hero__in { padding-inline: 16px; } }
body.ypnk-sop .sop-remah {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, .7);
}
body.ypnk-sop .sop-remah a { color: rgba(255, 255, 255, .88); text-decoration: none; }
body.ypnk-sop .sop-remah a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--y-red-soft); text-underline-offset: 4px; }
body.ypnk-sop .sop-remah__sep { opacity: .45; }
body.ypnk-sop .sop-hero h1 {
	max-width: 22ch;
	margin: 0 0 14px;
	font-family: var(--y-serif);
	font-size: clamp(30px, 4.4vw, 54px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: #fff;
}
body.ypnk-sop .sop-hero p,
body.ypnk-sop .sop-hero .subtitle {
	max-width: 68ch;
	margin: 0 0 6px;
	font-size: clamp(16px, 1.6vw, 18.5px);
	line-height: 1.55;
	opacity: 1;
	color: rgba(255, 255, 255, .84);
}
body.ypnk-sop .sop-hero .meta { justify-content: flex-start; gap: 12px 28px; margin-top: 22px; font-size: 14px; }
body.ypnk-sop .sop-hero .meta-item label { opacity: .6; }
body.ypnk-sop .sop-hero__aksi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
}
body.ypnk-sop .sop-chip {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	min-height: 34px;
	padding: .35em .95em;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}
body.ypnk-sop .sop-chip--intranet::before,
body.ypnk-sop .sop-chip--rahasia::before,
body.ypnk-sop .sop-chip--publik::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffd166; }
body.ypnk-sop .sop-chip--rahasia::before { background: #fff; }
body.ypnk-sop .sop-chip--publik::before { background: #5fd38d; }
body.ypnk-sop .sop-hero .ypnk-btn--ghost { min-height: 34px; padding: .35em 1.05em; font-size: 13.5px; cursor: pointer; background: transparent; }

/* ---- Navigasi cepat hub /sop/ menempel di bawah header ---- */
body.ypnk-sop .quick-nav { top: var(--y-header); z-index: 40; padding-inline: var(--y-gutter); }
body.admin-bar.ypnk-sop .quick-nav { top: calc(var(--y-header) + 32px); }
@media (max-width: 782px) { body.admin-bar.ypnk-sop .quick-nav { top: calc(var(--y-header) + 46px); } }

/* =====================================================================
   Isi dokumen: tipografi & komponen SOP lama dengan palet landing
   ===================================================================== */
body.ypnk-sop .content { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
body.ypnk-sop .content :is(h2.section-title, .sop-header h3) {
	font-family: var(--y-serif);
	font-weight: 600;
	letter-spacing: -0.01em;
}
body.ypnk-sop .content h2.section-title { color: var(--y-deep); }
body.ypnk-sop .content .sop-header h3 { color: #fff; }
body.ypnk-sop .content h2.section-title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
body.ypnk-sop .content a { color: var(--y-blue-2); text-underline-offset: 3px; }
body.ypnk-sop .content a:hover { color: var(--y-red-2); }
body.ypnk-sop .sop-header { background: linear-gradient(135deg, var(--y-deep), var(--y-blue)); }
body.ypnk-sop .card,
body.ypnk-sop .table-wrapper,
body.ypnk-sop .sop-body { border-radius: var(--radius); }
body.ypnk-sop .back-to-top { background: var(--y-red); box-shadow: 0 10px 28px -12px rgba(208, 18, 27, .7); }
body.ypnk-sop .back-to-top:hover { background: var(--y-red-2); }

/* ---- Catatan dokumen (dari kaki lama yang bukan kontak standar) ---- */
body.ypnk-sop .sop-catatan {
	max-width: 960px;
	margin: 0 auto clamp(40px, 5vw, 64px);
	padding: 14px 18px;
	border-left: 4px solid var(--y-red);
	border-radius: 0 10px 10px 0;
	background: #fff;
	font-size: 14px;
	color: var(--y-muted);
}
@media (max-width: 1000px) { body.ypnk-sop .sop-catatan { margin-inline: var(--y-gutter); } }

/* ---- Cetak: hanya dokumen ---- */
@media print {
	body.ypnk-sop { background: #fff; }
	body.ypnk-sop :is(.ypnk-header, .ypnk-footer, .ypnk-skip, .sop-remah, .sop-hero__aksi .ypnk-btn, .back-to-top, .quick-nav) { display: none !important; }
	body.ypnk-sop .sop-hero { padding: 0 0 12px; background: none; border-bottom: 2px solid #000; color: #000; }
	body.ypnk-sop .sop-hero::before { display: none; }
	body.ypnk-sop .sop-hero :is(h1, p, .subtitle, .sop-chip) { color: #000; }
	body.ypnk-sop .sop-chip { border-color: #999; background: none; }
}
@media (prefers-reduced-motion: reduce) {
	body.ypnk-sop *, body.ypnk-sop *::before, body.ypnk-sop *::after { transition: none !important; animation: none !important; }
}

/* ---- Menu kapsul (.quick-nav) rata tengah; tetap bisa digulir tanpa terpotong saat sempit ---- */
body.ypnk-sop .quick-nav > :first-child { margin-left: auto; }
body.ypnk-sop .quick-nav > :last-child { margin-right: auto; }

/* ---- Footer rata tengah ---- */
body.ypnk-sop .ypnk-footer__in { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
body.ypnk-sop .ypnk-footer__brand img { margin-inline: auto; }
body.ypnk-sop .ypnk-footer__links { justify-content: center; }
body.ypnk-sop :is(.ypnk-footer__kontak, .ypnk-footer__legal) { text-align: center; }

/* ---- Header: 7 menu tetap satu baris ---- */
body.ypnk-sop .ypnk-nav a { white-space: nowrap; }
@media (min-width: 901px) { body.ypnk-sop .ypnk-nav { gap: 22px; } }
@media (min-width: 901px) and (max-width: 1360px) {
	body.ypnk-sop .ypnk-brand__sub { display: none; }
	body.ypnk-sop .ypnk-nav { gap: 18px; }
}

/* ---- Status login Google (hero SOP) ---- */
body.ypnk-sop .sop-sesi { margin-top: 16px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .78); }
body.ypnk-sop .sop-sesi strong { color: #fff; }
body.ypnk-sop .sop-sesi a { color: #fff; text-decoration: underline; text-decoration-color: var(--y-red); text-underline-offset: 4px; }
@media print { body.ypnk-sop .sop-sesi { display: none; } }
body.ypnk-sop .sop-chip--siswa::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8fb3ff; }
body.ypnk-sop .ypnk-footer__info { max-width: 720px; margin: 18px auto 0; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .8); text-align: center; }
body.ypnk-sop .ypnk-footer__info strong { color: #fff; }
body.ypnk-sop .ypnk-footer__info a { color: #fff; text-decoration: underline; text-decoration-color: var(--y-red); text-underline-offset: 3px; }
