/* ==========================================================
   Diklinko Emerald - Header (top bar, judul, menu responsif)
   Dimuat setelah child.css. Semua selector berawalan .dk_head
   ========================================================== */

.dk_head {
	--dk-navy: #0f1628;
	--dk-teal-1: #0a3433;
	--dk-teal-2: #0f4b47;
	--dk-bar: #1b5a52;
	--dk-bar-hover: rgba(255, 255, 255, .08);
	--dk-gold: #f6b61c;
	--dk-mint: #6ee7c8;
	--dk-muted: #9aa6b8;
	--dk-line: rgba(255, 255, 255, .14);

	position: relative;
	z-index: 60;
	color: #fff;
	font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}
.dk_head *,
.dk_head *::before,
.dk_head *::after { box-sizing: border-box; }
.dk_head a { color: inherit; text-decoration: none; }
.dk_head ul { list-style: none; margin: 0; padding: 0; }
.dk_head button { font: inherit; color: inherit; cursor: pointer; }

.dk_head .dk_wrap {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 28px;
}

/* ---------------- 1. BAR ATAS ---------------- */
.dk_topbar { background: var(--dk-navy); font-size: 12.5px; }
.dk_topbar_in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}
.dk_top_left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 4px;
}
.dk_top_left > li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dk_top_left > li + li {
	margin-left: 16px;
	padding-left: 16px;
	border-left: 1px solid var(--dk-line);
}
.dk_accred { color: var(--dk-gold); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.dk_meta .dk_lbl { color: var(--dk-muted); }
.dk_meta strong {
	color: #fff;
	font-weight: 700;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .02em;
}
.dk_meta strong.dk_mint { color: var(--dk-mint); font-weight: 500; }

.dk_top_right { display: flex; align-items: center; gap: 18px; }

.dk_lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border: 1px solid var(--dk-line);
	border-radius: 6px;
	color: var(--dk-mint);
	font-weight: 600;
}
.dk_lang_item { color: var(--dk-muted); }
.dk_lang_item.is_active { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dk_head a.dk_lang_item:hover { color: #fff; }
.dk_lang_sep { color: var(--dk-muted); opacity: .6; }

.dk_user { display: flex; align-items: center; gap: 0; }
.dk_user > a { color: #e6ebf3; padding: 0 12px; font-weight: 500; }
.dk_user > a + a { border-left: 1px solid var(--dk-line); padding-right: 0; }
.dk_user > a:hover { color: var(--dk-gold); }

.dk_user_menu { position: relative; }
.dk_user_btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	background: none;
	border: 0;
	font-weight: 600;
}
.dk_user_name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk_user_list {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 170px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
	padding: 6px 0;
	z-index: 100;
}
.dk_user_menu.dk_open .dk_user_list { display: block; }
.dk_user_list a { display: block; padding: 9px 16px; color: #17303a; }
.dk_user_list a:hover { background: #eef7f4; color: #0f4b47; }

/* ---------------- 2. JUDUL ---------------- */
.dk_brandbar {
	background: linear-gradient(100deg, var(--dk-teal-1) 0%, var(--dk-teal-2) 100%);
	border-bottom: 2px solid var(--dk-gold);
}
.dk_brand_in {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-top: 26px;
	padding-bottom: 22px;
}
.dk_logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 2px solid var(--dk-gold);
	border-radius: 10px;
	background: rgba(246, 182, 28, .12);
	color: var(--dk-gold);
	overflow: hidden;
}
.dk_logo.has_img { width: auto; max-width: 160px; padding: 4px 8px; background: rgba(255, 255, 255, .95); }
.dk_logo img { display: block; max-height: 40px; width: auto; max-width: 100%; }

.dk_brand_text { flex: 1 1 auto; min-width: 0; }
.dk_brand_kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-bottom: 4px;
}
.dk_badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 3px;
	background: var(--dk-gold);
	color: #1b1b1b;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.dk_freq { color: var(--dk-mint); font-size: 13px; }

.dk_title {
	margin: 0;
	font-family: "Figtree", system-ui, sans-serif;
	font-size: clamp(22px, 3.2vw, 32px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: #fff;
}
.dk_title a:hover { color: #fff; opacity: .92; }
.dk_subtitle {
	margin: 6px 0 0;
	max-width: 640px;
	color: #7fe9d0;
	font-size: 13px;
	line-height: 1.45;
}

.dk_brand_actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.dk_head .dk_btn_submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--dk-gold);
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: filter .15s;
}
.dk_head .dk_btn_submit:hover { filter: brightness(1.08); color: #1a1a1a; }
.dk_head .dk_btn_search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 8px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	transition: background .15s;
}
.dk_head .dk_btn_search:hover { background: rgba(255, 255, 255, .18); }

/* ---------------- 3. MENU ---------------- */
.dk_menubar { background: var(--dk-bar); }
.dk_menubar_in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 50px;
}
.dk_nav_toggle { display: none; }

.dk_head .dk_nav { flex: 1 1 auto; min-width: 0; }
.dk_head .dk_nav .pkp_navigation_primary {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	float: none;
}
.dk_head .dk_nav .pkp_navigation_primary > li {
	position: relative;
	display: flex;
	align-items: center;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}
.dk_head .dk_nav .pkp_navigation_primary > li > a {
	display: block;
	margin: 0;
	padding: 16px 14px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: none;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	line-height: 1.2;
	transition: background .15s, color .15s;
}
.dk_head .dk_nav .pkp_navigation_primary > li:hover > a,
.dk_head .dk_nav .pkp_navigation_primary > li:focus-within > a { background: var(--dk-bar-hover); }
.dk_head .dk_nav .pkp_navigation_primary > li > a[aria-current="page"] {
	color: var(--dk-gold);
	border-bottom-color: var(--dk-gold);
	background: rgba(255, 255, 255, .06);
}
/* matikan panah bawaan tema induk */
.dk_head .dk_nav .pkp_navigation_primary a::after,
.dk_head .dk_nav .pkp_navigation_primary a::before { content: none !important; display: none !important; }

/* tombol chevron submenu */
.dk_head .dk_sub_toggle {
	width: 28px;
	align-self: stretch;
	margin-left: -8px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	position: relative;
}
.dk_head .dk_sub_toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform .15s;
}
.dk_head li.dk_open > .dk_sub_toggle::after { transform: translate(-50%, -30%) rotate(-135deg); }
.dk_head .dk_nav .pkp_navigation_primary > li:has(> a[aria-current="page"]) > .dk_sub_toggle { color: var(--dk-gold); }

