html {
	font-family: 'DM Sans', Calibri, Helvetica, Arial, sans-serif;
	background-color: #F6FBFF;
}
body {
	max-width: min(55em,95vw);
	margin-inline: auto;
	padding-inline: 0.5em;
	padding-block-end: max(5em,20vh);
	background-color: #F6FBFF;
}
hr {
	display: none;
}

p {
	color: #2f2f2f
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'DM Sans', sans-serif;
	margin-block: 1em 0;
	padding-block: 0.33em 0.25em;
	border-image-outset: 0 0 0 2ch;
	border-image-slice: 0 fill;
	border-image-width: 0;
	border-image-repeat: stretch;
	mix-blend-mode: multiply;
}

h1 {
	margin-block: 0;
	padding-block: 1rem;
	font-size: 2.75em;
	line-height: 1.1;
	color:#022759;
}

.logo-style {
	display: flex;
	align-items: center;
}

.logo-style a {
	text-decoration: none;
}

.logo-style a:visited {
	color: #022759;
}

.logo-style img {
	max-width: 1.4rem;
	margin-right: .5rem;
}

h1.logo-style {
	font-size: 1.2rem;
}

main > p:first-child {
	max-width: 100%;
	margin-block: 0 2em;
	font-size: 1.1em;
}

main p.callout {
	font-size: 1.33em;
}

h2 {
	color: #022759;
}

