/* 2004–2009 glossy “software site” shell — 2007 desktop utility / Office ribbon energy */

:root {
  /* Office 2007 / Windows “download utility” blues */
  --y2k-navy: #0a1628;
  --y2k-navy-mid: #1e3a5f;
  --y2k-office-blue: #2b579a;
  --y2k-office-light: #4f81bd;
  --y2k-slate: #1e3a5f;
  --y2k-cyan: #22d3ee;
  --y2k-cyan-dim: #06b6d4;
  --y2k-sky: #38bdf8;
  --y2k-silver: #c8d4e4;
  --y2k-silver-deep: #94a3b8;
  --y2k-chrome: #d4e0ed;
  --y2k-paper: #c4d4e4;
  --y2k-card: #d6e4f2;
  --y2k-orange-top: #ffb347;
  --y2k-orange-mid: #f97316;
  --y2k-orange-bot: #c2410c;
  --y2k-font: Verdana, Tahoma, "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.sw9-doc-body {
  --c7-paper: var(--y2k-paper);
  --c7-card: var(--y2k-card);
  font-family: var(--y2k-font);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #0f172a;
  background-color: #7c8ca0;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.07) 0 5px,
      rgba(15, 23, 42, 0.06) 5px 10px
    ),
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(180deg, #9aa8b8 0%, #7c8ca0 45%, #6b7a8c 100%);
  background-attachment: fixed;
}

.sw9-doc-body h1,
.sw9-doc-body h2,
.sw9-doc-body h3 {
  font-family: Tahoma, Verdana, "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.02em;
}

.sw9-outer-pad {
  max-width: min(100%, 112rem);
  margin: 0 auto;
  padding: 0.65rem clamp(0.3rem, 1vw, 0.65rem) 1rem;
}

@media (min-width: 768px) {
  .sw9-outer-pad {
    padding: 0.85rem clamp(0.45rem, 1.2vw, 0.85rem) 1.35rem;
  }
}

.sw9-outer-pad .max-w-6xl {
  max-width: min(100% - 0.75rem, 96rem) !important;
}

/* Outer “installer window” frame */
.sw9-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid #f8fafc;
  border-radius: 10px;
  background: linear-gradient(165deg, #dfe8f2 0%, #c9d5e5 35%, #b8c6d8 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 6px rgba(15, 23, 42, 0.12),
    0 4px 0 rgba(15, 23, 42, 0.25),
    0 16px 40px rgba(15, 23, 42, 0.45);
}

@media (min-width: 768px) {
  .sw9-frame {
    flex-direction: row;
    align-items: stretch;
  }
}

/* Left rail */
.sw9-side-rail {
  border-bottom: 3px groove var(--y2k-silver-deep);
  background: linear-gradient(180deg, #e8eef6 0%, #d4dde8 50%, #c5d0de 100%);
  box-shadow: inset -4px 0 8px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
  .sw9-side-rail {
    width: 14rem;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 3px groove #8b9cb0;
  }
}

.sw9-rail-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.2) 0%, rgba(255, 255, 255, 0.35) 40%, transparent 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sw9-rail-mark img {
  border-radius: 6px !important;
  border: 2px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.sw9-rail-menu {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.45rem 0.65rem;
}

@media (min-width: 768px) {
  .sw9-rail-menu {
    display: flex;
  }
}

.sw9-rail-item {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.sw9-rail-item:hover {
  border-color: rgba(6, 182, 212, 0.65);
  background: linear-gradient(180deg, #f0f9ff 0%, #dbeafe 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(14, 165, 233, 0.25);
}

.sw9-rail-on {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 800;
  color: #0c1929;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #ffffff 0%, #e8f0fa 45%, #d0dce8 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(15, 23, 42, 0.08),
    0 2px 4px rgba(15, 23, 42, 0.2);
}

.sw9-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--c7-paper) 0%, #b0c4d6 100%);
  box-shadow: inset 0 24px 48px rgba(255, 255, 255, 0.22);
}

/* Glassy masthead — Office ribbon + setup wizard title bar */
.sw9-top-banner {
  position: relative;
  border-bottom: 2px solid rgba(0, 0, 0, 0.45);
  background: linear-gradient(
    180deg,
    var(--y2k-office-light) 0%,
    var(--y2k-office-blue) 18%,
    #1a3a6e 52%,
    #0a1628 100%
  );
  color: #f1f5f9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.sw9-top-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(56, 189, 248, 0.08) 40%,
    transparent 100%
  );
  border-radius: 0;
}

.sw9-top-banner .banner-brand-line {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(34, 211, 238, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.sw9-top-banner .banner-brand-line a {
  color: inherit;
  text-decoration: none;
}

.sw9-top-banner .banner-brand-line .text-white > span {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

/* Language dropdown — glass */
.sw9-top-banner #top-toolbar-slot details summary {
  list-style: none;
  border-radius: 8px !important;
  padding: 0.5rem 0.85rem !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(220, 230, 242, 0.95) 45%, rgba(190, 205, 220, 0.98) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.sw9-top-banner #top-toolbar-slot details summary::-webkit-details-marker {
  display: none;
}

.sw9-top-banner #top-toolbar-slot details summary:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(34, 211, 238, 0.45),
    0 4px 10px rgba(6, 182, 212, 0.35);
}

.sw9-top-banner #top-toolbar-slot details summary:active {
  transform: translateY(1px);
}

