/* 112 Files — verkeersinformatie (112nieuws.net) */

.n112f {
	--n112f-blue: #00256a;
	--n112f-blue-mid: #005a87;
	--n112f-red: #cf2e2e;
	--n112f-text: #1f2024;
	--n112f-muted: #5a5f6a;
	--n112f-line: #e2e5eb;
	--n112f-bg: #f4f6f9;
	--n112f-white: #fff;
	--n112f-radius: 6px;
	color: var(--n112f-text);
	font-size: 1rem;
	line-height: 1.45;
	max-width: 100%;
	margin: 0 0 2rem;
}

.n112f *,
.n112f *::before,
.n112f *::after {
	box-sizing: border-box;
}

.n112f-header {
	margin: 0 0 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--n112f-blue);
}

.n112f-header__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--n112f-blue);
	line-height: 1.2;
}

.n112f-header__lead {
	margin: 0;
	color: var(--n112f-muted);
	font-size: 0.95rem;
}

.n112f-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1rem;
}

.n112f-meta {
	margin: 0;
	font-size: 0.85rem;
	color: var(--n112f-muted);
}

.n112f-meta__sep {
	margin: 0 0.35rem;
}

.n112f-search {
	flex: 1 1 12rem;
	max-width: 16rem;
}

.n112f-search__input {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--n112f-line);
	border-radius: var(--n112f-radius);
	background: var(--n112f-white);
	font: inherit;
	font-size: 0.9rem;
	color: var(--n112f-text);
}

.n112f-search__input:focus {
	outline: 2px solid var(--n112f-blue-mid);
	outline-offset: 1px;
	border-color: var(--n112f-blue-mid);
}

.n112f-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 0.65rem;
	margin-bottom: 1.15rem;
}

.n112f-stat {
	background: var(--n112f-bg);
	border-left: 3px solid var(--n112f-blue-mid);
	padding: 0.75rem 0.9rem;
	border-radius: 0 var(--n112f-radius) var(--n112f-radius) 0;
}

.n112f-stat--files {
	border-left-color: var(--n112f-red);
}

.n112f-stat--closures {
	border-left-color: #b45309;
}

.n112f-stat--works {
	border-left-color: var(--n112f-blue-mid);
}

.n112f-stat__value {
	display: block;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--n112f-blue);
	letter-spacing: -0.02em;
}

.n112f-stat--files .n112f-stat__value {
	color: var(--n112f-red);
}

.n112f-stat__label {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.8rem;
	color: var(--n112f-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
}

.n112f-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--n112f-line);
}

.n112f-tab {
	appearance: none;
	border: 1px solid var(--n112f-line);
	background: var(--n112f-white);
	color: var(--n112f-text);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.n112f-tab:hover {
	border-color: var(--n112f-blue-mid);
	color: var(--n112f-blue);
}

.n112f-tab.is-active {
	background: var(--n112f-blue);
	border-color: var(--n112f-blue);
	color: var(--n112f-white);
}

.n112f-tab__count {
	font-weight: 500;
	opacity: 0.75;
	margin-left: 0.15rem;
}

.n112f-road {
	margin: 0 0 1.5rem;
}

.n112f-road.is-hidden,
.n112f-item.is-hidden {
	display: none;
}

.n112f-road__heading {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
	margin: 0 0 0.65rem;
	font-size: 1rem;
}

.n112f-road__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.2rem 0.55rem;
	background: var(--n112f-blue);
	color: var(--n112f-white);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	border-radius: 3px;
	line-height: 1.3;
}

.n112f-road__count {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--n112f-muted);
}

.n112f-items {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--n112f-line);
}

.n112f-item {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--n112f-line);
}

.n112f-item__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
	margin-bottom: 0.25rem;
}

.n112f-item__type {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--n112f-blue-mid);
}

.n112f-item--files .n112f-item__type {
	color: var(--n112f-red);
}

.n112f-item--closures .n112f-item__type {
	color: #b45309;
}

