/* Shared layout — OS themes: system6 | amiga | 4dos | linux095 | os2 | win95 | osx | osx-dark */
@font-face {
  font-family: "Perfect DOS VGA 437";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Perfect-DOS-VGA-437-Win.woff2") format("woff2"),
       url("fonts/Perfect-DOS-VGA-437-Win.woff") format("woff");
}

@font-face {
  font-family: "Topaz";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Topaz-a500.woff2") format("woff2");
}

@font-face {
  font-family: "Chicago FLF";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ChicagoFLF.woff2") format("woff2"),
       url("fonts/ChicagoFLF.woff") format("woff");
}

@font-face {
  font-family: "TeX Gyre Heros";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /*src: url("fonts/texgyreheros-regular.woff2") format("woff2");*/
  src: url("fonts/HelveticaNeueRoman.woff2") format("woff2"),
       url("fonts/HelveticaNeueRoman.woff") format("woff");
}

@font-face {
  font-family: "TeX Gyre Heros";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  /*src: url("fonts/texgyreheros-bold.woff2") format("woff2");*/
  src: url("fonts/HelveticaNeueRoman.woff2") format("woff2"),
       url("fonts/HelveticaNeueRoman.woff") format("woff");
}

html {
  color-scheme: light dark;
}

body {
  position: relative;
  margin: 0;
  padding: 1em 8%;
  font-size: 16px;
  line-height: 1.35;
}

h1 { font-size: 2em; margin: 0.4em 0 0.2em; }
h2 {
  font-size: 1.4em;
  margin: 1.4em 0 0.4em;
  border-bottom: 1px solid;
  padding-bottom: 0.15em;
}
h3 { font-size: 1.15em; margin: 0.8em 0 0.3em; }
h4 { font-size: 1.05em; margin: 0.7em 0 0.25em; }

h1, h2, h3, h4 { font-weight: bold; }

p, li { margin: 0.5em 0; }
ul, ol {
  margin: 0.4em 0 0.8em;
  padding-left: 1.2em;
}

hr {
  border: 0;
  border-top: 1px solid;
  height: 0;
  margin: 1.2em 0;
}

.nav {
  font-size: 0.95em;
  margin: 0.3em 0 0.8em;
  padding-right: 9em;
}

.small, .note, .footer, .caption, .dim {
  font-size: 0.9em;
}

.footer img.bestview {
  display: inline;
  vertical-align: middle;
  border: 0;
  width: 88px;
  height: 31px;
  margin: 0 0.35em 0 0;
}

pre, code, tt {
  font-size: 0.88em;
}

code, tt {
  padding: 0 0.2em;
  overflow-wrap: anywhere;
}

pre {
  padding: 0.6em 0.8em;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
  box-sizing: border-box;
}

pre code {
  font-size: inherit;
  overflow-wrap: normal;
}

table.plain {
  border-collapse: collapse;
  margin: 0.6em 0 1em;
  font-size: 0.95em;
  width: 100%;
}

table.plain th,
table.plain td {
  border: 1px solid;
  padding: 0.25em 0.55em;
  text-align: left;
  vertical-align: top;
}

table.plain td.meta {
  white-space: nowrap;
  font-size: 0.9em;
}

.warn, .macos-note {
  border: 2px solid;
  padding: 0.5em 0.8em;
  margin: 1em 0;
}

.quote, blockquote {
  margin: 0.8em 1.5em;
  font-style: italic;
}

blockquote {
  border-left: 2px solid;
  padding-left: 0.8em;
}

.avatar {
  float: left;
  margin: 0 0.8em 0.4em 0;
  border: 1px solid;
}

.logo {
  vertical-align: middle;
  margin-right: 0.4em;
  border: 0;
}

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

.screenshots img {
  max-width: 100%;
  height: auto;
  border: 1px solid;
  margin: 0.4em 0.4em 0.4em 0;
}

.version-info {
  margin: 0.6em 0 1em;
}

#release-assets ul,
#release-archive ul {
  list-style: disc;
  margin-left: 1.5em;
}

#release-assets li,
#release-archive li {
  margin: 0.25em 0;
}

.release-block {
  margin: 1em 0 1.4em;
}

.hl-bad { font-weight: bold; }
.hl-fix { font-weight: bold; }
.hl-warn { font-weight: bold; }

img[src*="shields.io"],
img[src*="github.com"][src*="badge"],
img[src*="workflows"][src$=".svg"] {
  display: inline;
  vertical-align: middle;
  border: 0;
  height: 1.25em;
  margin: 0 0.15em 0.15em 0;
}

.skinner {
  position: absolute;
  top: 1em;
  right: 8%;
  z-index: 6;
  font-size: 0.9em;
  margin: 0;
}

.skinner select {
  font: inherit;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.1em 1.35em 0.1em 0.35em;
  background-repeat: no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 0.85em) 55%, calc(100% - 0.5em) 55%;
  background-size: 0.35em 0.35em, 0.35em 0.35em;
}

.os-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.os-menu {
  position: absolute;
  z-index: 5;
  left: auto;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0.15em 0 0;
  padding: 0;
  list-style: none;
  min-width: 100%;
}

.os-menu[hidden] {
  display: none;
}

.os-menu li {
  margin: 0;
  padding: 0;
}

