/* M3 desktop header corridor is independent from future side-ad geometry. */
:root {
	--pnc-header-container: 1180px;
}

/* FITUR NAVIGASI BERITA — Site Identity + Header Desktop/Mobile. */
.pnc-site-header {
	width: 100%;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--pnc-color-border);
	background: var(--pnc-color-background);
}

.pnc-header-inner {
	display: grid;
	width: min(var(--pnc-header-container), calc(100% - (var(--pnc-gutter) * 2)));
	min-width: 0;
	min-height: var(--pnc-nav-header-height, 90px);
	margin-inline: auto;
	padding-block: 8px;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 24px;
	align-items: center;
}

.pnc-header-branding {
	min-width: 0;
	justify-self: start;
}

.pnc-header-logo-link,
.pnc-header-logo-picture {
	display: inline-flex;
	max-width: 100%;
}

.pnc-header-logo-link {
	align-items: center;
	text-decoration: none;
}

.pnc-header-logo-image {
	display: block;
	width: auto;
	height: auto;
	max-width: min(var(--pnc-nav-logo-width, 240px), 100%);
	max-height: var(--pnc-nav-logo-height, 54px);
	object-fit: contain;
}

.pnc-header-site-name {
	display: inline-block;
	max-width: 100%;
	overflow-wrap: anywhere;
	color: var(--pnc-color-heading);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
}

.pnc-header-site-name:hover,
.pnc-header-site-name:focus-visible {
	color: var(--pnc-color-link-hover);
}

@media (max-width: 900px) {
	.pnc-header-inner {
		min-height: 64px;
		padding-block: 6px;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 12px;
	}

	.pnc-header-logo-image {
		max-width: min(var(--pnc-nav-mobile-logo-width, 190px), 100%);
		max-height: var(--pnc-nav-mobile-logo-height, 46px);
	}

	.pnc-header-site-name {
		font-size: 24px;
	}
}

