:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5d6874;
  --paper: #f5f7f8;
  --panel: #ffffff;
  --line: #d6dde2;
  --brand: #174d70;
  --brand-dark: #0f354f;
  --brand-soft: #e4f0f6;
  --accent: #d37a35;
  --success: #2d694b;
  --warning: #8a4e16;
  --shadow: 0 12px 34px rgba(20, 44, 61, 0.1);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(130deg, rgba(23, 77, 112, 0.07), transparent 38rem),
    var(--paper);
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

button,
a.button {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 20px clamp(18px, 4vw, 54px);
  color: #fff;
  background:
    linear-gradient(112deg, rgba(15, 53, 79, 0.98), rgba(23, 77, 112, 0.94)),
    var(--brand);
  border-bottom: 4px solid var(--accent);
}

.site-logo {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.22));
}

.site-heading {
  min-width: 0;
}

.site-heading p {
  margin: 0 0 4px;
  color: #d9eaf3;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-heading strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 118px);
}

.sidebar {
  position: relative;
  padding: 18px 14px 30px;
  background: #e9eef1;
  border-right: 1px solid var(--line);
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 12px;
  padding: 9px 10px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.sidebar-toggle:hover {
  border-color: var(--brand);
}

.sidebar-toggle .toggle-symbol {
  font-weight: 700;
}

.site-nav {
  display: grid;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 10px 11px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 7px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.72);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(23, 77, 112, 0.2);
}

.layout.sidebar-collapsed {
  grid-template-columns: 66px minmax(0, 1fr);
}

.layout.sidebar-collapsed .sidebar {
  padding-inline: 8px;
}

.layout.sidebar-collapsed .sidebar-toggle {
  justify-content: center;
}

.layout.sidebar-collapsed .toggle-label,
.layout.sidebar-collapsed .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.layout.sidebar-collapsed .site-nav a {
  padding: 10px 5px;
  text-align: center;
}

.nav-short {
  display: none;
  font-weight: 700;
}

.layout.sidebar-collapsed .nav-short {
  display: inline;
}

main {
  min-width: 0;
  padding: clamp(22px, 4vw, 50px);
}

.content {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--brand-dark);
  line-height: 1.22;
}

h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.55rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 36px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

p,
li,
dd {
  line-height: 1.62;
}

.lead {
  max-width: 850px;
  margin: 0 0 26px;
  color: #35424e;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 32px solid var(--brand-soft);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-actions,
.button-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
}

.button:hover {
  color: #fff;
  background: var(--brand-dark);
}

.button.secondary {
  color: var(--brand-dark);
  background: #fff;
  border-color: var(--brand);
}

.button.secondary:hover {
  color: #fff;
  background: var(--brand);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 30px;
}

.card,
.note,
.command-card,
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card {
  padding: 20px;
}

.card p:last-child,
.note p:last-child,
.command-card p:last-child {
  margin-bottom: 0;
}

.mode-badge,
.status-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--brand-soft);
  border-radius: 999px;
}

.status-badge.warning {
  color: var(--warning);
  background: #fff0df;
}

.status-badge.success {
  color: var(--success);
  background: #e7f5ed;
}

.note {
  margin: 18px 0;
  padding: 17px 19px;
  border-left: 5px solid var(--accent);
}

.note.security {
  border-left-color: var(--success);
}

.download-card {
  display: flex;
  flex-direction: column;
}

.download-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.hash {
  display: block;
  max-width: 100%;
  margin: 10px 0 15px;
  padding: 8px 9px;
  overflow-wrap: anywhere;
  color: #33414c;
  font-size: 0.82rem;
  background: #f1f4f6;
  border-radius: 6px;
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

code {
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  margin: 12px 0;
  padding: 14px;
  overflow-x: auto;
  color: #f2f7fa;
  background: #152b39;
  border-radius: 8px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.steps {
  padding-left: 1.4rem;
}

.steps li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.command-list {
  display: grid;
  gap: 14px;
}

.command-card {
  padding: 18px;
}

.command-card dl {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 7px 14px;
  margin-bottom: 0;
}

.command-card dt {
  color: var(--brand-dark);
  font-weight: 700;
}

.command-card dd {
  margin: 0;
}

details {
  margin: 12px 0;
  padding: 0 16px;
}

summary {
  padding: 14px 0;
  color: var(--brand-dark);
  font-weight: 700;
  cursor: pointer;
}

details > :not(summary) {
  margin-left: 0;
}

.version-entry {
  margin: 0 0 12px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 9px;
}

.address {
  font-style: normal;
  line-height: 1.65;
}

.site-footer {
  margin-top: 46px;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
}

.site-footer p {
  margin: 5px 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    min-height: auto;
  }

  .site-logo {
    width: 58px;
    height: 58px;
  }

  .hero-panel::after {
    display: none;
  }

  .layout,
  .layout.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .layout.sidebar-collapsed .sidebar {
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .layout.sidebar-collapsed .site-nav {
    display: none;
  }

  .layout.sidebar-collapsed .sidebar-toggle {
    justify-content: space-between;
  }

  .layout.sidebar-collapsed .toggle-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  main {
    padding: 22px 16px 34px;
  }

  .command-card dl {
    grid-template-columns: 1fr;
  }

  .command-card dd {
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .layout,
  .button,
  .site-nav a {
    transition: 160ms ease;
  }
}