h2.report-subtitle {
    padding: 1rem;
    background-color: #F6FBFF;
    border-radius: 16px 16px 0 0;
    border: 2px solid #022759;

	margin-top: 2rem;
}
h3 {
    background: #E3FFBF;
    border: 2px solid #022759;
    padding: 1rem;
    margin: -2px 0;
}
h3:has(+ .removed) {
	margin-block-start: 3em;
	border-image-source: linear-gradient(90deg,#755 10em,#977);
}
ol + h3 {
	margin-block-start: 2em;
}
h4 {
	color: #022759;
	display: block;
	padding-inline: 0;
	text-transform: uppercase;
	padding: 1rem 0;
}

h4:first-child {
    margin-top: 0;
}

time {
	display: inline-block;
	text-wrap: nowrap;
}

summary {
	cursor: pointer;
	color: #022759;
	font-weight: 700;

	/* borders + overlapping */
	border: 2px solid #022759;
    padding: 1rem;
    margin: -2px 0;
}

details li {
	padding-block: 0.25em;
	padding-inline: 0 0.25em;
	margin-inline-start: 1em;
}
details.added li::marker {
	content: "➕";
}
details.removed li::marker {
	content: "🗑";
}

/* outline styles + layout */

.outline-container {
	border: 2px solid #022759;
}


label {
	cursor: pointer;
}

ol {
	padding: 0;
	margin-inline: 0;
	margin-block: 0;
	list-style: none;
}
li + li {
	border-top: 1px dotted #AAA;
}
li.all3, li.all3 > *:not(:first-child) {
	opacity: 0.67;
}

.section-background {
	background-color: #fff;
}

section {
	display: grid;
	grid-template-columns: auto auto max-content;

	background-color: #fff;
    border: 2px solid #022759;;
    margin: -2px 0 0 0;
    padding: 1rem;
}
section :is(h4, ol, li) {
	grid-column: 1 / -1;
	margin-inline: 0;
}

section :is(ol, li) {
	display: grid;
	grid-template-columns: subgrid;
	gap: 0 1em;
}
section li {
	padding-block: 0.15em;
}
section li:hover {
	background: #EEE;
}
section li:hover a[href] {
	background: #E3FFBF;
	border-radius: 0 0.67em 0.67em 0;
}
section ol li > b {
	margin-inline: 0.75em;
}
section span.engines {
	align-self: start;
	background-color: #FFF;
}
section span.browsers strong {
	text-transform: capitalize;
}

@media (max-width: 699px) {
	section {
		grid-template-columns: auto;
	}

	section :is(ol, li) {
		grid-gap: .25rem;
	}

	section li {
		grid-template-rows: auto auto auto;
		padding: 0.5em 0;

	}
	section li > :first-child {
		grid-column: 1;
		grid-row: 1 / -1;
	}
	section li span {
		grid-column: 2;
	}
	h1 + div > p {
		display: block;
	}
	time {
		text-wrap: wrap;
	}
}

@media (max-width: 499px) {

	body {
		padding-inline: 0;
	}

	section li span {
		grid-column: 1 / -1;
		word-break: break-all;
	}
	section li > :first-child {
		grid-row: 1;
	}
	section li span.engines {
		grid-row: 3;
		max-width: max-content;
	}
	section li span.browsers {
		grid-row: 2;
	}
}

@supports (grid-template-columns: subgrid) {
	ol li > b {
		display: none;
	}
}

[class^="ni"] {
	--niColor: hsl(120deg, 20%, 80%);
	--niLength: 1%;
	background: linear-gradient(135deg, var(--niColor) 0%, var(--niColor) calc(var(--niLength) * 33%), transparent 0);
	padding-inline: 1ch;
}

.ni1 {--niLength: 1;}
.ni2 {--niLength: 2;}
.ni3 {--niLength: 4; --niColor: hsl(120deg, 70%, 30%); color: #FFF; font-weight: 750;}

ol.implementations li > span > strong {
	text-transform: capitalize;
}

.implementations li img {
	max-height: 1.25em;
	margin-inline: 0.5em;
	vertical-align: bottom;
	width: 1.5rem;
}

.implementations.added ol li:is(:hover, :focus, :focus-within),
.implementations.added h4:has(+ ol:is(:hover, :focus-within)) {
	background: #e3ffbf;
}
.implementations.removed ol li:is(:hover, :focus, :focus-within),
.implementations.removed h4:has(+ ol:is(:hover, :focus-within)) {
	background: #FFCCBF;
}

@supports selector(:has()) {
	.implementations ol li:is(:hover, :focus, :focus-within),
	.implementations h4:has(+ ol:is(:hover, :focus-within)) {
		border-radius: 0.5em;
	}
	.implementations h4:has(+ ol:is(:hover, :focus-within)) {
		border-bottom-left-radius: 0;
	}
	.implementations ol li:is(:hover, :focus, :focus-within) {
		border-radius: 0 0.5em 0.5em 0.75em;
	}
	.implementations.added ol li:has(~ li:is(:hover, :focus-within)) {
		border-inline-start: 0.5em solid #465335;
	}
	.implementations.removed ol li:has(~ li:is(:hover, :focus-within)) {
		border-inline-start: 0.5em solid #FFCCBF);
	}
	.implementations ol li:has(~ li:is(:hover, :focus-within)) > :first-child {
		padding-inline-start: 0.5em;
	}
}

#prev-next {
	display: grid;
	grid-template-columns: max-content 1fr max-content;
	list-style-type: none;
	padding-inline: 0;
	margin-inline: 0;
	transform: translateY(2.5em);
}

footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1em 2em;
	border-block-start: 1px solid #AAAAAAAA;
	margin-block: 3em 0;
	padding-block: 0.25em 1em;
}
footer p {
	margin-block: 0;
}
footer img {
	max-height: 1.5em;
	vertical-align: -33%;
	margin-right: 1rem;
}

footer .subfooter {
	width: 100%;
	justify-self: center;
	text-align: center;
}
footer .subfooter .details {
	font-style: italic;
}

.filtered li:has(>[class^="ni"]:not(.ni3)) {
	display: none;
}

.info {
	background: #FFFCBF;
	padding: 1rem;
	border: 1px solid #555220;
	font-size: 90%;
	margin: 1rem;
}

.info::before {
	content: 'ⓘ';
	margin-right: 0.25rem;
	line-height: 1px;
}
.info:has(strong)::before, .info strong {
	font-weight: 900;
	color: maroon;
}

a[title='permalink']{
	text-decoration: none;
	margin-left: 0.75rem;
}
