/*
 * Data Services release notes (/data-services/release-notes/vNN), ticket 1086.
 * Loaded only by evdb-ds-releasenotes.php (head.php, $current_page). Every rule is scoped
 * to .rn, the wrapper around a version's content, so no other page changes.
 * House style: Lato 300, #505050 text, #ddd rules, #eee zebra rows, 5px radius; accents
 * from the site: #0078d7 (blue button), lightseagreen (incentive badge), #ffb833 (notice).
 */

.rn {
	--rn-blue: #0078d7;
	--rn-blue-ink: #005bb5;   /* house hover blue; text on the light tint: 6.0:1 */
	--rn-blue-tint: #eef5fc;
	--rn-green: #1a7f78;      /* white text on it: 4.8:1 */
	--rn-orange: #ffb833;
	--rn-orange-tint: #fff7e8;
	--rn-orange-ink: #8a5a00;
	--rn-grey: #6b6b6b;       /* text on #f0f0f0: >= 4.5:1 */
	--rn-rule: #ddd;
	--rn-zebra: #eee;
	--rn-code-bg: #f5f5f5;
	width: 100%;
	max-width: 780px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ---------- header: version, facts ---------- */

.rn-head {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rn-rule);
}
.rn-kicker {
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--rn-grey);
}
#informatie-page .rn .rn-title {
	font-size: 30px;
	line-height: 38px;
	font-weight: 400;
	margin: 2px 0 12px;
	padding: 0;
	border: 0;
}
.rn-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	list-style: none;
	margin: 0;
}
#informatie-page .rn .rn-facts {
	padding: 0;
}
#informatie-page .rn .rn-facts li {
	padding: 0;
	white-space: nowrap;
}
.rn-facts i {
	width: 16px;
	margin-right: 6px;
	color: var(--rn-grey);
	text-align: center;
}
.rn-facts .rn-tbd {
	font-weight: 400;
	color: var(--rn-orange-ink);
}

/* ---------- in-page navigation ---------- */

.rn-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 20px;
}
.rn-nav span {
	color: var(--rn-grey);
	margin-right: 4px;
	padding: 4px 0;
}
#informatie-page .rn .rn-nav a {
	padding: 3px 10px;
	border: 1px solid var(--rn-rule);
	border-radius: 14px;
	color: inherit;
	background: #fafafa;
}
#informatie-page .rn .rn-nav a:hover {
	border-color: #505050;
	text-decoration: none;
}

/* ---------- sections ---------- */

/* ids of the sections before ticket 1086 (section-2 …), kept so old links still land */
.rn-anchor {
	display: block;
	scroll-margin-top: 10px;
}

#informatie-page .rn section {
	margin-top: 36px;
	border-bottom: 0;
	padding-bottom: 0;
	scroll-margin-top: 10px;
}
#informatie-page .rn h2 {
	font-size: 20px;
	line-height: 30px;
	font-weight: 400;
	margin-bottom: 14px;
}
#informatie-page .rn h3 {
	font-size: 17px;
	font-weight: 400;
	margin: 28px 0 10px;
}
#informatie-page .rn h4 {
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
	margin: 0 0 6px;
	line-height: 24px;
}
#informatie-page .rn p {
	margin: 0 0 10px;
}
#informatie-page .rn ul,
#informatie-page .rn ol {
	padding-left: 20px;
	margin-bottom: 10px;
}
#informatie-page .rn li {
	padding: 2px 0;
}
.rn b,
.rn strong {
	font-weight: 400;
}

/* ---------- code: field names, URLs ---------- */

.rn code {
	font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	padding: 1px 5px;
	border: 1px solid #e4e4e4;
	border-radius: 3px;
	background: var(--rn-code-bg);
	color: #333;
	overflow-wrap: anywhere;
}
.rn code b {
	font-weight: 700;
}
.rn-code {
	margin: 8px 0 12px;
	padding: 10px 12px;
	border: 1px solid var(--rn-rule);
	border-radius: 5px;
	background: var(--rn-code-bg);
	font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	line-height: 22px;
	color: #333;
	overflow-wrap: anywhere;
}
.rn-code > div + div {
	margin-top: 4px;
}
.rn-code .rn-code-label {
	display: inline-block;
	min-width: 150px;
	font-family: 'Lato', sans-serif;
	font-size: 13px;
	color: var(--rn-grey);
}
.rn-code b {
	font-weight: 700;
	color: var(--rn-blue-ink);
}