.sw9-top-banner #top-toolbar-slot details ul {
  border-radius: 10px !important;
  border: 2px solid rgba(148, 163, 184, 0.6) !important;
  background: linear-gradient(180deg, #fbfdff 0%, #e8eef6 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(15, 23, 42, 0.35) !important;
  padding: 0.35rem 0 !important;
  color: #0f172a;
}

.sw9-top-banner #top-toolbar-slot details ul a {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.sw9-top-banner #top-toolbar-slot details ul a:hover,
.sw9-top-banner #top-toolbar-slot details ul a:focus-visible {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), transparent) !important;
  color: #020617 !important;
}

/* Chunky glossy toolbar buttons */
.sw9-chrome-btn {
  position: relative;
  border-radius: 8px !important;
  font-family: var(--y2k-font) !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  padding: 0.55rem 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(15, 23, 42, 0.15),
    0 3px 0 rgba(15, 23, 42, 0.35),
    0 5px 12px rgba(0, 0, 0, 0.25);
  transition:
    filter 0.12s ease,
    transform 0.08s ease,
    box-shadow 0.12s ease;
}

.sw9-chrome-btn:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(15, 23, 42, 0.12),
    0 0 0 2px rgba(34, 211, 238, 0.35),
    0 4px 0 rgba(15, 23, 42, 0.3),
    0 8px 18px rgba(6, 182, 212, 0.25);
}

.sw9-chrome-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 3px 8px rgba(15, 23, 42, 0.25),
    0 1px 0 rgba(15, 23, 42, 0.35);
}

.sw9-top-banner .sw9-chrome-btn.bg-sky-500 {
  background: linear-gradient(180deg, #7dd3fc 0%, var(--y2k-sky) 40%, #0284c7 100%) !important;
  color: #0a0a0a !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.sw9-top-banner .sw9-chrome-btn.border-slate-300 {
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%) !important;
  color: #0f172a !important;
}

.sw9-drawer-panel {
  border-bottom: 3px groove #9aa8b8;
  background: linear-gradient(180deg, #d4dfea 0%, #b9cad8 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.45);
}

.c7-float-dl {
  border: 3px outset #fb923c;
  box-shadow: 2px 3px 0 rgba(15, 23, 42, 0.35);
}

body.sw9-doc-body .bg-white {
  background: linear-gradient(180deg, var(--y2k-card) 0%, #c9d8e8 100%) !important;
}

body.sw9-doc-body .hover\:bg-white:hover {
  background: linear-gradient(180deg, #e8f0f8 0%, var(--y2k-card) 100%) !important;
}

body.sw9-doc-body .focus\:bg-white:focus {
  background: var(--y2k-card) !important;
}

/* Masthead logo — chunky “dock icon” */
.sw9-top-banner .banner-brand-line img {
  border-radius: 8px !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Mobile drawer — pressable tiles */
body.sw9-doc-body .sw9-drawer-panel a.rounded-lg {
  border-radius: 8px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(148, 163, 184, 0.55) !important;
  background: linear-gradient(180deg, #fbfdff 0%, #e2e8f0 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 0 rgba(148, 163, 184, 0.4);
}

body.sw9-doc-body .sw9-drawer-panel a.rounded-lg:hover {
  border-color: rgba(34, 211, 238, 0.55) !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #dbeafe 100%) !important;
}

body.sw9-doc-body .sw9-drawer-panel a.rounded-md:not(.border-2) {
  border-radius: 8px !important;
  font-weight: 700 !important;
}

body.sw9-doc-body .sw9-drawer-panel a.border-2.border-slate-500 {
  background: linear-gradient(180deg, #475569 0%, #1e293b 55%, #0f172a 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 3px 0 rgba(0, 0, 0, 0.35);
}

/* -------------------------------------------------------------------------- */
/* 2007 “desktop utility download” strip (under title bar)                    */
/* -------------------------------------------------------------------------- */

.sw9-spec-strip {
  position: relative;
  z-index: 2;
  direction: ltr;
  border-bottom: 1px solid rgba(15, 23, 42, 0.35);
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 22%, #fde68a 55%, #fcd34d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(180, 83, 9, 0.25);
}

.sw9-spec-strip__row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  padding: 0.35rem 0.75rem;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  color: #422006;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

@media (min-width: 768px) {
  .sw9-spec-strip__row {
    justify-content: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 11.5px;
  }
}

.sw9-spec-strip__name {
  padding: 0.1rem 0.45rem 0.12rem;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

.sw9-spec-strip__tag {
  padding: 0.12rem 0.5rem 0.14rem;
  border-radius: 4px;
  border: 1px solid #15803d;
  background: linear-gradient(180deg, #86efac 0%, #22c55e 35%, #15803d 100%);
  color: #052e16;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(21, 128, 61, 0.35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}

.sw9-spec-strip__platforms {
  color: #451a03;
  font-weight: 700;
}

.sw9-spec-strip__platforms::before,
.sw9-spec-strip__legal::before {
  content: "◆";
  margin-right: 0.35rem;
  font-size: 7px;
  color: #b45309;
  vertical-align: middle;
}

.sw9-spec-strip__legal {
  color: #78350f;
  font-weight: 700;
}

