/* CSS style for SliTaz Doc - 2026
 *
 * Shared by every manual in /usr/share/doc (tazpkg, tazlito, tazinst,
 * spk, cookutils, slitaz...): keep the selectors they rely on.
 * Plain CSS, no variables: the SliTaz browser (WebKitGTK 2.4) must
 * render it. Colors: slitaz.org 2026 (website/slitaz-2026.css) for the
 * light theme; its dark mode plus the SliTaz-Dark GTK theme for the
 * dark one (prefers-color-scheme, ignored by old browsers).
 */

body {
	font: 100% system-ui, -apple-system, "DejaVu Sans", Ubuntu, "Droid Sans",
		"Liberation Sans", FreeSans, sans-serif;
	line-height: 1.6;
	margin: 0;
	-moz-hyphens: auto; -webkit-hyphens: auto; hyphens: auto;
	background-color: #fff; color: #34495e;
}

h1 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
	padding: 0.3em 0;
}
h2, body section > header {
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 2rem 0 0.75rem 0;
	padding-bottom: 0.3rem;
	border-bottom: 2px solid;
}
h3, article > header {
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 1.75rem 0 0.5rem 0;
}
h4 {
	font-size: 1rem;
	font-weight: 600;
	margin: 1.25rem 0 0.4rem 0;
}
p {
	margin: 0.5em 0 0.8em 0;
}
ul, ol {
	margin: 0.5em 0 1em 0;
	padding-left: 1.6em;
}
li {
	margin: 0.2em 0;
}

a, a:link {
	text-decoration: none;
}
a:hover, a:focus {
	text-decoration: underline;
}

img {
	border: none;
	vertical-align: middle;
	max-width: 100%;
}

pre {
	padding: 0.75em 1em;
	margin: 0.5em 0 1em 0;
	border: 1px solid; border-radius: 4px;
	overflow-x: auto;
	text-align: left;
	-moz-hyphens: none; -webkit-hyphens: none; hyphens: none;
}

pre, code, tt {
	font-family: "DejaVu Sans Mono", "Liberation Mono", monospace;
	font-size: 0.875rem;
	line-height: 1.45;
}
code {
	padding: 0.1em 0.35em;
	border-radius: 3px;
	-moz-hyphens: none; -webkit-hyphens: none; hyphens: none;
}
pre code {
	padding: 0;
	background: none;
}

body > header, #header {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-align-items: center;
	align-items: center;
	padding: 0.6rem 2rem;
	border-bottom: 3px solid;
}

#content, body > section {
	margin: 2rem auto 3rem auto;
	padding: 0 1.5rem;
	max-width: 52rem;
	text-align: left;
}

body > footer, #footer {
	text-align: center;
	padding: 1.2em;
	border-top: 1px solid;
	font-size: 0.875rem;
}

/* Languages */

#lang {
	margin-left: auto;
	padding: 0.3em 0 0.3em 1rem;
	font-size: small;
	white-space: nowrap;
}

#lang a, #lang strong {
	padding: 0 0.3ex;
}

table {
	border-collapse: collapse;
	margin: 0.5em 0 1em 0;
	max-width: 100%;
}
td, th {
	vertical-align: top;
	text-align: left;
	padding: 0.35em 0.7em;
	border: 1px solid;
}

.year:after {
	content: "2026";
}

fieldset {
	border: 1px solid;
	border-radius: 0.3rem;
}

h1, h2, body section > header, h3, article > header {
	text-align: left;
}

/* colors: light */
h1 {
	color: #f0f2f4;
}
h2, body section > header, h3, article > header, h4, th {
	color: #2c3e50;
}
h2, body section > header, body > header, #header {
	border-color: #e74c3c;
}
a:link, a:visited {
	color: #2980b9;
}
a:hover, a:focus {
	color: #c0392b;
}
pre, code, th, x-details {
	background-color: #f0f3f5;
}
pre, td, th, fieldset {
	border-color: #b8c4ca;
}
pre {
	color: #34495e;
}
code, tt {
	color: #2c3e50;
}
pre tt {
	/* shell prompt */
	color: #c0392b;
	font-weight: bold;
}
pre em {
	color: #2980b9;
}
body > header, #header {
	background-color: #2c3e50;
}
body > header a, #header a, #lang strong {
	color: #f0f2f4;
}
#lang a {
	color: #b0bec5;
}
body > header a:hover, #header a:hover, #lang a:hover {
	color: #ff6b61;
}
#footer, body > footer {
	background-color: #f0f3f5;
	border-color: #b8c4ca;
	color: #34495e;
}


