/*------------------------------------*\
    Fonts
\*------------------------------------*/


@font-face {
  font-display: swap;
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url("/.index/fonts/roboto-v49-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  src: url("/.index/fonts/roboto-v49-latin-500.woff2") format("woff2")
}

@font-face {
  font-display: swap;
  font-family: Roboto;
  font-style: normal;
  font-weight: 700;
  src: url("/.index/fonts/roboto-v49-latin-700.woff2") format("woff2");
}

/*------------------------------------*\
    General
\*------------------------------------*/

* {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  color: #000;
  font-size: 0.875em;
  font-family: Roboto, system-ui, sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.5em;
}

body {
  display: inline-block;
  min-width: 100%;
  padding: 0;
  -webkit-backface-visibility: hidden;
}

p {
  margin: 0.25em 0;
  max-width: 80ch;
}

code {
  font-family: consolas, monospace;
}

a,
a:hover {
  color: #0066cc;
  text-decoration: underline;
  text-decoration-color: #3388e6;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

#content .readme a:hover,
#footer a:hover {
  background: #0066cc14;
}

/*------------------------------------*\
    Header
\*------------------------------------*/

#header {
  background-color: #FFB11C;
  background-size: cover;
  background-position: center 10%;
  background-repeat: repeat;
  background-image: url("/.index/img/poly_200px.webp");
  padding: 0 20px;
  color: #fff;
  font-size: 1.3em;
  font-weight: 500;
  line-height: 2.2em;
}

#header a,
#header a:hover {
  color: #fff;
  text-decoration: none;
}

#header.logo {
  line-height: 1em;
  padding: 10px 0;
}

#header.logo img {
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
}

body.theme-gold #header {
  background-color: #ffb11c;
}

body.theme-red #header {
  background-color: #bf2528;
  padding-left: 20px;
}

body.theme-green #header {
  background-color: #4db05b;
}

body.theme-blue #header {
  background-color: #2892d7;
}

/*------------------------------------*\
    Content wrapper
\*------------------------------------*/

#content {
  padding: 0 20px;
}

/*------------------------------------*\
    Error message
\*------------------------------------*/

#content.error {
  margin-bottom: 2.5em;
}

#content.error h1 {
  margin: 2em 0 1em 0;
  font-size: 1.5em;
}

#content.error h2 {
  margin: 1em 0 0.25em 0;
  font-size: 1em;
  font-weight: 700;
  color: #bf2528;
}

#content.error .return {
  margin: 1em 0;
}

/*------------------------------------*\
    Readme block
\*------------------------------------*/

.readme {
  margin: 40px 0;
}

.readme pre {
  font-family: Roboto, system-ui, sans-serif;
  white-space: pre-wrap;
  max-width: 100ch;
}

/*------------------------------------*\
    Table (directory listing)
\*------------------------------------*/

table {
  border-collapse: collapse;
  margin: 40px 0;
  padding: 20px;
  text-align: left;
}

table a {
  color: #000;
  text-decoration: none;
}

tr {
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
  text-align: left;
}

tr:not(.indexhead):hover {
  color: #000;
  background-color: #f6f6f6;
}

tr:not(.indexhead):hover {
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
              color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

tr:has(.indexcoldesc span.highlight) {
  background-color: #FEE455;
}

tr:has(.indexcoldesc span.highlight):hover {
  background-color: #FFDB1A;
}

th, td {
  padding: 5px 20px;
}

.indexcolicon {
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
  width: 16px;
  font-size: 0;
}

.indexcolicon img {
  vertical-align: middle;
}

.indexcolname {
  padding-left: 5px;
  min-width: 30ch;
}

.indexcollastmod {
  min-width: 22ch;
}

.indexcolsize {
  min-width: 10ch;
}

/*------------------------------------*\
    Footer
\*------------------------------------*/

#footer {
  margin: 20px;
  color: #6e6e6e;
  font-size: 0.875em;
}