/* M3 Stage 3 — Desktop adaptive navigation + Mobile category rail. */
.pnc-primary-nav--desktop {
	width: 100%;
	background: linear-gradient(90deg, #174a8b 0%, #1d5ba8 52%, #4b86df 100%);
}

.pnc-primary-nav-inner {
	display: flex;
	width: min(var(--pnc-header-container), calc(100% - (var(--pnc-gutter) * 2)));
	min-width: 0;
	margin-inline: auto;
	padding-block: 10px;
	align-items: center;
	gap: var(--pnc-nav-gap, 22px);
}

.pnc-nav-main,
.pnc-nav-more-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pnc-nav-main {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	align-items: center;
	gap: var(--pnc-nav-gap, 22px);
	overflow: hidden;
	white-space: nowrap;
}

.pnc-nav-item {
	flex: 0 0 auto;
	min-width: 0;
}

.pnc-primary-nav--desktop .pnc-nav-link {
	display: inline-flex;
	align-items: center;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.16s ease;
}

.pnc-primary-nav--desktop .pnc-nav-link:hover,
.pnc-primary-nav--desktop .pnc-nav-link:focus-visible,
.pnc-primary-nav--desktop .pnc-nav-link.is-active {
	color: #ffcc32;
}

.pnc-nav-more {
	position: relative;
	flex: 0 0 auto;
}

.pnc-nav-more-button {
	display: inline-flex;
	height: 34px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 4px;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.pnc-nav-more-button svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.16s ease;
}

.pnc-nav-more.is-active .pnc-nav-more-button,
.pnc-nav-more-button:hover,
.pnc-nav-more-button:focus-visible {
	color: #ffcc32;
}

.pnc-nav-more.is-open .pnc-nav-more-button svg {
	transform: rotate(180deg);
}

.pnc-nav-more-menu {
	position: absolute;
	top: calc(100% + 7px);
	right: 0;
	z-index: 1300;
	display: block;
	width: 240px;
	padding: 6px;
	border: 1px solid var(--pnc-color-border);
	border-radius: 4px;
	background: var(--pnc-color-surface);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s linear;
}

.pnc-nav-more.is-open .pnc-nav-more-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.pnc-nav-more-menu .pnc-nav-item {
	display: block;
}

.pnc-nav-more-menu .pnc-nav-link {
	display: block;
	width: 100%;
	padding: 9px 10px;
	border-radius: 3px;
	color: var(--pnc-color-text);
	white-space: normal;
}

.pnc-nav-more-menu .pnc-nav-link:hover,
.pnc-nav-more-menu .pnc-nav-link:focus-visible {
	background: color-mix(in srgb, var(--pnc-color-accent) 8%, var(--pnc-color-surface));
	color: var(--pnc-color-accent);
}

.pnc-nav-more-menu .pnc-nav-link.is-active {
	color: #e32636;
}

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

@media (min-width: 901px) {
	html.pnc-nav-fit-boot .pnc-primary-nav--desktop .pnc-primary-nav-inner {
		visibility: hidden;
	}
}

@media (max-width: 900px) {
	.pnc-primary-nav--desktop {
		display: none;
	}

	.pnc-mobile-nav {
		display: block;
		width: 100%;
		border-bottom: 1px solid var(--pnc-color-border);
		background: var(--pnc-color-surface);
	}

	.pnc-mobile-nav-rail {
		display: flex;
		width: 100%;
		padding: 9px var(--pnc-gutter);
		align-items: center;
		gap: var(--pnc-nav-mobile-gap, 20px);
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.pnc-mobile-nav-rail::-webkit-scrollbar {
		display: none;
	}

	.pnc-mobile-nav .pnc-nav-link {
		flex: 0 0 auto;
		max-width: min(72vw, 280px);
		overflow: hidden;
		color: var(--pnc-color-text);
		font-size: 14px;
		font-weight: 700;
		line-height: 1.2;
		text-decoration: none;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.pnc-mobile-nav .pnc-nav-link:hover,
	.pnc-mobile-nav .pnc-nav-link:focus-visible {
		color: var(--pnc-color-accent);
	}

	.pnc-mobile-nav .pnc-nav-link.is-active {
		color: #e32636;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pnc-primary-nav--desktop .pnc-nav-link,
	.pnc-nav-more-button svg,
	.pnc-nav-more-menu {
		transition: none;
	}
}

/* M3 Stage 4 — B3 Tag Sorotan, Compact Header B4, TSM1/TSM2. */
.pnc-mobile-sticky-stack {
	position: relative;
	z-index: auto;
	background: var(--pnc-color-surface);
}

.pnc-sorotan-desktop {
	width: 100%;
	border-bottom: 1px solid var(--pnc-color-border);
	background: var(--pnc-color-surface);
}

.pnc-b3-inner,
.pnc-b4-inner {
	display: grid;
	width: min(95%, var(--pnc-header-container));
	min-width: 0;
	margin-inline: auto;
	align-items: center;
}

.pnc-b3-inner {
	grid-template-columns: minmax(0, 1fr) 76px;
	column-gap: 24px;
}

.pnc-b3-viewport,
.pnc-b4-viewport {
	min-width: 0;
	overflow: hidden;
}

.pnc-b3-rail,
.pnc-b4-rail {
	display: flex;
	width: max-content;
	min-width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: clamp(28px, 2.4vw, 46px);
	transform: translate3d(0, 0, 0);
	transition: transform 0.24s ease;
	will-change: transform;
}

.pnc-b3-rail {
	padding-block: 8px;
}

.pnc-b3-item,
.pnc-b4-item {
	flex: 0 0 auto;
	white-space: nowrap;
	text-decoration: none;
}

.pnc-b3-item {
	padding: 6px 2px;
	color: var(--pnc-color-heading);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

.pnc-b3-item:hover,
.pnc-b3-item:focus-visible,
.pnc-b3-item.is-active,
.pnc-b4-item:hover,
.pnc-b4-item:focus-visible,
.pnc-b4-item.is-active {
	color: var(--pnc-color-accent);
}

.pnc-b3-controls,
.pnc-b4-controls {
	display: grid;
	grid-template-columns: 34px 34px;
	gap: 6px;
	justify-content: end;
	align-items: center;
}

.pnc-b3-controls button,
.pnc-b4-controls button {
	display: inline-flex;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--pnc-color-accent);
	cursor: pointer;
}

.pnc-b3-controls button:hover:not(:disabled),
.pnc-b4-controls button:hover:not(:disabled) {
	background: color-mix(in srgb, var(--pnc-color-accent) 8%, transparent);
}

.pnc-b3-controls button:disabled,
.pnc-b4-controls button:disabled {
	opacity: 0.26;
	cursor: default;
}

.pnc-b3-controls svg,
.pnc-b4-controls svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pnc-compact-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1250;
	width: 100%;
	border-bottom: 1px solid var(--pnc-color-border);
	background: color-mix(in srgb, var(--pnc-color-surface) 98%, transparent);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-110%);
	transition: transform 0.2s ease, opacity 0.16s ease, visibility 0s linear 0.2s;
}

.pnc-compact-nav.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
}

body.admin-bar .pnc-compact-nav {
	top: 32px;
}

.pnc-b4-inner {
	min-height: var(--pnc-b4-height, 50px);
	grid-template-columns: 38px minmax(0, 1fr) 76px;
	column-gap: 18px;
}

.pnc-b4-site {
	display: flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--pnc-color-accent);
	text-decoration: none;
}