x-details {
	display: inline;
	outline: 1px solid #b8c4ca;
	outline-offset: 0;
}
x-details > label {
	cursor: pointer;
	min-width: 7mm;
}
x-details > label:before, details summary {
	color: #2980b9;
}
x-details input {
	display: none;
}
x-details input + label:before {
	content: '+';
}
x-details input:checked + label:before {
	content: '−';
}
x-details label, x-details span {
	padding: 0.2rem;
}
x-details > input + label > span {
	display: none;
}
x-details > input:checked + label > span {
	display: inline;
}


/* Link target and section title in a corner (light browsers have no
   status bar). */
a:hover::before, section:hover::before {
	display: block;
	position: fixed;
	font: 0.8rem system-ui, "DejaVu Sans", sans-serif;
	background: #f0f3f5;
	color: #34495e;
	border: 1px solid #b8c4ca;
	border-radius: 4px;
	padding: 4px;
	margin: 4px;
}
a:hover::before {
	left: 0;
	bottom: 0;
	content: attr(href);
}
section:hover::before {
	right: 0;
	top: 0;
	content: attr(data-title);
}

section:hover {
	outline: 1px solid #dde3e8;
	outline-offset: 1ex;
}
article:hover {
	outline: 1px solid #dde3e8;
	outline-offset: 0.5ex;
}


:target {
	-webkit-animation: highlight 1s ease;
	animation: highlight 1s ease;
}
@-webkit-keyframes highlight {
	  0% { background-color: #fcaf3e; }
	100% { background-color: transparent; }
}
@keyframes highlight {
	  0% { background-color: #fcaf3e; }
	100% { background-color: transparent; }
}

q:lang(de) {
	quotes: "\201E" "\201C";
}
q:lang(en) {
	quotes: "\201C" "\201D";
}
q:lang(fr), q:lang(ru) {
	quotes: "\00AB" "\00BB";
}


/* colors: dark */
@media (prefers-color-scheme: dark) {
	body {
		background-color: #141414; color: #b8b8b8;
	}
	h2, body section > header, h3, article > header, h4, th {
		color: #f0f0f0;
	}
	a:link, a:visited, pre em, x-details > label:before, details summary {
		color: #7eb8e8;	/* SliTaz-Dark link_color */
	}
	a:hover, a:focus {
		color: #ff6b61;
	}
	pre, code, th, x-details, a:hover::before, section:hover::before {
		background-color: #191d24;
	}
	pre, td, th, fieldset, x-details, a:hover::before, section:hover::before {
		border-color: #2e323a;	/* SliTaz-Dark borders */
		outline-color: #2e323a;
	}
	pre, a:hover::before, section:hover::before {
		color: #d0d4da;
	}
	code, tt {
		color: #e6e8ed;
	}
	pre tt {
		color: #fcaf3e;	/* SliTaz-Dark selected_bg_color */
	}
	body > header, #header {
		background-color: #1c1e22;	/* SliTaz-Dark bg_color */
	}
	h1, body > header a, #header a, #lang strong {
		color: #e6e8ed;
	}
	#lang a {
		color: #9aa0ab;
	}
	#footer, body > footer {
		background-color: #1c1e22;
		border-color: #2e323a;
		color: #9aa0ab;
	}
	section:hover, article:hover {
		outline-color: #2a2a2a;
	}
}

@media (max-width: 600px) {
	body > header, #header {
		padding: 0.5rem 1rem;
	}
	#lang {
		margin-left: 0;
		padding-left: 0;
	}
	#content, body > section {
		margin-top: 1.25rem;
		padding: 0 1rem;
	}
	h2, body section > header {
		font-size: 1.35rem;
	}
	pre {
		padding: 0.6em 0.75em;
	}
}

@media print {
	body, body > header, #header, pre, code {
		background: none;
		color: #000;
	}
	h1, body > header a {
		color: #000;
	}
	pre {
		white-space: pre-wrap;
	}
}
