/* WinDirStat — “Classic Web™” circa 1997 (CSS-only, accessible motion) */
:root {
  --retro-bg: #c0c0c0;
  --retro-face: #dfdfdf;
  --retro-dark: #404040;
  --retro-navy: #000080;
  --retro-link: #0000ee;
  --retro-visited: #551a8b;
  --retro-window: #ffffff;
  --retro-titlebar: linear-gradient(90deg, #000080 0%, #1084d0 50%, #000080 100%);
  --retro-inset: inset 1px 1px 0 #fff, inset -1px -1px 0 #404040;
  --retro-outset: 1px 1px 0 #fff, -1px -1px 0 #404040;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-color: #c0c0c0 #808080;
}

.retro-body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #000;
  background: var(--retro-bg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 3px
    );
}

@media (prefers-reduced-motion: reduce) {
  .retro-ticker-inner,
  .retro-badge--blink {
    animation: none !important;
  }
}

.retro-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background: repeating-linear-gradient(
    transparent 0,
    transparent 3px,
    rgba(0, 0, 128, 0.15) 3px,
    rgba(0, 0, 128, 0.15) 4px
  );
  z-index: 9999;
}

.retro-skip {
  position: absolute;
  left: -9999px;
  z-index: 100000;
  padding: 8px 12px;
  background: #ffffcc;
  border: 2px outset #fff;
  font-weight: bold;
}

.retro-skip:focus {
  left: 8px;
  top: 8px;
}

html[dir="rtl"] .retro-skip:focus {
  left: auto;
  right: 8px;
}

.retro-shell {
  max-width: 52rem;
  margin: 12px auto 28px;
  display: flex;
  flex-direction: column;
  background: var(--retro-face);
  border: 2px solid #000;
  box-shadow: var(--retro-outset), 4px 4px 0 rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .retro-shell {
    flex-direction: row;
    align-items: stretch;
  }

  html[dir="rtl"] .retro-shell {
    flex-direction: row-reverse;
  }

  html[dir="rtl"] .retro-sidebar {
    border-right: none;
    border-left: 2px solid #000;
  }

  html[dir="rtl"] .retro-main {
    border-left: 0;
    border-right: 1px solid #808080;
  }
}

.retro-sidebar {
  flex-shrink: 0;
  width: 100%;
  border-bottom: 2px solid #000;
  background: var(--retro-face);
}

@media (min-width: 768px) {
  .retro-sidebar {
    width: 11.5rem;
    border-bottom: none;
    border-right: 2px solid #000;
  }
}

.retro-brand {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #808080;
}

.retro-brand img {
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}

.retro-brand-title {
  display: block;
  margin-top: 6px;
  font-weight: bold;
  font-size: 15px;
  color: var(--retro-navy);
}

.retro-brand-sub {
  font-size: 11px;
  color: #333;
}

.retro-version {
  margin: 10px 0 0;
  font-size: 11px;
  color: #222;
}

.retro-nav {
  padding: 8px 6px 10px;
  border-bottom: 1px solid #808080;
}

.retro-nav-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.retro-nav-ul li {
  margin: 2px 0;
}

.retro-nav-link {
  display: block;
  padding: 5px 8px;
  color: #000;
  text-decoration: none;
  border: 1px solid transparent;
}

.retro-nav-link:hover {
  background: #e8e8e8;
}

.retro-nav-link.is-active {
  background: var(--retro-window);
  border: 2px inset #808080;
  font-weight: bold;
  padding: 4px 7px;
}

.retro-lang {
  padding: 10px 8px 14px;
  font-size: 11px;
  color: #222;
}

.retro-lang-title {
  margin: 0 0 6px;
  font-weight: bold;
  font-size: 11px;
  color: var(--retro-navy);
}

.retro-lang-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.retro-lang-ul li {
  margin: 3px 0;
}

.retro-lang-link {
  color: var(--retro-link);
}

.retro-lang-link:visited {
  color: var(--retro-visited);
}

.retro-lang-link.is-active {
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

.retro-sidebar-gag {
  margin: 10px 8px 0;
  padding: 6px;
  font-size: 10px;
  background: #ffffcc;
  border: 1px solid #808080;
  box-shadow: var(--retro-inset);
}

.retro-counter {
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  letter-spacing: 2px;
  color: #006400;
  text-align: center;
  padding: 4px;
  background: #000;
  color: #00ff41;
  text-shadow: 0 0 2px #00ff41;
}

.retro-sidebar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 8px;
}

.retro-badge {
  display: inline-block;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: bold;
  border: 1px solid #000;
  background: #ffff00;
  color: #000;
}

.retro-badge--blink {
  animation: retro-blink 1.1s step-end infinite;
}

@keyframes retro-blink {
  50% {
    opacity: 0.35;
  }
}

.retro-main {
  flex: 1;
  min-width: 0;
  background: var(--retro-window);
  border-left: 0;
}

@media (min-width: 768px) {
  .retro-main {
    border-left: 1px solid #808080;
  }
}

.retro-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border-bottom: 2px solid #000;
  background: var(--retro-titlebar);
}

