/*
Theme Name: Nuansa Investigasi
Theme URI: https://example.com/nuansa-investigasi
Description: Child theme portal berita berbasis Twenty Twenty-Four.
Author: Nuansa Investigasi
Template: twentytwentyfour
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nuansa-investigasi
*/

:root {
	--ni-ink: #092b63;
	--ni-blue: #075aaa;
	--ni-red: #e31b23;
	--ni-muted: #526477;
	--ni-paper: #ffffff;
	--ni-line: #cbd8e8;
}

body {
	background: var(--ni-paper);
	color: var(--ni-ink);
}

.ni-masthead {
	border-bottom: 4px solid var(--ni-blue);
	box-shadow: 0 2px 0 var(--ni-red);
	padding-top: 1.15rem;
	padding-bottom: 0.75rem;
}

.ni-topbar {
	background: var(--ni-blue);
	color: #fff;
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ni-topbar-text {
	margin: 0;
	padding: 0.45rem 0;
}

.ni-topbar-text span {
	color: #aeb7bf;
	padding: 0 0.5rem;
}

.ni-brand .wp-block-site-title a {
	color: var(--ni-ink);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.ni-brand .wp-block-site-title a::first-letter {
	color: var(--ni-red);
}

.ni-brand .wp-block-site-logo img {
	max-height: 76px;
	width: auto;
}

.ni-brand:has(.wp-block-site-logo img) .wp-block-site-title {
	display: none;
}

.ni-live-badge {
	align-items: center;
	display: flex;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0;
}

.ni-live-badge span {
	background: var(--ni-red);
	border-radius: 50%;
	display: inline-block;
	height: 0.55rem;
	margin-right: 0.45rem;
	width: 0.55rem;
}

.ni-main-nav {
	margin-top: 1.25rem;
}

.ni-running-ticker {
	align-items: center;
	background: var(--ni-ink);
	color: #fff;
	display: flex;
	min-height: 2.75rem;
	overflow: hidden;
}

.ni-running-label {
	align-items: center;
	align-self: stretch;
	background: var(--ni-red);
	display: flex;
	flex: 0 0 auto;
	font-size: 0.72rem;
	font-weight: 800;
	margin: 0;
	padding: 0 1.1rem;
}

.ni-running-window {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.ni-running-track,
.ni-running-group {
	align-items: center;
	display: flex;
	width: max-content;
}

.ni-running-track {
	animation: ni-running-scroll 42s linear infinite;
}

.ni-running-group {
	flex: 0 0 auto;
	padding-right: 2rem;
}

.ni-running-item {
	align-items: center;
	color: #fff;
	display: flex;
	font-size: 0.82rem;
	font-weight: 600;
	min-height: 2.75rem;
	padding: 0 1rem;
	text-decoration: none;
	white-space: nowrap;
}

.ni-running-item::after {
	background: var(--ni-red);
	border-radius: 50%;
	content: "";
	height: 0.35rem;
	margin-left: 2rem;
	width: 0.35rem;
}

.ni-running-item:hover,
.ni-running-item:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.ni-running-ticker:hover .ni-running-track,
.ni-running-ticker:focus-within .ni-running-track {
	animation-play-state: paused;
}

@keyframes ni-running-scroll {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ni-running-window {
		overflow-x: auto;
	}

	.ni-running-track {
		animation: none;
	}

	.ni-running-group[aria-hidden="true"] {
		display: none;
	}
}

.ni-ticker {
	background: #fff;
	box-sizing: border-box;
	padding: 1rem max(1rem, calc((100vw - 1180px) / 2));
}

.ni-ticker-label {
	color: var(--ni-red);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0 auto 0.55rem;
	max-width: 1180px;
}

.ni-ticker-window {
	height: clamp(17rem, 30vw, 23rem);
	margin: 0 auto;
	max-width: 1180px;
	overflow: hidden;
	position: relative;
}

.ni-ticker-track {
	display: flex;
	height: 100%;
	transition: transform 700ms cubic-bezier(0.22, 0.68, 0, 1.01);
	width: calc(var(--ni-slide-count) * 100%);
	will-change: transform;
}

.ni-ticker-slide {
	box-sizing: border-box;
	flex: 0 0 calc(100% / var(--ni-slide-count));
	height: 100%;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.ni-ticker-slide::after {
	background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / 78%) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.ni-ticker-image {
	background: #dce7f1;
	inset: 0;
	position: absolute;
}

.ni-ticker-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	width: 100%;
}

.ni-ticker-image-placeholder {
	align-items: center;
	background: #dce7f1;
	color: var(--ni-blue);
	display: flex;
	font-size: 3rem;
	font-weight: 800;
	justify-content: center;
}

.ni-ticker-copy {
	bottom: 3.75rem;
	color: #fff;
	left: clamp(1rem, 4vw, 2.5rem);
	max-width: 48rem;
	position: absolute;
	right: 1.5rem;
	z-index: 1;
}

.ni-ticker-number {
	background: var(--ni-red);
	color: #fff;
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 800;
	margin-bottom: 0.65rem;
	padding: 0.3rem 0.55rem;
}

.ni-ticker-title {
	color: #fff;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
}

.ni-ticker-title a {
	color: inherit;
	text-decoration: none;
}

.ni-ticker-title a:hover,
.ni-ticker-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.ni-ticker-controls {
	align-items: center;
	bottom: 1rem;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	left: 0;
	position: absolute;
	right: 0;
	z-index: 2;
}

.ni-ticker-arrow {
	align-items: center;
	background: rgb(0 0 0 / 45%);
	border: 1px solid rgb(255 255 255 / 65%);
	border-radius: 2px;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 1.6rem;
	height: 2.5rem;
	justify-content: center;
	line-height: 1;
	position: absolute;
	width: 2.5rem;
}

.ni-ticker-arrow:first-child {
	left: 1rem;
}

.ni-ticker-arrow:last-child {
	right: 1rem;
}

.ni-ticker-arrow:hover,
.ni-ticker-arrow:focus-visible {
	background: var(--ni-red);
}

.ni-ticker-dot {
	background: rgb(255 255 255 / 78%);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	height: 0.55rem;
	padding: 0;
	width: 0.55rem;
}

.ni-ticker-dot[aria-current="true"] {
	background: var(--ni-red);
	width: 1.4rem;
}

.ni-ticker-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 600px) {
	.ni-side-headlines {
		display: none;
	}
	
	.ni-ticker {
		padding: 0.75rem 1rem;
	}

	.ni-ticker-label {
		font-size: 0.58rem;
	}

	.ni-ticker-window {
		height: 15rem;
	}

	.ni-ticker-copy {
		bottom: 3.5rem;
		left: 1rem;
		right: 1rem;
	}

	.ni-ticker-title {
		font-size: 1.3rem;
	}

	.ni-ticker-controls {
		bottom: 0.75rem;
	}

	.ni-ticker-arrow {
		height: 2rem;
		width: 2rem;
	}

	.ni-ticker-arrow:first-child {
		left: 0.5rem;
	}

	.ni-ticker-arrow:last-child {
		right: 0.5rem;
	}

	.ni-ticker-dot {
		height: 0.45rem;
		width: 0.45rem;
	}

	.ni-ticker-dot[aria-current="true"] {
		width: 1.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ni-ticker-track {
		transition: none;
	}
}

.ni-kicker {
	color: var(--ni-blue);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ni-rule {
	border-top: 1px solid var(--ni-line);
}

.ni-story-card {
	border-top: 3px solid var(--ni-blue);
	padding-top: 1rem;
}

.ni-story-card .wp-block-post-title a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.ni-story-card .wp-block-post-excerpt {
	color: var(--ni-muted);
}

.ni-news-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 2.25rem;
}

.ni-news-grid > li {
	min-width: 0 !important;
	width: auto !important;
}

.ni-news-grid .ni-story-card {
	min-width: 0;
}

.ni-news-grid .wp-block-post-title {
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
	line-height: 1.12;
	overflow-wrap: normal;
	word-break: normal;
}

.ni-news-grid .wp-block-post-excerpt {
	font-size: 0.92rem;
	line-height: 1.45;
}

.ni-featured .wp-block-post-title {
	font-size: clamp(2rem, 4vw, 4rem);
	line-height: 1;
}

.ni-side-headlines {
	border-left: 1px solid var(--ni-line);
	padding-left: 1.5rem;
}

.ni-headline-item {
	align-items: center;
	border-bottom: 1px solid var(--ni-line);
	gap: 1rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.75rem;
}

.ni-headline-copy {
	min-width: 0;
}

.ni-headline-copy .wp-block-post-title {
	font-size: 1.08rem;
	line-height: 1.2;
	margin: 0;
}

.ni-headline-copy .ni-kicker {
	font-size: 0.65rem;
	margin: 0.45rem 0 0;
}

.ni-headline-item .wp-block-post-featured-image {
	background: #e8f0f8;
	flex: 0 0 88px !important;
	height: 66px !important;
	margin: 0;
	order: -1;
	overflow: hidden;
	width: 88px !important;
}

.ni-headline-item .wp-block-post-featured-image img {
	border-radius: 5px;
	display: block;
	height: 66px !important;
	object-fit: cover;
	width: 88px !important;
}

.ni-headline-item .wp-block-post-featured-image a {
	display: block;
	height: 100%;
	width: 100%;
}

.ni-section-title {
	border-bottom: 3px solid var(--ni-red);
	padding-bottom: 0.65rem;
}

.wp-block-navigation {
	border-top: 1px solid var(--ni-line);
	padding-top: 0.75rem;
}

.wp-block-navigation a {
	color: var(--ni-ink);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wp-block-navigation a:hover {
	color: var(--ni-red);
}

.wp-block-navigation a:hover,
.wp-block-post-title a:hover {
	color: var(--ni-red);
}

.ni-footer-stats {
	border-top: 1px solid var(--ni-line);
	gap: 1.5rem;
	padding-bottom: 1.5rem;
	padding-top: 1.5rem;
}

.ni-footer-note {
	color: var(--ni-muted);
	font-size: 0.78rem;
	margin: 0;
}

.ni-footer-stats .wp-block-shortcode {
	margin: 0;
}

@media (max-width: 781px) {
	.ni-side-headlines {
		border-left: 0;
		padding-left: 0;
	}

	.ni-headline-item .wp-block-post-featured-image {
		flex-basis: 78px !important;
		height: 58px !important;
		width: 78px !important;
	}

	.ni-headline-item .wp-block-post-featured-image img {
		height: 58px !important;
		width: 78px !important;
	}

	.ni-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1.25rem;
	}

	.ni-news-grid .wp-block-post-title {
		font-size: 1.05rem;
	}
}

@media (max-width: 600px) {
	.ni-topbar-text {
		padding: 0.45rem 0.75rem;
		text-align: center;
	}

	.ni-topbar-text span {
		padding: 0 0.3rem;
	}

	.ni-masthead > .wp-block-group {
		align-items: center;
		flex-direction: column;
		gap: 0.85rem;
	}

	.ni-brand {
		align-items: center;
		text-align: center;
		width: 100%;
	}

	.ni-brand .wp-block-site-logo {
		margin-inline: auto;
	}

	.ni-brand .wp-block-site-logo img {
		max-height: 68px;
		max-width: min(220px, 72vw);
	}

	.ni-brand .ni-kicker {
		margin-top: 0.35rem;
	}

	.ni-live-badge {
		justify-content: center;
	}

	.ni-main-nav {
		margin-top: 0.85rem;
	}
}

@media (max-width: 520px) {
	.ni-news-grid {
		grid-template-columns: 1fr !important;
	}
}