/* theme.js sets data-theme, which overrides simple.css's system-setting themes with its own values. */
:root[data-theme=light] { color-scheme: light; --bg: #fff; --accent-bg: #f5f7ff; --text: #212121; --text-light: #585858; --accent: #0d47a1; --accent-hover: #1266e2; --code: #d81b60; --preformatted: #444; --disabled: #efefef; }
:root[data-theme=dark] { color-scheme: dark; --bg: #212121; --accent-bg: #2b2b2b; --text: #dcdcdc; --text-light: #ababab; --accent: #7fb0f0; --accent-hover: #a3c7f5; --code: #f06292; --preformatted: #ccc; --disabled: #111; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --accent: #7fb0f0; --accent-hover: #a3c7f5; } }
.preview { margin: 1rem 0; }
.preview .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .6rem; padding: 0; list-style: none; font-size: .85rem; }
.preview .chips li { padding: .15rem .55rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text-light); }
.preview .chips strong { color: var(--accent); }
.preview table { width: 100%; margin: 0; font-size: .85rem; }
.preview th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.preview th, .preview td { padding: .35rem .5rem; }
.preview td { vertical-align: top; }
.preview td span { display: block; }
.preview td small { display: block; color: var(--text-light); }
.preview .more { text-align: center; color: var(--text-light); }
.preview figcaption { margin-top: .4rem; }
section > ul li + li { margin-top: 1.25rem; }
section li pre { margin: .6rem 0 0; padding: .8rem 1rem; font-size: 1rem; white-space: pre-wrap; }
.reports { padding: 0; list-style: none; }
.reports li + li { margin-top: 1rem; }
.reports time { display: block; color: var(--text-light); font-size: .85rem; }
main img { display: block; margin: 1.5rem auto; }
body > header { position: relative; }
/* In the flow above the title, so it can never overlap it; beside it only where there is room. */
header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; padding: 0; font-size: .9rem; }
@media (min-width: 1200px) { header nav { position: absolute; top: .5rem; right: 1rem; font-size: 1rem; } }
header nav a, header nav a:visited { margin: 0; padding: 0; border: none; text-decoration: underline; color: var(--text-light); }
header nav [aria-current] { color: var(--text); }
/* "·" between pages and between the settings, "|" between the two groups. */
header nav > * + *::before { content: "·"; display: inline-block; margin: 0 .5rem; color: var(--text-light); }
header nav > .locale::before { content: "|"; margin: 0 .75rem; }
header nav .theme-toggle, header nav .theme-toggle:enabled:hover { margin: 0; padding: 0; border: none; background: none; color: var(--text-light); font: inherit; cursor: pointer; }
header nav .theme-toggle i { display: inline-block; width: 1em; height: 1em; vertical-align: -.1em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E") center / contain no-repeat; }
:root[data-theme=dark] header nav .theme-toggle i { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2m-7.07-17.07 1.41 1.41m11.32 11.32 1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2m-7.07-17.07 1.41 1.41m11.32 11.32 1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E") center / contain no-repeat; }
.article { grid-template-columns: 1fr min(50rem, 90%) 1fr; font-size: 1.15rem; }
.article > header { padding: 2rem .5rem 1.5rem; }
.article > header h1 { font-size: 2.2rem; margin: .5rem auto; }
.article > header p { margin: .5rem auto; }
a[target="_blank"]::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .2em; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat; }