.retro-ticker {
  overflow: hidden;
  border-bottom: 1px solid #808080;
  background: #000080;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.retro-ticker-inner {
  display: inline-block;
  padding: 4px 0;
  padding-left: 100%;
  animation: retro-marquee 22s linear infinite;
}

@keyframes retro-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.retro-main-head .retro-h1 {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

.retro-titlebar-block {
  flex: 1;
  min-width: 0;
  padding: 8px 12px 10px;
}

.retro-titlebar-block .retro-h1 {
  padding: 0 0 4px;
}

.retro-lead {
  margin: 0;
  font-size: 12px;
  font-weight: normal;
  color: #d6e5ff;
  line-height: 1.45;
  text-shadow: none;
}

.retro-btn {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  text-align: center;
  background: var(--retro-face);
  border: 2px outset #fff;
  cursor: pointer;
}

.retro-btn:hover {
  background: #eaeaea;
}

.retro-btn:active {
  border: 2px inset #808080;
  padding: 7px 13px 5px 15px;
}

.retro-btn-primary {
  background: linear-gradient(180deg, #5a8dee 0%, #2e4ec6 100%);
  color: #fff;
  border-color: #7eb3ff #1a2e80 #1a2e80 #7eb3ff;
}

.retro-btn-primary:hover {
  filter: brightness(1.08);
}

.retro-btn-lg {
  padding: 10px 22px;
  font-size: 13px;
}

.retro-content {
  padding: 14px 16px 20px;
}

.retro-content p {
  margin: 0 0 12px;
}

.retro-content cite {
  font-style: normal;
  color: #444;
}

.retro-list {
  margin: 0 0 14px 18px;
  padding: 0;
}

.retro-list li {
  margin: 6px 0;
}

.retro-figure {
  margin: 0 0 16px;
  padding: 8px;
  background: #f0f0f0;
  border: 2px groove #fff;
}

.retro-hero-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid #808080;
}

.retro-caption {
  margin-top: 8px;
  font-size: 11px;
  color: #333;
  text-align: center;
}

.retro-h2 {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: bold;
  color: var(--retro-navy);
  border-bottom: 2px groove #fff;
  padding-bottom: 2px;
}

.retro-faq {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 2px groove #fff;
}

.retro-dl {
  margin: 0;
}

.retro-dl > div {
  margin: 0 0 12px;
}

.retro-dt {
  font-weight: bold;
  color: #000;
}

.retro-dd {
  margin: 4px 0 0 12px;
  font-size: 12px;
  color: #222;
}

.retro-footer {
  padding: 10px 14px;
  font-size: 11px;
  color: #333;
  background: #e8e8e8;
  border-top: 2px solid #808080;
}

.retro-footer p {
  margin: 0 0 6px;
}

.retro-link {
  color: var(--retro-link);
}

.retro-link:visited {
  color: var(--retro-visited);
}

.retro-code {
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 12px;
  background: #f4f4f4;
  border: 1px solid #999;
  padding: 1px 4px;
}

.retro-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 2px groove #fff;
  background: #fff;
}

.retro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.retro-table thead {
  background: linear-gradient(180deg, #d4e5ff 0%, #a8c8ff 100%);
}

.retro-th {
  padding: 6px 8px;
  border: 1px solid #808080;
  text-align: left;
  font-weight: bold;
  color: #000080;
}

.retro-td {
  padding: 6px 8px;
  border: 1px solid #c0c0c0;
  vertical-align: top;
}

.retro-table tbody tr:nth-child(odd) {
  background: #fafafa;
}

.retro-callout {
  margin-top: 16px;
  padding: 10px 12px;
  background: #ffffee;
  border: 2px groove #fff;
}

.retro-callout-title {
  margin: 0 0 6px;
  font-weight: bold;
  color: var(--retro-navy);
}

.retro-nav--tight {
  letter-spacing: 0.12em;
}

/* 404 page (standalone) */
.retro-404 {
  max-width: 28rem;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--retro-window);
  border: 3px ridge #fff;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.retro-404 h1 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--retro-navy);
}

.retro-404 .muted {
  font-size: 0.85rem;
  color: #444;
  margin-top: 1rem;
}

/* Terminal-style copy blocks */
.retro-snippet-wrap {
  position: relative;
  margin: 8px 0 14px;
  border: 2px groove #fff;
  background: #1a1a1a;
  color: #eaeaea;
}

.retro-copy-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-family: Tahoma, sans-serif;
  font-weight: bold;
  border: 2px outset #fff;
  background: #e0e0e0;
  color: #000;
  cursor: pointer;
}

.retro-copy-btn:hover {
  background: #fff;
}

.retro-copy-btn:active {
  border: 2px inset #808080;
}

.retro-btn--wide {
  padding: 10px 20px;
  font-size: 13px;
}

.retro-pre {
  margin: 0;
  padding: 38px 12px 12px;
  overflow-x: auto;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.retro-muted {
  font-size: 11px;
  color: #555;
}

.retro-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed #c0c0c0;
}

.retro-section:last-child {
  border-bottom: none;
}