.pnc-b4-site img,
.pnc-b4-site > span {
	display: flex;
	width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	object-fit: cover;
}

.pnc-b4-site > span {
	background: var(--pnc-color-accent);
	color: #fff;
	font-weight: 700;
}

.pnc-b4-item {
	padding: 14px 2px;
	color: var(--pnc-color-heading);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
}

.pnc-tsm1,
.pnc-tsm2 {
	display: none;
}

@keyframes pnc-tsm-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-100% + 220px)); }
}

@media (max-width: 900px) {
	.pnc-mobile-sticky-stack {
		position: sticky;
		top: 0;
		z-index: 1100;
		width: 100%;
		max-width: 100%;
		overflow: visible;
	}

	.pnc-sorotan-desktop,
	.pnc-compact-nav {
		display: none;
	}

	.pnc-tsm1,
	.pnc-tsm2 {
		display: flex;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		height: var(--pnc-tsm-height, 40px);
		align-items: stretch;
		overflow: hidden;
		background: linear-gradient(90deg, #102f7e 0%, #0f4da4 52%, #1264bf 100%);
		contain: inline-size;
	}

	.pnc-tsm-label {
		position: relative;
		z-index: 3;
		display: flex;
		flex: 0 0 108px;
		height: 100%;
		margin-right: -14px;
		padding-left: 12px;
		align-items: center;
		background: #ff1717;
		clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
		color: #fff;
		font-size: 13px;
		font-style: italic;
		font-weight: 600;
		letter-spacing: 0.2px;
		line-height: 1.2;
		text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
		white-space: nowrap;
	}

	.pnc-tsm1-rail {
		display: flex;
		flex: 1 1 auto;
		min-width: 0;
		height: 100%;
		padding: 0 14px 0 28px;
		align-items: center;
		gap: 14px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}

	.pnc-tsm1-rail::-webkit-scrollbar {
		display: none;
	}

	.pnc-tsm-link,
	.pnc-tsm-separator,
	.pnc-tsm2-marquee,
	.pnc-tsm2-marquee a {
		flex: 0 0 auto;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.2;
	}

	.pnc-tsm-link,
	.pnc-tsm2-marquee a {
		color: #fff;
		text-decoration: none;
	}

	.pnc-tsm-link:hover,
	.pnc-tsm-link:focus-visible,
	.pnc-tsm-link.is-active,
	.pnc-tsm2-marquee a:hover,
	.pnc-tsm2-marquee a:focus-visible {
		color: #ffcc32;
	}

	.pnc-tsm-separator {
		color: rgba(255, 255, 255, 0.72);
	}

	.pnc-tsm2 {
		min-height: 0;
		max-height: 0;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-100%);
		transform-origin: top center;
		transition: max-height 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease, transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.34s;
		will-change: max-height, opacity, transform;
	}

	.pnc-tsm2.is-visible {
		min-height: var(--pnc-tsm-height, 40px);
		max-height: var(--pnc-tsm-height, 40px);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
		transition-delay: 0s;
	}

	.pnc-tsm2-viewport {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
	}

	.pnc-tsm2-marquee {
		display: inline-flex;
		width: max-content;
		min-width: max-content;
		height: 100%;
		padding-left: 20px;
		align-items: center;
		gap: 18px;
		white-space: nowrap;
		animation: pnc-tsm-marquee var(--pnc-tsm-ticker, 24s) linear infinite;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pnc-b3-rail,
	.pnc-b4-rail,
	.pnc-compact-nav,
	.pnc-tsm2,
	.pnc-tsm2-marquee {
		transition: none;
		animation: none;
	}
}