.skinner .os-menu button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.1em 0.35em;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  vertical-align: baseline;
}

.os-menu button + button {
  border-top: 0;
}

/* Retro hit counter — fixed LED look, deliberately theme-independent
   (real hit-counter GIFs never matched the page they sat on either). */
.hit-counter {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
  margin: 0;
}

.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75em;
  margin: 0.6em 0 0;
}

.footer-bar .bestview {
  justify-self: center;
  margin: 0;
}

.footer-bar .visitor {
  justify-self: start;
  text-align: left;
}

.footer-bar .copy {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.35em;
}

.hit-counter .digit {
  display: inline-block;
  min-width: 0.7em;
  padding: 0.05em 0.2em;
  background: #000000;
  color: #33ff33;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 0.95em;
  text-align: center;
  border: 1px solid #666666;
  border-radius: 2px;
}

/* ---------- Windows 95 ---------- */
html[data-theme="win95"] {
  color-scheme: light;
}

html[data-theme="win95"] body {
  background: #ffffff;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
}

html[data-theme="win95"] a:link { color: #0000ee; }
html[data-theme="win95"] a:visited { color: #551a8b; }
html[data-theme="win95"] a:active { color: #ff0000; }

html[data-theme="win95"] h1,
html[data-theme="win95"] h2,
html[data-theme="win95"] h3,
html[data-theme="win95"] h4 {
  font-family: "Times New Roman", Times, serif;
}

html[data-theme="win95"] h2 { border-bottom-color: #999999; }

html[data-theme="win95"] hr { border-top-color: #999999; }

html[data-theme="win95"] .small,
html[data-theme="win95"] .note,
html[data-theme="win95"] .footer,
html[data-theme="win95"] .caption,
html[data-theme="win95"] .dim,
html[data-theme="win95"] table.plain td.meta {
  color: #333333;
}

html[data-theme="win95"] pre,
html[data-theme="win95"] code,
html[data-theme="win95"] tt {
  font-family: "Courier New", Courier, monospace;
}

html[data-theme="win95"] code,
html[data-theme="win95"] tt {
  background: #f0f0f0;
}

html[data-theme="win95"] pre {
  background: #ffffff;
  border-style: solid;
  border-width: 2px;
  border-color: #808080 #c0c0c0 #c0c0c0 #808080;
}

html[data-theme="win95"] table.plain th,
html[data-theme="win95"] table.plain td {
  border-color: #666666;
}

html[data-theme="win95"] table.plain th {
  background: #e0e0e0;
}

html[data-theme="win95"] .warn {
  border-color: #990000;
  background: #fff8f8;
}

html[data-theme="win95"] .macos-note {
  border-color: #996600;
  background: #fffff0;
}

html[data-theme="win95"] blockquote { border-left-color: #999999; }

html[data-theme="win95"] .avatar,
html[data-theme="win95"] .screenshots img {
  border-color: #666666;
}

html[data-theme="win95"] .hl-bad { color: #cc0000; }
html[data-theme="win95"] .hl-fix { color: #006600; }
html[data-theme="win95"] .hl-ok { color: #006600; }
html[data-theme="win95"] .hl-warn { color: #996600; }
html[data-theme="win95"] .hl-dim { color: #666666; }

html[data-theme="win95"] .skinner select,
html[data-theme="win95"] .skinner .os-menu button {
  background-color: #ffffff;
  color: #000000;
  border: 2px inset #c0c0c0;
  border-radius: 0;
}

html[data-theme="win95"] .os-menu {
  border: 2px outset #c0c0c0;
  border-radius: 0;
  background: #ffffff;
}

html[data-theme="win95"] .skinner .os-menu button {
  border: 0;
}

/* ---------- OS X (default light) ---------- */
html[data-theme="osx"],
html:not([data-theme]) {
  color-scheme: light;
}

html[data-theme="osx"] body,
html:not([data-theme]) body {
  background: #dddddd;
  color: #000000;
  font-family: Chicago, Charcoal, Geneva, "Helvetica Neue", "TeX Gyre Heros", Helvetica, Arial, sans-serif;
}


html[data-theme="osx"] a:link,
html:not([data-theme]) a:link { color: #0000ee; }
html[data-theme="osx"] a:visited,
html:not([data-theme]) a:visited { color: #551a8b; }
html[data-theme="osx"] a:active,
html:not([data-theme]) a:active { color: #ff0000; }

html[data-theme="osx"] h1,
html:not([data-theme]) h1,
html[data-theme="osx"] h2,
html:not([data-theme]) h2,
html[data-theme="osx"] h3,
html:not([data-theme]) h3,
html[data-theme="osx"] h4,
html:not([data-theme]) h4 {
  font-family: Chicago, Charcoal, Geneva, "Helvetica Neue", "TeX Gyre Heros", Helvetica, Arial, sans-serif;
}


html[data-theme="osx"] h2,
html:not([data-theme]) h2 { border-bottom-color: #666666; }
html[data-theme="osx"] hr,
html:not([data-theme]) hr { border-top-color: #666666; }

html[data-theme="osx"] .small,
html:not([data-theme]) .small,
html[data-theme="osx"] .note,
html:not([data-theme]) .note,
html[data-theme="osx"] .footer,
html:not([data-theme]) .footer,
html[data-theme="osx"] .caption,
html:not([data-theme]) .caption,
html[data-theme="osx"] .dim,
html:not([data-theme]) .dim,
html[data-theme="osx"] table.plain td.meta,
html:not([data-theme]) table.plain td.meta {
  color: #333333;
}

html[data-theme="osx"] pre,
html:not([data-theme]) pre,
html[data-theme="osx"] code,
html:not([data-theme]) code,
html[data-theme="osx"] tt,
html:not([data-theme]) tt {
  font-family: Monaco, "Courier New", Courier, monospace;
}

html[data-theme="osx"] code,
html:not([data-theme]) code,
html[data-theme="osx"] tt,
html:not([data-theme]) tt {
  background: #eeeeee;
  border: 1px solid #999999;
}

html[data-theme="osx"] pre,
html:not([data-theme]) pre {
  background: #f4f4f4;
  border: 1px solid #c5c5c5;
  border-radius: 8px;
}

html[data-theme="osx"] table.plain,
html:not([data-theme]) table.plain {
  background: #ffffff;
}

html[data-theme="osx"] table.plain th,
html:not([data-theme]) table.plain th,
html[data-theme="osx"] table.plain td,
html:not([data-theme]) table.plain td {
  border-color: #000000;
}

html[data-theme="osx"] table.plain th,
html:not([data-theme]) table.plain th {
  background: #cccccc;
}

html[data-theme="osx"] .warn,
html:not([data-theme]) .warn {
  border-color: #990000;
  background: #fff8f8;
}

html[data-theme="osx"] .macos-note,
html:not([data-theme]) .macos-note {
  border-color: #666600;
  background: #fffff0;
}

html[data-theme="osx"] blockquote,
html:not([data-theme]) blockquote { border-left-color: #666666; }

html[data-theme="osx"] .avatar,
html:not([data-theme]) .avatar,
html[data-theme="osx"] .screenshots img,
html:not([data-theme]) .screenshots img {
  border-color: #000000;
}

html[data-theme="osx"] .hl-bad,
html:not([data-theme]) .hl-bad { color: #cc0000; }
html[data-theme="osx"] .hl-fix,
html:not([data-theme]) .hl-fix { color: #006600; }
html[data-theme="osx"] .hl-ok,
html:not([data-theme]) .hl-ok { color: #006600; }
html[data-theme="osx"] .hl-warn,
html:not([data-theme]) .hl-warn { color: #996600; }
html[data-theme="osx"] .hl-dim,
html:not([data-theme]) .hl-dim { color: #666666; }

html[data-theme="osx"] .skinner select,
html[data-theme="osx"] .skinner .os-menu button,
html:not([data-theme]) .skinner select,
html:not([data-theme]) .skinner .os-menu button {
  background-color: #eeeeee;
  color: #000000;
  border: 1px solid #000000;
}

html:not([data-theme]) .skinner select,
html:not([data-theme]) .os-menu {
  border-radius: 4px;
}

html:not([data-theme]) .os-menu {
  overflow: hidden;
  background: #eeeeee;
  border: 1px solid #000000;
}

html[data-theme="osx"] .skinner select {
  border-radius: 999px;
  padding-left: 0.7em;
}

html[data-theme="osx"] .os-menu {
  overflow: hidden;
  border-radius: 12px;
  background: #eeeeee;
  border: 1px solid #000000;
}

html[data-theme="osx"] .skinner .os-menu button,
html:not([data-theme]) .skinner .os-menu button {
  border: 0;
  border-radius: 0;
}

/* ---------- OS X Dark (default dark) ---------- */
html[data-theme="osx-dark"] {
  color-scheme: dark;
}

html[data-theme="osx-dark"] body {
  background: #2c2c2e;
  color: #f2f2f7;
  font-family: Chicago, Charcoal, Geneva, "Helvetica Neue", "TeX Gyre Heros", Helvetica, Arial, sans-serif;
}

html[data-theme="osx-dark"] a:link { color: #6cb4ff; }
html[data-theme="osx-dark"] a:visited { color: #c4a6e0; }
html[data-theme="osx-dark"] a:active { color: #ff6b6b; }

html[data-theme="osx-dark"] h1,
html[data-theme="osx-dark"] h2,
html[data-theme="osx-dark"] h3,
html[data-theme="osx-dark"] h4 {
  font-family: Chicago, Charcoal, Geneva, "Helvetica Neue", "TeX Gyre Heros", Helvetica, Arial, sans-serif;
}

html[data-theme="osx-dark"] h2 { border-bottom-color: #636366; }
html[data-theme="osx-dark"] hr { border-top-color: #636366; }

html[data-theme="osx-dark"] .small,
html[data-theme="osx-dark"] .note,
html[data-theme="osx-dark"] .footer,
html[data-theme="osx-dark"] .caption,
html[data-theme="osx-dark"] .dim,
html[data-theme="osx-dark"] table.plain td.meta {
  color: #aeaeb2;
}

html[data-theme="osx-dark"] pre,
html[data-theme="osx-dark"] code,
html[data-theme="osx-dark"] tt {
  font-family: Monaco, "Courier New", Courier, monospace;
}

html[data-theme="osx-dark"] code,
html[data-theme="osx-dark"] tt {
  background: #1c1c1e;
  border: 1px solid #555555;
  color: #f2f2f7;
}

html[data-theme="osx-dark"] pre {
  background: #242426;
  border: 1px solid #4a4a4c;
  border-radius: 8px;
  color: #f2f2f7;
}

html[data-theme="osx-dark"] table.plain {
  background: #1c1c1e;
}

html[data-theme="osx-dark"] table.plain th,
html[data-theme="osx-dark"] table.plain td {
  border-color: #6e6e70;
}

html[data-theme="osx-dark"] table.plain th {
  background: #3a3a3c;
}

html[data-theme="osx-dark"] .warn {
  border-color: #ff6b6b;
  background: #3a2020;
}

html[data-theme="osx-dark"] .macos-note {
  border-color: #c4a35a;
  background: #2e2a1a;
}

html[data-theme="osx-dark"] blockquote { border-left-color: #636366; }

html[data-theme="osx-dark"] .avatar,
html[data-theme="osx-dark"] .screenshots img {
  border-color: #6e6e70;
}

html[data-theme="osx-dark"] .hl-bad { color: #ff6b6b; }
html[data-theme="osx-dark"] .hl-fix { color: #6fcf6f; }
html[data-theme="osx-dark"] .hl-ok { color: #6fcf6f; }
html[data-theme="osx-dark"] .hl-warn { color: #e6c15a; }
html[data-theme="osx-dark"] .hl-dim { color: #8e8e93; }

html[data-theme="osx-dark"] .skinner select,
html[data-theme="osx-dark"] .skinner .os-menu button {
  background-color: #3a3a3c;
  color: #f2f2f7;
  border: 1px solid #6e6e73;
}

html[data-theme="osx-dark"] .skinner select {
  border-radius: 999px;
  padding-left: 0.7em;
}

html[data-theme="osx-dark"] .os-menu {
  overflow: hidden;
  border-radius: 12px;
  background: #3a3a3c;
  border: 1px solid #6e6e73;
}

html[data-theme="osx-dark"] .skinner .os-menu button {
  border: 0;
  border-radius: 0;
}

/* ---------- Linux 0.95c ---------- */
html[data-theme="linux095"] {
  color-scheme: dark;
}

html[data-theme="linux095"] body {
  background: #020802;
  color: #33ff66;
  font-family: "Courier New", Courier, Monaco, monospace;
  text-shadow: 0 0 0.4px #33ff66;
}

html[data-theme="linux095"] a:link { color: #66ff99; }
html[data-theme="linux095"] a:visited { color: #99cc66; }
html[data-theme="linux095"] a:active { color: #ffff66; }

html[data-theme="linux095"] h1,
html[data-theme="linux095"] h2,
html[data-theme="linux095"] h3,
html[data-theme="linux095"] h4 {
  font-family: "Courier New", Courier, Monaco, monospace;
  color: #66ff99;
  text-shadow: 0 0 6px rgba(51, 255, 102, 0.35);
}

html[data-theme="linux095"] h2 { border-bottom-color: #1a6622; }
html[data-theme="linux095"] hr { border-top-color: #1a6622; }

html[data-theme="linux095"] .small,
html[data-theme="linux095"] .note,
html[data-theme="linux095"] .footer,
html[data-theme="linux095"] .caption,
html[data-theme="linux095"] .dim,
html[data-theme="linux095"] table.plain td.meta {
  color: #2acc55;
}


html[data-theme="linux095"] pre,
html[data-theme="linux095"] code,
html[data-theme="linux095"] tt {
  font-family: "Courier New", Courier, Monaco, monospace;
}

html[data-theme="linux095"] code,
html[data-theme="linux095"] tt {
  background: #061206;
  border: 1px solid #1a6622;
  color: #33ff66;
}

html[data-theme="linux095"] pre {
  background: #020802;
  border: 2px solid #33ff66;
  color: #33ff66;
  box-shadow: inset 0 0 18px rgba(0, 40, 0, 0.85);
}

html[data-theme="linux095"] table.plain {
  background: #041004;
}

html[data-theme="linux095"] table.plain th,
html[data-theme="linux095"] table.plain td {
  border-color: #1a6622;
}

html[data-theme="linux095"] table.plain th {
  background: #0a1a0a;
  color: #66ff99;
}

html[data-theme="linux095"] .warn {
  border-color: #66ff33;
  background: #0a1800;
}

html[data-theme="linux095"] .macos-note {
  border-color: #66aa22;
  background: #0a1400;
}

html[data-theme="linux095"] blockquote { border-left-color: #1a6622; }

html[data-theme="linux095"] .avatar,
html[data-theme="linux095"] .screenshots img {
  border-color: #1a6622;
}

html[data-theme="linux095"] .hl-bad { color: #ff6644; text-shadow: none; }
html[data-theme="linux095"] .hl-fix { color: #99ff66; }
html[data-theme="linux095"] .hl-ok { color: #66ff99; }
html[data-theme="linux095"] .hl-warn { color: #ccff66; }
html[data-theme="linux095"] .hl-dim { color: #2a8833; }

html[data-theme="linux095"] .skinner select,
html[data-theme="linux095"] .skinner .os-menu button {
  background-color: #061206;
  color: #33ff66;
  border: 1px solid #1a6622;
  border-radius: 0;
}

html[data-theme="linux095"] .os-menu {
  background: #061206;
  border: 1px solid #1a6622;
  border-radius: 0;
}

html[data-theme="linux095"] .skinner .os-menu button {
  border: 0;
}

/* ---------- 4DOS (DOS text mode, leaning toward Midnight Commander) ---------- */
html[data-theme="4dos"] {
  color-scheme: dark;
}

html[data-theme="4dos"] body {
  background: #000000;
  color: #aaaaaa;
  font-family: "Perfect DOS VGA 437", Fixedsys, Terminal, "Courier New", monospace;
  font-size: 16px;
  line-height: 1.25;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

html[data-theme="4dos"] a:link { color: #55ffff; }
html[data-theme="4dos"] a:visited { color: #00aaaa; }
html[data-theme="4dos"] a:active { color: #ffff55; }

html[data-theme="4dos"] h1,
html[data-theme="4dos"] h2,
html[data-theme="4dos"] h3,
html[data-theme="4dos"] h4 {
  font-family: "Perfect DOS VGA 437", Fixedsys, Terminal, "Courier New", monospace;
  color: #55ffff;
  font-weight: normal;
}

html[data-theme="4dos"] h2 { border-bottom-color: #555555; }
html[data-theme="4dos"] hr { border-top-color: #555555; }

html[data-theme="4dos"] .small,
html[data-theme="4dos"] .note,
html[data-theme="4dos"] .footer,
html[data-theme="4dos"] .caption,
html[data-theme="4dos"] .dim,
html[data-theme="4dos"] table.plain td.meta {
  color: #aaaaaa;
}


html[data-theme="4dos"] pre,
html[data-theme="4dos"] code,
html[data-theme="4dos"] tt {
  font-family: "Perfect DOS VGA 437", Fixedsys, Terminal, "Courier New", monospace;
  font-size: 16px;
}

html[data-theme="4dos"] code,
html[data-theme="4dos"] tt {
  background: #000000;
  border: 1px solid #555555;
  color: #ffffff;
}

html[data-theme="4dos"] pre {
  background: #000000;
  border: 3px double #aaaaaa;
  color: #aaaaaa;
}

html[data-theme="4dos"] table.plain {
  background: #000000;
  width: 100%;
  max-width: 100%;
}

html[data-theme="4dos"] table.plain:has(th:nth-child(3)) {
  table-layout: fixed;
}

html[data-theme="4dos"] table.plain:has(th:nth-child(3)) th:nth-child(1) {
  width: 22%;
}

html[data-theme="4dos"] table.plain:has(th:nth-child(3)) th:nth-child(2) {
  width: 6.5em;
}

html[data-theme="4dos"] table.plain th,
html[data-theme="4dos"] table.plain td {
  border-color: #aaaaaa;
  overflow-wrap: anywhere;
}

html[data-theme="4dos"] table.plain th {
  background: #0000aa;
  color: #55ffff;
}

html[data-theme="4dos"] .warn {
  border-color: #ff5555;
  background: #550000;
  color: #ffaaaa;
}

html[data-theme="4dos"] .macos-note {
  border-color: #aa5500;
  background: #2a1500;
  color: #ffaa55;
}

html[data-theme="4dos"] blockquote { border-left-color: #555555; }

html[data-theme="4dos"] .avatar,
html[data-theme="4dos"] .screenshots img {
  border-color: #aaaaaa;
}

html[data-theme="4dos"] .hl-bad { color: #ff5555; }
html[data-theme="4dos"] .hl-fix { color: #55ff55; }
html[data-theme="4dos"] .hl-ok { color: #55ff55; }
html[data-theme="4dos"] .hl-warn { color: #ffff55; }
html[data-theme="4dos"] .hl-dim { color: #555555; }

html[data-theme="4dos"] .skinner select,
html[data-theme="4dos"] .skinner .os-menu button {
  background-color: #000000;
  color: #55ffff;
  border: 1px solid #aaaaaa;
  border-radius: 0;
  box-shadow: none;
  font-family: "Perfect DOS VGA 437", Fixedsys, Terminal, "Courier New", monospace;
}

html[data-theme="4dos"] .os-menu {
  background: #000000;
  border: 1px solid #aaaaaa;
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="4dos"] .skinner .os-menu button {
  border: 0;
}

html[data-theme="4dos"] .os-menu button + button {
  border-top: 1px solid #555555;
}

/* No-JS: follow system preference (OSX light / OSX Dark) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
  }

  html:not([data-theme]) body {
    background: #2c2c2e;
    color: #f2f2f7;
    font-family: Chicago, Charcoal, Geneva, "Helvetica Neue", "TeX Gyre Heros", Helvetica, Arial, sans-serif;
    text-shadow: none;
  }

  html:not([data-theme]) a:link { color: #6cb4ff; }
  html:not([data-theme]) a:visited { color: #c4a6e0; }
  html:not([data-theme]) a:active { color: #ff6b6b; }

  html:not([data-theme]) h1,
  html:not([data-theme]) h2,
  html:not([data-theme]) h3,
  html:not([data-theme]) h4 {
    font-family: Chicago, Charcoal, Geneva, "Helvetica Neue", "TeX Gyre Heros", Helvetica, Arial, sans-serif;
    color: #f2f2f7;
    text-shadow: none;
  }

  html:not([data-theme]) h2 { border-bottom-color: #636366; }
  html:not([data-theme]) hr { border-top-color: #636366; }

  html:not([data-theme]) .small,
  html:not([data-theme]) .note,
  html:not([data-theme]) .footer,
  html:not([data-theme]) .caption,
  html:not([data-theme]) .dim,
  html:not([data-theme]) table.plain td.meta {
    color: #aeaeb2;
  }

  html:not([data-theme]) pre,
  html:not([data-theme]) code,
  html:not([data-theme]) tt {
    font-family: Monaco, "Courier New", Courier, monospace;
  }

  html:not([data-theme]) code,
  html:not([data-theme]) tt {
    background: #1c1c1e;
    border: 1px solid #555555;
    color: #f2f2f7;
  }

  html:not([data-theme]) pre {
    background: #242426;
    border: 1px solid #4a4a4c;
    border-radius: 8px;
    color: #f2f2f7;
    box-shadow: none;
  }

  html:not([data-theme]) table.plain {
    background: #1c1c1e;
  }

  html:not([data-theme]) table.plain th,
  html:not([data-theme]) table.plain td {
    border-color: #6e6e70;
  }

  html:not([data-theme]) table.plain th {
    background: #3a3a3c;
    color: #f2f2f7;
  }

  html:not([data-theme]) .warn {
    border-color: #ff6b6b;
    background: #3a2020;
  }

  html:not([data-theme]) .macos-note {
    border-color: #c4a35a;
    background: #2e2a1a;
  }

  html:not([data-theme]) blockquote { border-left-color: #636366; }

  html:not([data-theme]) .avatar,
  html:not([data-theme]) .screenshots img {
    border-color: #6e6e70;
  }

  html:not([data-theme]) .hl-bad { color: #ff6b6b; text-shadow: none; }
  html:not([data-theme]) .hl-fix { color: #6fcf6f; }
  html:not([data-theme]) .hl-ok { color: #6fcf6f; }
  html:not([data-theme]) .hl-warn { color: #e6c15a; }
  html:not([data-theme]) .hl-dim { color: #8e8e93; }

  html:not([data-theme]) .skinner select,
  html:not([data-theme]) .skinner .os-menu button {
    background-color: #3a3a3c;
    color: #f2f2f7;
    border-color: #6e6e73;
  }

  html:not([data-theme]) .skinner select {
    border-radius: 999px;
  }

  html:not([data-theme]) .os-menu {
    background: #3a3a3c;
    border-color: #6e6e73;
    border-radius: 12px;
  }
}

/* ---------- Macintosh (System 6) ---------- */
html[data-theme="system6"] {
  color-scheme: light;
}

html[data-theme="system6"] body {
  background: #ffffff;
  color: #000000;
  font-family: "Chicago FLF", Chicago, Geneva, sans-serif;
  -webkit-font-smoothing: none;
}

html[data-theme="system6"] a:link,
html[data-theme="system6"] a:visited { color: #000000; }
html[data-theme="system6"] a:active { color: #ffffff; background: #000000; }

html[data-theme="system6"] h1,
html[data-theme="system6"] h2,
html[data-theme="system6"] h3,
html[data-theme="system6"] h4 {
  font-family: "Chicago FLF", Chicago, Geneva, sans-serif;
  color: #000000;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  padding: 0.2em 0.45em 0.15em;
  box-shadow: inset 0 1px 0 #000, inset 0 3px 0 #fff, inset 0 4px 0 #000, inset 0 6px 0 #fff, inset 0 7px 0 #000;
}

html[data-theme="system6"] h2 { border-bottom-color: #000000; }
html[data-theme="system6"] hr { border-top-color: #000000; }

html[data-theme="system6"] .small,
html[data-theme="system6"] .note,
html[data-theme="system6"] .footer,
html[data-theme="system6"] .caption,
html[data-theme="system6"] .dim,
html[data-theme="system6"] table.plain td.meta {
  color: #000000;
}

html[data-theme="system6"] pre,
html[data-theme="system6"] code,
html[data-theme="system6"] tt {
  font-family: Monaco, "Courier New", Courier, monospace;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

html[data-theme="system6"] pre {
  border-width: 2px;
  box-shadow: 2px 2px 0 #000000;
}

html[data-theme="system6"] table.plain {
  background: #ffffff;
}

html[data-theme="system6"] table.plain th,
html[data-theme="system6"] table.plain td {
  border-color: #000000;
  color: #000000;
}

html[data-theme="system6"] table.plain th {
  background: #ffffff;
  box-shadow: inset 0 1px 0 #000, inset 0 3px 0 #fff, inset 0 4px 0 #000;
}

html[data-theme="system6"] .warn,
html[data-theme="system6"] .macos-note {
  border-color: #000000;
  background: #ffffff;
  color: #000000;
}

html[data-theme="system6"] blockquote { border-left-color: #000000; }

html[data-theme="system6"] .avatar,
html[data-theme="system6"] .screenshots img {
  border-color: #000000;
}

html[data-theme="system6"] .hl-bad,
html[data-theme="system6"] .hl-fix,
html[data-theme="system6"] .hl-ok,
html[data-theme="system6"] .hl-warn,
html[data-theme="system6"] .hl-dim { color: #000000; }

html[data-theme="system6"] .skinner select,
html[data-theme="system6"] .skinner .os-menu button {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 0;
  font-family: "Chicago FLF", Chicago, Geneva, sans-serif;
}

html[data-theme="system6"] .os-menu {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  overflow: hidden;
}

html[data-theme="system6"] .skinner .os-menu button {
  border: 0;
  border-radius: 0;
}

/* ---------- Amiga Workbench 1.3 ---------- */
html[data-theme="amiga"] {
  color-scheme: dark;
}

html[data-theme="amiga"] body {
  background: #0055aa;
  color: #ffffff;
  font-family: Topaz, "Courier New", Courier, monospace;
  -webkit-font-smoothing: none;
}

html[data-theme="amiga"] a:link { color: #ff8800; }
html[data-theme="amiga"] a:visited { color: #ffffff; }
html[data-theme="amiga"] table.plain a:visited { color: #000000; }
html[data-theme="amiga"] a:active { color: #000000; }

html[data-theme="amiga"] h1,
html[data-theme="amiga"] h2,
html[data-theme="amiga"] h3,
html[data-theme="amiga"] h4 {
  font-family: Topaz, "Courier New", Courier, monospace;
  background: #ff8800;
  color: #000000;
  border-radius: 0;
  padding: 0.12em 0.4em;
}

html[data-theme="amiga"] h2 { border-bottom-color: #000000; }
html[data-theme="amiga"] hr { border-top-color: #ffffff; }

html[data-theme="amiga"] .small,
html[data-theme="amiga"] .note,
html[data-theme="amiga"] .footer,
html[data-theme="amiga"] .caption,
html[data-theme="amiga"] .dim,
html[data-theme="amiga"] table.plain td.meta {
  color: #ffffff;
}

html[data-theme="amiga"] pre,
html[data-theme="amiga"] code,
html[data-theme="amiga"] tt {
  font-family: Topaz, "Courier New", Courier, monospace;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

html[data-theme="amiga"] pre {
  border-top: 0.7em solid #ff8800;
}

html[data-theme="amiga"] table.plain {
  background: #ffffff;
  color: #000000;
}

html[data-theme="amiga"] table.plain th,
html[data-theme="amiga"] table.plain td {
  border-color: #000000;
  color: #000000;
}

html[data-theme="amiga"] table.plain .dim,
html[data-theme="amiga"] table.plain .small {
  color: #000000;
}

html[data-theme="amiga"] table.plain th {
  background: #ff8800;
  color: #000000;
}

html[data-theme="amiga"] .warn {
  border-color: #000000;
  background: #ff8800;
  color: #000000;
}

html[data-theme="amiga"] .macos-note {
  border-color: #000000;
  background: #ffffff;
  color: #000000;
}

html[data-theme="amiga"] blockquote { border-left-color: #ff8800; }

html[data-theme="amiga"] .avatar,
html[data-theme="amiga"] .screenshots img {
  border-color: #000000;
}

html[data-theme="amiga"] .hl-bad,
html[data-theme="amiga"] .hl-warn { color: #ff8800; }
html[data-theme="amiga"] .hl-fix,
html[data-theme="amiga"] .hl-ok,
html[data-theme="amiga"] .hl-dim { color: #ffffff; }

html[data-theme="amiga"] .skinner select,
html[data-theme="amiga"] .skinner .os-menu button {
  background: #ff8800;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 0;
  font-family: Topaz, "Courier New", Courier, monospace;
}

html[data-theme="amiga"] .os-menu {
  background: #0055aa;
  border: 2px solid #000000;
  border-radius: 0;
  overflow: hidden;
}

html[data-theme="amiga"] .skinner .os-menu button {
  background: #0055aa;
  color: #ffffff;
  border: 0;
  border-radius: 0;
}

html[data-theme="amiga"] .skinner .os-menu button[aria-selected="true"] {
  background: #ff8800;
  color: #000000;
}

/* ---------- OS/2 Warp ---------- */
html[data-theme="os2"] {
  color-scheme: light;
}

html[data-theme="os2"] body {
  background: #008080;
  color: #000000;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
}

html[data-theme="os2"] a:link { color: #000080; }
html[data-theme="os2"] a:visited { color: #000040; }
html[data-theme="os2"] a:active { color: #ff0000; }

html[data-theme="os2"] h1,
html[data-theme="os2"] h2,
html[data-theme="os2"] h3,
html[data-theme="os2"] h4 {
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
  background: #000080;
  color: #ffffff;
  border-radius: 0;
  padding: 0.12em 0.4em;
}

html[data-theme="os2"] h2 { border-bottom: 0; }
html[data-theme="os2"] hr { border-top-color: #c0c0c0; }

html[data-theme="os2"] .small,
html[data-theme="os2"] .note,
html[data-theme="os2"] .footer,
html[data-theme="os2"] .caption,
html[data-theme="os2"] .dim,
html[data-theme="os2"] table.plain td.meta {
  color: #000000;
}

html[data-theme="os2"] pre,
html[data-theme="os2"] code,
html[data-theme="os2"] tt {
  font-family: "Courier New", Courier, monospace;
  background: #c0c0c0;
  color: #000000;
  border: 2px inset #808080;
}

html[data-theme="os2"] pre {
  background: #ffffff;
  border-style: solid;
  border-width: 2px;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  border-top: 0.7em solid #000080;
}

html[data-theme="os2"] table.plain {
  background: #c0c0c0;
  color: #000000;
  border: 2px outset #c0c0c0;
}

html[data-theme="os2"] table.plain th,
html[data-theme="os2"] table.plain td {
  border-color: #808080;
  color: #000000;
}

html[data-theme="os2"] table.plain th {
  background: #000080;
  color: #ffffff;
}

html[data-theme="os2"] .warn {
  border-color: #000080;
  background: #c0c0c0;
}

html[data-theme="os2"] .macos-note {
  border-color: #808080;
  background: #c0c0c0;
}

html[data-theme="os2"] blockquote { border-left-color: #000080; }

html[data-theme="os2"] .avatar,
html[data-theme="os2"] .screenshots img {
  border-color: #808080;
}

html[data-theme="os2"] .hl-bad { color: #800000; }
html[data-theme="os2"] .hl-fix,
html[data-theme="os2"] .hl-ok { color: #004000; }
html[data-theme="os2"] .hl-warn { color: #804000; }
html[data-theme="os2"] .hl-dim { color: #404040; }

html[data-theme="os2"] .skinner select,
html[data-theme="os2"] .skinner .os-menu button {
  background: #c0c0c0;
  color: #000000;
  border: 2px outset #c0c0c0;
  border-radius: 0;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
}

html[data-theme="os2"] .os-menu {
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  border-radius: 0;
  overflow: hidden;
}

html[data-theme="os2"] .skinner .os-menu button {
  border: 0;
  border-radius: 0;
}

@media (max-width: 40em) {
  body {
    padding: 0.75em 0.35em;
  }

  .skinner {
    top: 0.75em;
    right: 0.35em;
  }

  table.plain,
  table.plain tbody,
  table.plain tr,
  table.plain td {
    display: block;
    width: auto;
  }

  table.plain th {
    display: none;
  }

  table.plain {
    border-collapse: separate;
    border-spacing: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  table.plain tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    border-bottom: 1px solid;
    box-shadow: inset 1px 0 0;
    padding: 0.35em 0.45em 0.5em;
    box-sizing: border-box;
  }

  table.plain tr:first-child {
    display: none;
  }

  table.plain td:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  table.plain td:nth-child(2):not(:last-child) {
    flex: 0 0 auto;
    margin-left: 0.75em;
    text-align: right;
  }

  table.plain td:last-child {
    flex: 1 0 100%;
  }

  table.plain td:last-child .dim {
    display: block;
    text-align: right;
  }

  table.plain td {
    border: 0;
    padding: 0.1em 0;
  }

  table.plain td.meta {
    white-space: normal;
  }

  .quote,
  blockquote {
    margin: 0.8em 0.4em;
  }

  .skinner select,
  .skinner .os-menu button {
    font-size: 16px;
  }

  .skinner select {
    padding-top: 0.25em;
    padding-bottom: 0.25em;
  }

  .skinner .os-menu button {
    padding: 0.25em 0.4em;
  }

  html[data-theme="4dos"] table.plain tr:not(:first-child) {
    align-items: stretch;
    border-bottom: 0;
    padding: 0;
    box-shadow: none;
  }

  html[data-theme="4dos"] table.plain tr:not(:first-child):has(td:nth-child(2):not(:last-child)) td:first-child,
  html[data-theme="4dos"] table.plain tr:not(:first-child) td:nth-child(2):not(:last-child) {
    background: #0000aa;
    color: #55ffff;
    padding: 0.2em 0.45em;
  }

  html[data-theme="4dos"] table.plain tr:not(:first-child):has(td:nth-child(2):not(:last-child)) td:first-child {
    box-shadow: inset 1px 0 0 #aaaaaa, inset 0 1px 0 #aaaaaa;
  }

  html[data-theme="4dos"] table.plain tr:not(:first-child) td:nth-child(2):not(:last-child) {
    margin-left: 0;
    text-align: right;
    box-shadow: inset -1px 0 0 #aaaaaa, inset 0 1px 0 #aaaaaa;
  }

  html[data-theme="4dos"] table.plain tr:not(:first-child) td:last-child {
    box-sizing: border-box;
    max-width: 100%;
    padding: 0.35em 0.45em 0.45em;
    box-shadow: inset 1px 0 0 #aaaaaa, inset -1px 0 0 #aaaaaa, inset 0 -1px 0 #aaaaaa;
  }
}

/* Hidden easter-egg link — must never look clickable, in any theme.
   Placed last so it wins the cascade tie against every theme's a:link
   / a:visited / a:active rules above. */
a.cc,
a.cc:link,
a.cc:visited,
a.cc:hover,
a.cc:active,
a.cc:focus {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

a.cc svg {
  display: block;
  width: 1.05em;
  height: 1.05em;
}

a.hidden-link,
a.hidden-link:link,
a.hidden-link:visited,
a.hidden-link:hover,
a.hidden-link:active,
a.hidden-link:focus {
  color: inherit;
  text-decoration: none;
  cursor: text;
  outline: none;
}