/* submenu (dropdown) */
.dk_head .dk_nav .pkp_navigation_primary ul {
	display: none !important;
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: auto !important;
	min-width: 230px;
	margin: 0 !important;
	padding: 6px 0 !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .25) !important;
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 100;
}
.dk_head .dk_nav .pkp_navigation_primary li:hover > ul,
.dk_head .dk_nav .pkp_navigation_primary li:focus-within > ul,
.dk_head .dk_nav .pkp_navigation_primary li.dk_open > ul { display: block !important; }
.dk_head .dk_nav .pkp_navigation_primary ul li { display: block; float: none; margin: 0; padding: 0; border: 0; }
.dk_head .dk_nav .pkp_navigation_primary ul a {
	display: block;
	padding: 10px 18px;
	background: none;
	color: #17303a;
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	border: 0;
}
.dk_head .dk_nav .pkp_navigation_primary ul a:hover,
.dk_head .dk_nav .pkp_navigation_primary ul a:focus { background: #eef7f4; color: #0f4b47; }
.dk_head .dk_nav .pkp_navigation_primary ul ul { top: 0 !important; left: 100% !important; border-radius: 8px; }

/* terbitan aktif */
.dk_head .dk_current {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #e5f3ef;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
.dk_head .dk_current:hover { color: #fff; }
.dk_dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, .25);
}

/* ---------------- RESPONSIF ---------------- */
@media (max-width: 1100px) {
	.dk_meta_doi { display: none !important; }
}

@media (max-width: 991px) {
	.dk_head .dk_wrap { padding: 0 18px; }

	.dk_menubar_in { flex-wrap: wrap; min-height: 0; gap: 0 12px; }
	.dk_nav_toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		margin: 6px 0;
		padding: 9px 14px;
		border: 1px solid rgba(255, 255, 255, .28);
		border-radius: 8px;
		background: rgba(255, 255, 255, .08);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .05em;
		text-transform: uppercase;
	}
	.dk_burger { position: relative; display: block; width: 18px; height: 14px; }
	.dk_burger i {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		border-radius: 2px;
		background: #fff;
		transition: transform .2s, opacity .2s, top .2s;
	}
	.dk_burger i:nth-child(1) { top: 0; }
	.dk_burger i:nth-child(2) { top: 6px; }
	.dk_burger i:nth-child(3) { top: 12px; }
	.dk_nav_toggle[aria-expanded="true"] .dk_burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
	.dk_nav_toggle[aria-expanded="true"] .dk_burger i:nth-child(2) { opacity: 0; }
	.dk_nav_toggle[aria-expanded="true"] .dk_burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

	.dk_head .dk_current { order: 2; margin-left: auto; font-size: 12.5px; }

	.dk_head .dk_nav {
		display: none;
		order: 3;
		flex: 0 0 100%;
		width: 100%;
		padding: 4px 0 12px;
		border-top: 1px solid var(--dk-line);
	}
	.dk_head .dk_nav.is-open { display: block; }

	.dk_head .dk_nav .pkp_navigation_primary { flex-direction: column; flex-wrap: nowrap; }
	.dk_head .dk_nav .pkp_navigation_primary > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.dk_head .dk_nav .pkp_navigation_primary > li > a {
		flex: 1 1 0;
		padding: 14px 6px;
		border-bottom: 0;
		border-left: 3px solid transparent;
		padding-left: 12px;
	}
	.dk_head .dk_nav .pkp_navigation_primary > li > a[aria-current="page"] { border-left-color: var(--dk-gold); }
	.dk_head .dk_sub_toggle { flex: 0 0 48px; width: 48px; margin-left: 0; }

	/* submenu menjadi accordion */
	.dk_head .dk_nav .pkp_navigation_primary ul {
		position: static !important;
		flex: 0 0 100%;
		width: 100%;
		min-width: 0;
		padding: 0 0 6px !important;
		background: rgba(0, 0, 0, .16) !important;
		box-shadow: none !important;
		border-radius: 0;
	}
	/* di mobile submenu hanya terbuka lewat tombol chevron, bukan hover */
	.dk_head .dk_nav .pkp_navigation_primary li:hover > ul,
	.dk_head .dk_nav .pkp_navigation_primary li:focus-within > ul { display: none !important; }
	.dk_head .dk_nav .pkp_navigation_primary li.dk_open > ul { display: block !important; }
	.dk_head .dk_nav .pkp_navigation_primary ul a { color: #e5f3ef; padding: 11px 12px 11px 28px; white-space: normal; }
	.dk_head .dk_nav .pkp_navigation_primary ul a:hover,
	.dk_head .dk_nav .pkp_navigation_primary ul a:focus { background: rgba(255, 255, 255, .08); color: #fff; }
	.dk_head .dk_nav .pkp_navigation_primary ul ul { left: 0 !important; }
	.dk_head .dk_nav .pkp_navigation_primary ul ul a { padding-left: 44px; }

	.dk_brand_in { flex-wrap: wrap; padding-top: 18px; padding-bottom: 16px; }
	.dk_brand_actions { margin-left: 70px; }
}

@media (max-width: 640px) {
	.dk_meta_issn { display: none !important; }
	.dk_topbar_in { min-height: 36px; }
	.dk_top_right { gap: 10px; margin-left: auto; }
	.dk_accred span { font-size: 11.5px; }
	.dk_lang { padding: 3px 9px; }
	.dk_brand_in { gap: 12px; }
	.dk_logo { width: 44px; height: 44px; }
	.dk_brand_actions { margin-left: 0; width: 100%; }
	.dk_head .dk_btn_submit { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 420px) {
	.dk_accred span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.dk_head * { transition: none !important; }
}