.n112f-item__metrics {
	display: inline-flex;
	gap: 0.5rem;
	font-size: 0.85rem;
	font-weight: 700;
}

.n112f-item__delay {
	color: var(--n112f-red);
}

.n112f-item__length {
	color: var(--n112f-blue);
}

.n112f-item__title {
	margin: 0 0 0.15rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.n112f-item__direction {
	margin: 0 0 0.15rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--n112f-blue);
}

.n112f-item__location,
.n112f-item__desc {
	margin: 0;
	font-size: 0.9rem;
	color: var(--n112f-muted);
}

.n112f-item__desc {
	margin-top: 0.35rem;
}

.n112f-empty {
	margin: 1.5rem 0;
	padding: 1rem 1.15rem;
	background: var(--n112f-bg);
	border-radius: var(--n112f-radius);
	color: var(--n112f-muted);
	text-align: center;
}

.n112f--error {
	padding: 1rem 1.15rem;
	background: #fef2f2;
	border-left: 3px solid var(--n112f-red);
	border-radius: 0 var(--n112f-radius) var(--n112f-radius) 0;
	color: var(--n112f-red);
}

.n112f--error p {
	margin: 0;
}

.n112f.is-refreshing .n112f-body {
	opacity: 0.65;
	transition: opacity 0.2s ease;
}

@media (max-width: 600px) {
	.n112f-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.n112f-search {
		max-width: none;
	}

	.n112f-stat__value {
		font-size: 1.4rem;
	}

	.n112f-tab {
		font-size: 0.8rem;
		padding: 0.4rem 0.7rem;
	}
}

/* Screen reader (als thema die niet levert) */
.n112f .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ——— Sidebar widget ——— */

.n112f-widget {
	--n112f-blue: #00256a;
	--n112f-blue-mid: #005a87;
	--n112f-red: #cf2e2e;
	--n112f-text: #1f2024;
	--n112f-muted: #5a5f6a;
	--n112f-line: #e2e5eb;
	--n112f-bg: #f4f6f9;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--n112f-text);
}

.n112f-widget__summary {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
	padding: 0.55rem 0.7rem;
	background: var(--n112f-bg);
	border-left: 3px solid var(--n112f-red);
	border-radius: 0 4px 4px 0;
}

.n112f-widget__summary-num {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--n112f-red);
	line-height: 1;
}

.n112f-widget__summary-txt {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--n112f-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.n112f-widget__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.n112f-widget__item {
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--n112f-line);
}

.n112f-widget__item:last-child {
	border-bottom: 0;
}

.n112f-widget__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.15rem;
}

.n112f-widget__road {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.12rem 0.4rem;
	background: var(--n112f-blue);
	color: #fff;
	font-weight: 700;
	font-size: 0.8rem;
	border-radius: 3px;
	line-height: 1.3;
}

.n112f-widget__metrics {
	display: inline-flex;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 700;
}

.n112f-widget__delay {
	color: var(--n112f-red);
}

.n112f-widget__length {
	color: var(--n112f-blue);
}

.n112f-widget__dir {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--n112f-blue);
}

.n112f-widget__loc {
	margin: 0.1rem 0 0;
	font-size: 0.78rem;
	color: var(--n112f-muted);
}

.n112f-widget__empty {
	margin: 0.5rem 0;
	font-size: 0.85rem;
	color: var(--n112f-muted);
}

.n112f-widget__meta {
	margin: 0.65rem 0 0;
	font-size: 0.72rem;
	color: var(--n112f-muted);
}

.n112f-widget__more {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	font-weight: 600;
}

.n112f-widget__more a {
	color: var(--n112f-blue);
	text-decoration: none;
}

.n112f-widget__more a:hover {
	text-decoration: underline;
}

.n112f-widget--error {
	padding: 0.5rem 0;
	color: var(--n112f-red);
	font-size: 0.85rem;
}

.n112f-widget--error p {
	margin: 0;
}
