/* Windows ME tweaks on top of 98.css.
   ME ≈ 98 visually, but with slightly bluer title bars and the teal taskbar/start menu. */

:root {
  --me-desktop: #3a6ea5;
  /* Authentic Windows 2000 colors:
     ActiveCaption (left) #0A246A → GradientActiveCaption (right) #A6CAF0. */
  --me-title-active-start: #0A246A;
  --me-title-active-end: #A6CAF0;
  --me-taskbar: #c0c0c0;
  --me-start-banner: linear-gradient(180deg, #0a246a 0%, #5577cc 100%);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  /* Windows 2000 system font was Tahoma 8pt (~11px at 96dpi). Tahoma is
     pre-installed on Windows / Linux (msttcorefonts) but NOT on macOS — it
     only ships with Office. Verdana (same designer as Tahoma, same era)
     IS on every macOS, Windows, and Linux install, so it goes immediately
     after Tahoma to give Safari users a usable match. */
  font-family: Tahoma, Verdana, "Segoe UI", "DejaVu Sans", sans-serif;
  font-size: 11px;
  user-select: none;
  -webkit-user-select: none;
}

/* ME title bars had a smoother blue gradient than 98 */
.window .title-bar {
  background: linear-gradient(
    90deg,
    var(--me-title-active-start) 0%,
    var(--me-title-active-end) 100%
  );
  /* Keep title + controls on a single row even when the title is long. */
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
}

/* Truncate long window titles with an ellipsis so the min/max/close
   icons never get pushed onto a second line. */
.window .title-bar .title-bar-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  /* Win2000 title bars used Tahoma Bold 8pt. */
  font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
  font-weight: bold;
  font-size: 11px;
}
.window .title-bar .title-bar-controls {
  flex: 0 0 auto;
}
.window.inactive .title-bar {
  background: linear-gradient(90deg, #7a96df 0%, #b9c9ef 100%);
}
