/*
 * Copyright (c) 2019 Jerome Kasper <neon.king.fr@gmail.com>
 * Copyright (c) 2019, 2020 Tracey Emery <tracey@traceyemery.net>
 * Copyright (c) 2025 Stefan Sperling <stsp@chirpysoft.be>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

:root {
	--color: #000000;
	--background-color: #ffffff;
  --ruler-color: #444444;
  --link-color: #444444;
	--link-hover: lightblue;
  --header-link-color: #ffffff;
        --header-link-hover: #F0E68C;
  --site-path: #243647;
  --index-header: #F0E68C;
  --index-text: #000000;
}
@media (prefers-color-scheme: dark) {
  :root {
	  --color: #eee;
	  --background-color: #282A36;
	  --link-color: #8BE9FD;
	  --link-hover: #FFFFA5;
     --header-link-color: #DB93F9;
           --header-link-hover: #ffffff;
    --site-path: #243647;
    --index-header: #DB93F9;
    --index-text: #222;
  }
}

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

a {
	color: var(--color);
	text-decoration: underline;
}
a:hover {
	color: var(--link-color);
	text-decoration: none;
}
body {
	background-color: var(--background-color);
	color: var(--color);
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	font-size: 16px;
}

pre {
	font-family: monospace;
	margin: 0;
	overflow: auto;
}

hr {
	margin: 0;
	height: 0;
	border: 0px;
	border-top: 1px dotted var(--ruler-color);
}
#header {
	background-image: linear-gradient(to right, White, LightSlateGray);
}

footer a,
header a {
	color: var(--header-link-color);
	text-decoration: none;
}
footer a:hover,
header a:hover {
	color: var(--header-link-hover);
	text-decoration: underline;
}

nav, #site_path {
	overflow: auto;
	width: 100%;
  color: var(--background-color);
	background-color: var(--site-path);
}
#site_link {
	padding-left: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	color: var(--background-color); 
	overflow: hidden;
}
#site_link a {
	color: var(--background-color); 
	text-decoration: none;
}
#got_link {
	padding-bottom: 10px;
	padding-top: 10px;
}

#site_owner_wrapper {
	width: 100%;
	background-color: LightSlateGray;
	color: #ffffff;
}
#site_owner {
	padding-left: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	margin: 0;
}

header.subtitle {
	background-color: LightSlateGray;
}
header.subtitle h2 {
	margin: 0;
	padding: 5px 10px;
	font-size: 1rem;
	font-weight: normal;
	color: var(--background-color);
}

h3,
#index_header {
	background-color: var(--index-header);
  color: var(--index-text);
  width: 100%;
}

.index_wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

h3,
.index_hosting, .index_fiscalhost, .index_opencollective {
	display: inline-block;
	padding: 10px;
	overflow: hidden;
	vertical-align: middle;
}

a {
	color: var(--link-color);
	text-decoration: underline;
}
a:hover {
	color: var(--link-hover);
	text-decoration: none;
}

header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

header nav li a {
  padding: 0.5em 1em;
  display: block;
}

header nav ul li:last-child {
  margin-left: auto;
}

nav a {
  text-decoration: none;
}

footer nav {
  text-align: center;
}

main {
  max-width: 80ch;
  margin: auto;
}

main h1, main h2 {
  padding-left: 10px;
  padding-right: 10px;
}

main h1 {
  max-width: 40ch;
}

main h2 {
  max-width: 45ch;
}

main p {
  padding-left: 10px;
  padding-right: 10px;
}

nav ul {
  padding: 0;
}

.table-container {
  border: 1px solid;
  margin-left: 10px;
  margin-right: 10px;
  overflow-x: auto;
}
table {
  border: 0;
  border-collapse: collapse;
  line-height: 1.7;
  min-width: 600px;
  padding: 0.1rem;
  width: 100%;
}
table tr {
  border-bottom: 1px solid;
}
table tbody tr:last-of-type {
  border: 0;
}
table th, table td {
  padding: 4px 8px;
  text-align: left;
}
table th:not(:first-of-type),
table td:not(:first-of-type) {
  border-left: 1px solid;
  text-align: right;
}

a.button {
  border: 1px solid;
  color: var(--index-text);
  background-color: var(--index-header);
  text-decoration: none;
}
a.button:hover {
	color: var(--index-text);
	text-decoration: underline;
}

main a.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem;
}

ul.list-spacing li {
  margin-bottom: 10px;
}

@media (max-width: 550px) {
  header nav ul {
    flex-wrap: wrap;
  }
  header nav ul li:first-of-type {
    width: 100%;
  }
  header nav ul li:has(a.button) {
    position: absolute;
    right: 0;
  }
	.index_wrapper {
		display: grid;
		grid-template-columns: 1fr;
	}
}