/* ---------- callouts ---------- */

.rn-callouts {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}
.rn-callout {
	padding: 12px 16px;
	border: 1px solid var(--rn-rule);
	border-left: 4px solid var(--rn-grey);
	border-radius: 5px;
	background: #fafafa;
}
.rn-callout--new {
	border-left-color: var(--rn-blue);
	background: var(--rn-blue-tint);
}
.rn-callout--breaking,
.rn-callout--important {
	border-left-color: var(--rn-orange);
	background: var(--rn-orange-tint);
}
.rn-callout-label {
	display: block;
	font-size: 12px;
	line-height: 18px;
	font-weight: 400;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--rn-grey);
	margin-bottom: 2px;
}
.rn-callout--new .rn-callout-label {
	color: var(--rn-blue-ink);
}
.rn-callout--breaking .rn-callout-label,
.rn-callout--important .rn-callout-label {
	color: var(--rn-orange-ink);
}
#informatie-page .rn .rn-callout p:last-child,
#informatie-page .rn .rn-callout ul:last-child {
	margin-bottom: 0;
}
#informatie-page .rn .rn-callout a {
	color: inherit;
}

/* ---------- highlights ---------- */

#informatie-page .rn ul.rn-highlights {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--rn-rule);
}
#informatie-page .rn ul.rn-highlights > li {
	position: relative;
	padding: 8px 0 8px 26px;
	border-bottom: 1px solid var(--rn-rule);
}
.rn-highlights > li::before {
	content: "\f00c";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 12px;
	position: absolute;
	left: 4px;
	top: 8px;
	color: var(--rn-green);
}

/* ---------- tags: new / changed / renamed / fixed ---------- */

.rn-tag {
	display: inline-block;
	vertical-align: 1px;
	margin-right: 2px;
	padding: 0 7px;
	border-radius: 3px;
	font-size: 11px;
	line-height: 18px;
	font-weight: 400;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #fff;
	background: var(--rn-grey);
	white-space: nowrap;
}
.rn-tag--new { background: var(--rn-green); }
.rn-tag--changed { background: var(--rn-blue-ink); }
.rn-tag--renamed,
.rn-tag--breaking { background: var(--rn-orange); color: #3d2a00; }
.rn-tag--fixed { background: var(--rn-grey); }

/* ---------- vehicle categories and change items ---------- */

#informatie-page .rn h3.rn-cat {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 30px;
	padding: 6px 12px;
	border-radius: 5px;
	background: #f0f0f0;
	font-size: 16px;
}
.rn-item {
	margin: 12px 0 0;
	padding: 12px 0 4px 14px;
	border-left: 3px solid var(--rn-rule);
}
.rn-item--breaking {
	border-left-color: var(--rn-orange);
}
#informatie-page .rn .rn-item > ul:last-child,
#informatie-page .rn .rn-item > p:last-child,
#informatie-page .rn .rn-item > table:last-child {
	margin-bottom: 8px;
}

/* ---------- field tables ---------- */

.rn-fields {
	width: 100%;
	border-collapse: collapse;
	margin: 4px 0 10px;
	font-size: 14px;
	line-height: 21px;
}
.rn-fields td {
	padding: 6px 8px;
	vertical-align: top;
}
.rn-fields tr:nth-child(odd) {
	background: var(--rn-zebra);
}
.rn-fields td:first-child {
	width: 40%;
}
.rn-fields td:first-child code {
	background: transparent;
	border: 0;
	padding: 0;
}
.rn-fields td em {
	font-style: normal;
}
.rn-fields td em + br + em {
	display: inline;
}

