/* Classic Windows 98 desktop/window treatment, scoped to this theme only. */
:root[data-theme="win98"] {
  --bg: #c0c0c0;
  --ink: #000000;
  --muted: #333333;
  --line: #808080;
  --code: #dfdfdf;
  --accent: #000080;
  --accent-dark: #000060;
  --accent-wash: #ffffff;
  --mono: "Tahoma", "MS Sans Serif", "PingFang SC", "Microsoft YaHei", monospace;
  --sans: "Tahoma", "MS Sans Serif", "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root[data-theme="win98"] body {
  background: #008080;
  -webkit-font-smoothing: none;
}

:root[data-theme="win98"] .site-header {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  backdrop-filter: none;
  border: 2px outset #dfdfdf;
  border-bottom: 0;
  color: #ffffff;
}

:root[data-theme="win98"] .site-header .brand,
:root[data-theme="win98"] .site-header .site-nav a,
:root[data-theme="win98"] .site-header .language-switch,
:root[data-theme="win98"] .site-header .language-switch a {
  color: #ffffff;
}

:root[data-theme="win98"] .site-header .brand-logo {
  filter: brightness(0) invert(1);
}

:root[data-theme="win98"] .site-header .site-nav a:hover,
:root[data-theme="win98"] .site-header .language-switch a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
}

:root[data-theme="win98"] .site-header .menu-toggle span {
  background: #ffffff;
}

:root[data-theme="win98"] main {
  max-width: 1120px;
  margin-inline: auto;
  background: #c0c0c0;
  border-inline: 2px outset #dfdfdf;
}

:root[data-theme="win98"] .button,
:root[data-theme="win98"] .theme-switcher,
:root[data-theme="win98"] .feature-card,
:root[data-theme="win98"] .terminal,
:root[data-theme="win98"] .code-block,
:root[data-theme="win98"] .intro-terminal {
  border-radius: 0;
  box-shadow: none;
}

:root[data-theme="win98"] .feature-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 220px;
  padding: 12px;
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
}

:root[data-theme="win98"] .feature-card h3 {
  order: 0;
  margin: -12px -12px 12px;
  padding: 7px 10px;
  background: #000080;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
}

:root[data-theme="win98"] .feature-icon {
  order: 1;
  width: 40px;
  height: 40px;
  margin: 0 0 8px;
  border: 2px outset #dfdfdf;
  border-radius: 0;
  background: #c0c0c0;
  color: #000080;
}

:root[data-theme="win98"] .feature-icon .icon {
  width: 22px;
  height: 22px;
}

:root[data-theme="win98"] .feature-card p {
  order: 2;
  margin-top: 0;
  color: #000000;
}

:root[data-theme="win98"] .feature-header h2,
:root[data-theme="win98"] .section-head h2 {
  display: inline-block;
  padding: 5px 10px;
  background: #000080;
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 0;
}

:root[data-theme="win98"] .button-primary,
:root[data-theme="win98"] .segmented-control button[aria-pressed="true"],
:root[data-theme="win98"] .step h3::before {
  background: #000080;
}

:root[data-theme="win98"] .segmented-control button[aria-pressed="true"] {
  color: #ffffff;
}

:root[data-theme="win98"] .button-primary {
  border: 2px outset #dfdfdf;
  color: #ffffff;
}

:root[data-theme="win98"] .button-primary:active {
  border-style: inset;
}

:root[data-theme="win98"] .button-outline {
  border: 2px outset #dfdfdf;
  background: #c0c0c0;
  color: #000080;
}

:root[data-theme="win98"] .terminal,
:root[data-theme="win98"] .code-block {
  background: #ffffff;
  border: 2px inset #808080;
}

:root[data-theme="win98"] .step h3::before {
  border: 2px outset #dfdfdf;
  border-radius: 0;
}

:root[data-theme="win98"] .site-footer {
  max-width: 1120px;
  min-height: 72px;
  margin-inline: auto;
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
}

:root[data-theme="win98"] .theme-switcher {
  padding: 2px;
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
}

:root[data-theme="win98"] .theme-switcher-titlebar {
  margin: 0;
  padding: 7px 9px;
  border-radius: 0;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
}

:root[data-theme="win98"] .theme-switcher-hint {
  padding-inline: 8px;
  color: #000000;
}

:root[data-theme="win98"] .theme-option {
  border: 2px outset #dfdfdf;
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
}

:root[data-theme="win98"] .theme-option[aria-pressed="true"] {
  border-style: inset;
  background: #000080;
  color: #ffffff;
}

:root[data-theme="win98"] .terminal mark,
:root[data-theme="win98"] .intro-public-ip {
  background: #000080;
  color: #ffffff;
  border-radius: 0;
  text-shadow: none;
}

:root[data-theme="win98"] .intro-topbar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
}

:root[data-theme="win98"] .intro-brand,
:root[data-theme="win98"] .intro-window-title {
  color: #ffffff;
}

:root[data-theme="win98"] .intro-window-control {
  border-radius: 0;
  border-style: outset;
}

:root[data-theme="win98"] :focus-visible {
  outline: 2px dotted #000000;
  outline-offset: 2px;
}
