/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */

/*
Document
========
*/

/**
Use a better box model (opinionated).
*/

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

html {
	/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
	font-family:
		system-ui,
		'Segoe UI',
		Roboto,
		Helvetica,
		Arial,
		sans-serif,
		'Apple Color Emoji',
		'Segoe UI Emoji';
	line-height: 1.15; /* 1. Correct the line height in all browsers. */
	-webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
	-moz-tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
	tab-size: 4; /* 3 */
}

/*
Sections
========
*/

body {
	margin: 0; /* Remove the margin in all browsers. */
}

/*
Grouping content
================
*/

/**
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
*/

hr {
	height: 0; /* 1 */
	color: inherit; /* 2 */
}

/*
Text-level semantics
====================
*/

/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr[title] {
	text-decoration: underline dotted;
}

/**
Add the correct font weight in Edge and Safari.
*/

b,
strong {
	font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
	font-family:
		ui-monospace,
		SFMono-Regular,
		Consolas,
		'Liberation Mono',
		Menlo,
		monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/

small {
	font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/*
Tabular data
============
*/

/**
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/

table {
	text-indent: 0; /* 1 */
	border-color: inherit; /* 2 */
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
	text-transform: none;
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
}

/**
Remove the inner border and padding in Firefox.
*/

::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
Restore the focus styles unset by the previous rule.
*/

:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
Remove the additional ':invalid' styles in Firefox.
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
*/

:-moz-ui-invalid {
	box-shadow: none;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
	padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
	vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

/*
Interactive
===========
*/

/*
Add the correct display in Chrome and Safari.
*/

summary {
	display: list-item;
}
abbr {
  cursor: help;
}

button,
summary,
[type="button"],
[type="reset"],
[type="submit"],
[type="color"],
[type="file"],
[type="range"],
label > [type="checkbox"]:enabled,
label > [type="radio"]:enabled {
  cursor: pointer;
}

[readonly] {
  cursor: default;
}

:disabled,
[aria-disabled="true"],
[type="checkbox"][id]:disabled + [for],
[type="radio"][id]:disabled + [for] {
  cursor: not-allowed;
}

[draggable="true"] {
  cursor: grab;
}

[draggable="true"]:active {
  cursor: grabbing;
}
:root {
  --max-body-width: 48rem;
}

html {
  height: 100%;
  line-height: 1.4;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

body {
  display: flex;
  flex-direction: column;
  width: calc(100% - 1rem);
  max-width: var(--max-body-width);
  min-height: 100%;
  margin: 0 auto;
  overflow-wrap: break-word;
}

main {
  flex-grow: 1;
}

img {
  max-width: 100%;
  max-height: 100vh;
}

table {
  display: block;
  overflow-x: auto;
}

pre {
  padding: 1rem;

  /* stylelint-disable declaration-no-important -- Prism hack */
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  /* stylelint-enable */
  overflow-x: auto;
  line-height: 1.15;
}

code {
  padding: 0.25rem;
}

pre code {
  padding: unset;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  max-width: calc(100% - 0.1rem * 2);
  min-height: 1.5rem;
  padding: 0 0.25rem;
  margin: 0 0.1rem;
  overflow: hidden;
}

kbd kbd {
  min-width: unset;
  min-height: unset;
  padding: 0;
  margin: 0;
}

kbd kbd:not(:first-child) {
  padding-left: 0.25rem;
}

kbd kbd:not(:last-child) {
  padding-right: 0.25rem;
}

iframe {
  width: 100%;
  border: none;
}

dialog {
  max-height: calc(100% - 1rem);
  overflow-y: auto;
  border: none;
}

audio,
video,
embed,
object {
  width: 100%;
}

[type="range"],
meter,
progress {
  display: block;
  width: 100%;
  height: 2.25rem;
}

[type="color"] {
  height: 2.25rem;
  vertical-align: top;
}

td,
th,
details,
button,
[type="button"],
[type="reset"],
[type="submit"] {
  padding: 0.5rem;
}

input:not([type]),
[type="email"],
[type="hidden"],
[type="number"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="url"] {
  display: block;
  width: 100%;
  height: 2.25rem;
  padding: 0.5rem;
}

[type="file"] {
  display: block;
  width: 100%;
  height: 2.25rem;

  /* Works in Chrome (but poorly), doesn't work in Firefox */
  padding-top: 0.35rem;
}

[type="date"],
[type="datetime-local"],
[type="time"],
[type="month"],
[type="week"] {
  display: block;
  width: 100%;
  height: 2.25rem;

  /* 0.4rem is a hack for mobile Chrome */
  padding: 0.4rem 0.5rem;
}

output {
  display: block;
  width: 100%;
}

textarea {
  display: block;
  width: 100%;
  min-height: 8em;
  padding: 0.5rem;
}

select {
  display: block;
  width: 100%;
  min-height: 2.25rem;

  /* "padding: 0.5rem;" messes up the height of selects */
  padding: 0.45rem 0.5rem;
}

summary {
  padding: 0.5rem;
  margin: -0.5rem;
}

[type="image"] {
  vertical-align: bottom;
}

fieldset {
  padding: 0.75rem;
}

label > [type="color"] {
  margin-left: 0.25rem;
}

label {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25rem;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}

legend + label {
  margin-top: 0;
}

[type="checkbox"] + label,
[type="radio"] + label {
  display: inline-flex;
  width: unset;
  vertical-align: text-bottom;
}

blockquote > p:first-child,
fieldset > label:first-child {
  margin-top: 0;
}

label > [type="checkbox"],
label > [type="radio"] {
  min-height: 1rem;
}

blockquote {
  padding: 1rem 2rem;
  margin-right: 0;
  margin-left: 0;
}

blockquote > p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 1rem;
}

figure > figcaption,
body > header {
  text-align: center;
}

body > footer {
  padding-bottom: 1rem;
  text-align: center;
}

figure {
  margin-right: 0;
  margin-left: 0;
  text-align: center;
}

figure > * {
  text-align: initial;
}

dt,
[aria-current="page"],
[aria-current="step"],
[aria-current="location"],
[aria-current="date"],
[aria-current="time"],
[aria-current="true"] {
  font-weight: bold;
}

dd {
  margin-bottom: 1rem;
}

li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

picture {
  position: relative;
  left: calc(-50vw + 50%);
  display: block;
  width: 100vw;
  max-height: 100vh;
  text-align: center;
}

/* highlight.js hack */
.hljs {
  /* stylelint-disable-next-line declaration-no-important -- highlight.js hack */
  padding: 1rem !important;
  margin: -1rem;
}

@media (width <= 50rem) {
  table {
    width: calc(100% + 1rem);
    margin-left: -0.5rem;
  }

  video {
    width: calc(100% + 1rem);
    max-height: 100vh;
    margin-left: -0.5rem;
  }

  pre {
    width: calc(100% + 1rem);

    /* stylelint-disable declaration-no-important -- Prism hack */
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
    margin-left: -0.5rem !important;
    /* stylelint-enable */
  }

  /* highlight.js hack */
  .hljs {
    /* stylelint-disable declaration-no-important -- highlight.js hack */
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
    /* stylelint-enable */

    margin: -1rem -0.5rem;
  }
}
@media (hover: hover) {
  body {
    overflow-x: hidden;
  }

  nav {
    display: flex;
    background-color: var(--background-color);
    border-bottom: var(--border-width) solid var(--border-color);
  }

  body > nav {
    position: relative;
    left: calc(-50vw + 50%);
    width: 100vw;
  }

  nav ul {
    padding-left: 0;
  }

  body > nav > ul {
    width: calc(var(--max-body-width) + 2rem);
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    margin: 0.5rem auto;
  }

  nav ul li {
    position: relative;
    display: inline-block;
  }

  nav > ul > li {
    padding: 0.5rem;
    margin: 0;
  }

  nav ul li a {
    text-decoration: none;
    white-space: nowrap;
  }

  nav ul li ul {
    position: absolute;
    left: -9999px;
    z-index: 1;
    min-width: calc(100% + var(--border-width) * 2);
    padding: 0.25rem 0.5rem;
    margin-top: 0.5rem;
    margin-left: calc(-0.5rem - var(--border-width));
    background-color: var(--background-color);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
  }

  nav ul li ul li {
    width: 100%;
  }

  /* stylelint-disable-next-line
  selector-max-compound-selectors,
  selector-max-type
  -- this HAS to be this complex */
  nav ul li ul li ul {
    min-width: calc(100% + 1rem + var(--border-width) * 2);
    margin-top: 0.75rem;
  }

  nav :focus ~ ul,
  nav :focus ~ ul ul,
  nav ul ul:focus-within,
  nav ul li:hover ul {
    left: initial;
  }

  nav li > *:not(ul, a, :only-child) {
    cursor: default;
  }

  nav li > *:not(ul, :only-child)::after {
    content: " ▾";
  }
}

@media not all and (hover: hover) {
  nav {
    position: relative;
    left: calc(-50vw + 50%);
    width: 100vw;
    padding-top: 2rem;
    background-image: url('data:image/svg+xml;utf8,<svg height="32px" id="Layer_1" style="enable-background:new 0 0 32 32;" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="%23363636" d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2  s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2  S29.104,22,28,22z"/></svg>');
    background-repeat: no-repeat;
    background-position: top;
    border-bottom: var(--border-width) solid var(--border-color);
  }

  nav > * {
    display: none;
  }

  nav:hover > ul {
    display: inherit;
  }

  nav:hover > *:not(ul) {
    display: unset;
  }

  @media (prefers-color-scheme: dark) {
    nav {
      background-image: url('data:image/svg+xml;utf8,<svg height="32px" id="Layer_1" style="enable-background:new 0 0 32 32;" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="%23fff" d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2  s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2  S29.104,22,28,22z"/></svg>');
    }

    .holiday-css-light nav {
      background-image: url('data:image/svg+xml;utf8,<svg height="32px" id="Layer_1" style="enable-background:new 0 0 32 32;" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="%23363636" d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2  s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2  S29.104,22,28,22z"/></svg>');
    }
  }

  .holiday-css-dark nav {
    background-image: url('data:image/svg+xml;utf8,<svg height="32px" id="Layer_1" style="enable-background:new 0 0 32 32;" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="%23fff" d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2  s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2  S29.104,22,28,22z"/></svg>');
  }
}
:root {
  color-scheme: light dark;

  /* Sizes */
  --border-radius: 0.25rem;
  --border-width: 1px;

  /* Public light mode colors */
  --light-border-color: #dbdbdb;
  --light-border-hover-color: #b5b5b5;
  --light-background-color: #fff;
  --light-highlighted-background-color: #f5f5f5;
  --light-text-color: #363636;
  --light-danger-color: #f14668;
  --light-danger-text-color: #fff;
  --light-danger-hover-color: #f03a5f;
  --light-success-color: #48c774;
  --light-success-text-color: #fff;
  --light-success-hover-color: #3ec46d;
  --light-danger-text-background-color: #fde0e6;
  --light-success-text-background-color: #effaf3;
  --light-code-text-color: #f14668;
  --light-code-background-color: #f5f5f5;
  --light-link-color: #3273dc;
  --light-link-visited-color: #b86bff;
  --light-link-hover-color: #363636;
  --light-link-active-color: #363636;

  /* Public dark mode colors */
  --dark-border-color: #5f6267;
  --dark-border-hover-color: #bcbebd;
  --dark-background-color: #202124;
  --dark-highlighted-background-color: #292b2e;
  --dark-text-color: #fff;
  --dark-danger-color: #770018;
  --dark-danger-text-color: #fff;
  --dark-danger-hover-color: #6b0015;
  --dark-success-color: #006624;
  --dark-success-text-color: #fff;
  --dark-success-hover-color: #006122;
  --dark-danger-text-background-color: #770018;
  --dark-success-text-background-color: #006624;
  --dark-code-text-color: #f1a0b0;
  --dark-code-background-color: #292b2e;
  --dark-link-color: #90b3ed;
  --dark-link-visited-color: #cb93ff;
  --dark-link-hover-color: #fff;
  --dark-link-active-color: #fff;

  /* Internal color variables */
  --border-color: var(--light-border-color);
  --border-hover-color: var(--light-border-hover-color);
  --background-color: var(--light-background-color);
  --highlighted-background-color: var(--light-highlighted-background-color);
  --text-color: var(--light-text-color);
  --danger-color: var(--light-danger-color);
  --danger-text-color: var(--light-danger-text-color);
  --danger-hover-color: var(--light-danger-hover-color);
  --success-color: var(--light-success-color);
  --success-text-color: var(--light-success-text-color);
  --success-hover-color: var(--light-success-hover-color);
  --danger-text-background-color: var(--light-danger-text-background-color);
  --success-text-background-color: var(--light-success-text-background-color);
  --code-text-color: var(--light-code-text-color);
  --code-background-color: var(--light-code-background-color);
  --link-color: var(--light-link-color);
  --link-visited-color: var(--light-link-visited-color);
  --link-hover-color: var(--light-link-hover-color);
  --link-active-color: var(--light-link-active-color);
}

@media (prefers-color-scheme: dark) {
  :root {
    --border-color: var(--dark-border-color);
    --border-hover-color: var(--dark-border-hover-color);
    --background-color: var(--dark-background-color);
    --highlighted-background-color: var(--dark-highlighted-background-color);
    --text-color: var(--dark-text-color);
    --danger-color: var(--dark-danger-color);
    --danger-text-color: var(--dark-danger-text-color);
    --danger-hover-color: var(--dark-danger-hover-color);
    --success-color: var(--dark-success-color);
    --success-text-color: var(--dark-success-text-color);
    --success-hover-color: var(--dark-success-hover-color);
    --danger-text-background-color: var(--dark-danger-text-background-color);
    --success-text-background-color: var(--dark-success-text-background-color);
    --code-text-color: var(--dark-code-text-color);
    --code-background-color: var(--dark-code-background-color);
    --link-color: var(--dark-link-color);
    --link-visited-color: var(--dark-link-visited-color);
    --link-hover-color: var(--dark-link-hover-color);
    --link-active-color: var(--dark-link-active-color);
  }
}

.holiday-css-light {
  color-scheme: light;

  /* Same colors as for `:root` */
  --border-color: var(--light-border-color);
  --border-hover-color: var(--light-border-hover-color);
  --background-color: var(--light-background-color);
  --highlighted-background-color: var(--light-highlighted-background-color);
  --text-color: var(--light-text-color);
  --danger-color: var(--light-danger-color);
  --danger-text-color: var(--light-danger-text-color);
  --danger-hover-color: var(--light-danger-hover-color);
  --success-color: var(--light-success-color);
  --success-text-color: var(--light-success-text-color);
  --success-hover-color: var(--light-success-hover-color);
  --danger-text-background-color: var(--light-danger-text-background-color);
  --success-text-background-color: var(--light-success-text-background-color);
  --code-text-color: var(--light-code-text-color);
  --code-background-color: var(--light-code-background-color);
  --link-color: var(--light-link-color);
  --link-visited-color: var(--light-link-visited-color);
  --link-hover-color: var(--light-link-hover-color);
  --link-active-color: var(--light-link-active-color);
}

.holiday-css-dark {
  color-scheme: dark;

  /* Same colors as for `@media (prefers-color-scheme: dark)` */
  --border-color: var(--dark-border-color);
  --border-hover-color: var(--dark-border-hover-color);
  --background-color: var(--dark-background-color);
  --highlighted-background-color: var(--dark-highlighted-background-color);
  --text-color: var(--dark-text-color);
  --danger-color: var(--dark-danger-color);
  --danger-text-color: var(--dark-danger-text-color);
  --danger-hover-color: var(--dark-danger-hover-color);
  --success-color: var(--dark-success-color);
  --success-text-color: var(--dark-success-text-color);
  --success-hover-color: var(--dark-success-hover-color);
  --danger-text-background-color: var(--dark-danger-text-background-color);
  --success-text-background-color: var(--dark-success-text-background-color);
  --code-text-color: var(--dark-code-text-color);
  --code-background-color: var(--dark-code-background-color);
  --link-color: var(--dark-link-color);
  --link-visited-color: var(--dark-link-visited-color);
  --link-hover-color: var(--dark-link-hover-color);
  --link-active-color: var(--dark-link-active-color);
}

input {
  border-radius: var(--border-radius);
}

body {
  color: var(--text-color);
  background-color: var(--background-color);
}

pre {
  background-color: var(--code-background-color);

  /* stylelint-disable-next-line declaration-no-important -- Prism Dracula theme hack */
  border-radius: 0 !important;
}

code {
  color: var(--code-text-color);
  background-color: var(--code-background-color);
}

pre code {
  background-color: inherit;
}

a,
a code {
  color: var(--link-color);
  text-decoration: none;
}

a:visited,
a:visited code {
  color: var(--link-visited-color);
}

/* stylelint-disable-next-line selector-no-qualifying-type -- `aria-current` can
be used with any element, so limit the scope to `a` only */
a:hover,
a:hover code,
a[aria-current="page"],
a[aria-current="page"] code {
  color: var(--link-hover-color);
}

a:active,
a:active code {
  color: var(--link-active-color);
}

button,
dialog,
textarea,
select {
  color: var(--text-color);
  background-color: var(--background-color);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
}

fieldset,
details {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
}

summary {
  margin: calc(-0.5rem - var(--border-width));
  border: var(--border-width) solid transparent;
  border-radius: var(--border-radius);
}

input:not([type]),
[type="date"],
[type="datetime-local"],
[type="email"],
[type="hidden"],
[type="month"],
[type="number"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="time"],
[type="url"],
[type="week"],
[type="button"],
[type="color"] {
  color: var(--text-color);
  background-color: var(--background-color);
  border: var(--border-width) solid var(--border-color);
}

[type="reset"] {
  color: var(--danger-text-color);
  background-color: var(--danger-color);
  border: var(--border-width) solid transparent;
}

[type="submit"],
button:not([type]) {
  color: var(--success-text-color);
  background-color: var(--success-color);
  border: var(--border-width) solid transparent;
}

input:not([type]):disabled,
[type="date"]:disabled,
[type="datetime-local"]:disabled,
[type="email"]:disabled,
[type="hidden"]:disabled,
[type="month"]:disabled,
[type="number"]:disabled,
[type="password"]:disabled,
[type="search"]:disabled,
[type="tel"]:disabled,
[type="text"]:disabled,
[type="time"]:disabled,
[type="url"]:disabled,
[type="week"]:disabled,
textarea:disabled,
select:disabled {
  background-color: var(--highlighted-background-color);
}

select:enabled,
[type="date"]:enabled,
[type="datetime-local"]:enabled,
[type="time"]:enabled,
[type="month"]:enabled,
[type="week"]:enabled {
  background-color: var(--background-color);
}

button:focus,
[type="button"]:focus,
[type="color"]:focus,
[type="reset"]:focus,
[type="submit"]:focus,
button:not([type]):focus,
input:not([type]):focus,
[type="date"]:focus,
[type="datetime-local"]:focus,
[type="email"]:focus,
[type="hidden"]:focus,
[type="image"]:focus,
[type="month"]:focus,
[type="number"]:focus,
[type="password"]:focus,
[type="search"]:focus,
[type="tel"]:focus,
[type="text"]:focus,
[type="time"]:focus,
[type="url"]:focus,
[type="week"]:focus,
textarea:focus,
select:focus,
summary:focus {
  border-color: var(--border-hover-color);
  outline: none;
  box-shadow: 0 0 0.2rem 0.01rem var(--border-hover-color);
}

[type="image"]:enabled:hover {
  filter: brightness(95%);
}

button:enabled:hover,
[type="button"]:enabled:hover,
[type="color"]:enabled:hover,
input:not([type]):enabled:hover,
[type="date"]:enabled:hover,
[type="datetime-local"]:enabled:hover,
[type="email"]:enabled:hover,
[type="hidden"]:enabled:hover,
[type="month"]:enabled:hover,
[type="number"]:enabled:hover,
[type="password"]:enabled:hover,
[type="range"]:enabled:hover,
[type="search"]:enabled:hover,
[type="tel"]:enabled:hover,
[type="text"]:enabled:hover,
[type="time"]:enabled:hover,
[type="url"]:enabled:hover,
[type="week"]:enabled:hover,
textarea:enabled:hover,
select:enabled:hover,
summary:hover {
  border-color: var(--border-hover-color);
}

[type="reset"]:enabled:hover {
  background-color: var(--danger-hover-color);
  border-color: transparent;
}

[type="submit"]:enabled:hover,
button:not([type]):enabled:hover {
  background-color: var(--success-hover-color);
  border-color: transparent;
}

table {
  border-collapse: collapse;
}

caption {
  font-weight: bold;
}

thead {
  border-bottom: calc(var(--border-width) * 2) solid var(--border-color);
}

tfoot {
  border-top: calc(var(--border-width) * 2) solid var(--border-color);
}

thead > tr:not(:first-child),
tbody > tr:not(:first-child),
tfoot > tr:not(:first-child) {
  border-top: var(--border-width) solid var(--border-color);
}

thead > tr:nth-child(even),
tbody > tr:nth-child(even),
tfoot > tr:nth-child(even) {
  background-color: var(--highlighted-background-color);
}

kbd {
  background-color: var(--highlighted-background-color);
  border: var(--border-width) solid var(--border-hover-color);
  border-radius: var(--border-radius);
  box-shadow: inset 0 0 0 0.2rem var(--background-color);
}

kbd kbd {
  border: unset;
  border-radius: 0;
  box-shadow: inset 0 -0.2rem 0 0 var(--background-color),
    inset 0 0.2rem 0 0 var(--background-color);
}

[open] summary {
  margin-bottom: 0.5rem;
}

del {
  background-color: var(--danger-text-background-color);
}

ins {
  text-decoration: none;
  background-color: var(--success-text-background-color);
}

blockquote {
  background-color: var(--highlighted-background-color);
  border-left: 0.5rem solid var(--border-color);
}

body > footer {
  padding-top: 1rem;
  border-top: var(--border-width) solid var(--border-color);
}

hr {
  border-color: var(--border-color);
  border-style: solid;
  border-width: var(--border-width) 0 0;
}

:disabled,
[aria-disabled="true"],
[type="checkbox"][id]:disabled + [for],
[type="radio"][id]:disabled + [for] {
  opacity: 0.5;
}

:invalid:not(form) {
  border-color: var(--danger-color);
  border-style: solid;
  border-width: var(--border-width);
}

:disabled :disabled,
[aria-disabled="true"] [aria-disabled="true"] {
  opacity: unset;
}

/* Firefox hack */
:invalid:not([type="checkbox"], :focus) {
  box-shadow: none;
}

:invalid:not([type="checkbox"]):focus {
  border-color: var(--danger-hover-color);
  outline: none;
  box-shadow: 0 0 0.2rem 0.05rem var(--danger-hover-color);
}

:invalid:not(form):enabled:hover {
  border-color: var(--danger-hover-color);
}