/* ---------- definition lists (availability, Norway facts) ---------- */

.rn-dl {
	margin: 0 0 10px;
}
.rn-dl dt {
	font-weight: 400;
	margin-top: 10px;
}
.rn-dl dt:first-child {
	margin-top: 0;
}
.rn-dl dd {
	margin: 2px 0 0;
}
.rn-dl dd ul {
	margin: 0;
}

/* supported versions as chips */
#informatie-page .rn ul.rn-versions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 6px 0 4px;
}
#informatie-page .rn ul.rn-versions li {
	padding: 1px 10px;
	border: 1px solid var(--rn-rule);
	border-radius: 14px;
	background: #fafafa;
	font-size: 14px;
}
#informatie-page .rn ul.rn-versions li.rn-version--ending {
	border-color: var(--rn-orange);
	background: var(--rn-orange-tint);
}

/* ---------- other versions (wrapper) ---------- */

.rn-versions-nav {
	margin-top: 40px;
	padding-top: 14px;
	border-top: 1px solid var(--rn-rule);
	font-size: 14px;
}
.rn-versions-nav span {
	color: var(--rn-grey);
	margin-right: 6px;
}
#informatie-page .rn .rn-versions-nav a,
#informatie-page .rn .rn-versions-nav strong {
	display: inline-block;
	margin: 2px 6px 2px 0;
}

/* ---------- phone ---------- */

@media only screen and (max-width: 600px) {
	#informatie-page .rn .rn-title {
		font-size: 24px;
		line-height: 30px;
	}
	.rn-facts {
		flex-direction: column;
		gap: 4px;
	}
	#informatie-page .rn .rn-facts li {
		white-space: normal;
	}
	.rn-fields tr,
	.rn-fields td {
		display: block;
		width: auto !important;
	}
	.rn-fields td:first-child {
		padding-bottom: 0;
	}
	.rn-fields td + td {
		padding-top: 2px;
	}
	.rn-code .rn-code-label {
		display: block;
		min-width: 0;
	}
	.rn-item {
		padding-left: 10px;
	}
}

/* ---------- print ---------- */

@media print {
	.rn-nav,
	.rn-versions-nav {
		display: none;
	}
	.rn-callout,
	.rn-item,
	.rn-fields tr,
	.rn-code {
		break-inside: avoid;
	}
	.rn h2,
	.rn h3,
	.rn h4 {
		break-after: avoid;
	}
	.rn-callout,
	.rn-tag,
	.rn-fields tr,
	.rn-code,
	.rn code,
	.rn h3.rn-cat {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}

/* a change item whose title is an h3 (versions without vehicle categories, v27-v31) */
#informatie-page .rn .rn-item > h3 {
	font-size: 15px;
	line-height: 24px;
	margin: 0 0 6px;
}

/* Country flag next to a market name (flag-icon library, as in the site header and footer). */
.rn .rn-flag {
	margin-right: 0.4em;
	vertical-align: -0.1em;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Data Services page: markets × vehicle categories grid (informatie/data-services*.php) */
.rn-grid {
	width: 100%;
	border-collapse: collapse;
	margin: 4px 0 8px;
	font-size: 14px;
	line-height: 21px;
}
.rn-grid th,
.rn-grid td {
	padding: 7px 8px;
	border-bottom: 1px solid var(--rn-rule);
	font-weight: 400;
}
.rn-grid thead th {
	color: var(--rn-grey);
	font-size: 13px;
	text-align: center;
	border-bottom-color: #bbb;
}
.rn-grid thead th:first-child,
.rn-grid tbody th {
	text-align: left;
}
.rn-grid td {
	width: 18%;
	text-align: center;
}
.rn-grid-yes {
	color: var(--rn-green);
}
.rn-grid-later {
	color: var(--rn-orange-ink);
	font-size: 13px;
}
.rn-grid .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
@media only screen and (max-width: 600px) {
	.rn-grid td {
		width: auto;
	}
	.rn-grid th,
	.rn-grid td {
		padding: 7px 4px;
	}
}
