:root {
  color-scheme: light;
  --navy: #0d1f34;
  --blue: #1a77b5;
  --cyan: #3acde1;
  --paper: #f5f9fc;
  --ink: #172638;
  --muted: #52677d;
  --line: #d4e2ec;
  --shadow: 0 16px 40px rgba(13, 31, 52, 0.10);
}

* { box-sizing: border-box; }
html { background: #eaf2f7; font-family: "Segoe UI", system-ui, sans-serif; color: var(--ink); }
body { margin: 0; min-width: 300px; background: linear-gradient(145deg, #f8fbfd 0%, #eaf4f8 100%); }
a { color: #075d98; }
a:hover { color: #003f6b; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; padding: 16px clamp(18px, 4vw, 68px); color: white; background: var(--navy); border-bottom: 4px solid var(--cyan); }
.brand { display: flex; align-items: center; gap: 15px; color: white; text-decoration: none; }
.brand img { width: 72px; height: 72px; }
.brand strong { display: block; font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: 0.01em; }
.brand small { display: block; max-width: 600px; margin-top: 3px; color: #b9d9e9; font-size: 0.95rem; }
.language { flex: 0 0 auto; padding: 9px 14px; border: 1px solid #55758d; border-radius: 999px; color: white; text-decoration: none; }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1040px); align-items: start; gap: clamp(24px, 4vw, 58px); padding: clamp(24px, 4vw, 58px); }
.sidebar { position: sticky; top: 18px; }
#nav-toggle { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--navy); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
#site-nav { display: grid; gap: 5px; margin-top: 10px; }
#site-nav a { padding: 10px 12px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; color: var(--ink); text-decoration: none; }
#site-nav a:hover, #site-nav a.active { border-left-color: var(--cyan); background: white; color: #074f7f; }
.sidebar.collapsed { width: 54px; }
.sidebar.collapsed #nav-toggle span, .sidebar.collapsed #site-nav { display: none; }
.layout:has(.sidebar.collapsed) { grid-template-columns: 54px minmax(0, 1040px); }
main { min-width: 0; text-align: left; }
.eyebrow { margin: 0 0 8px; color: #08708f; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; color: var(--navy); font-size: clamp(2.1rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -0.04em; }
.lead { max-width: 820px; margin: 18px 0 34px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); line-height: 1.6; }
.card, .download-card { max-width: 940px; margin: 0 0 22px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.92); box-shadow: var(--shadow); }
.card h2, .download-card h2 { margin-top: 0; color: var(--navy); }
.card p, .card li, .download-card p, dd { line-height: 1.65; }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.download-card { display: flex; flex-direction: column; margin: 0; }
.download-card.primary { border-color: #7edcec; background: linear-gradient(155deg, white, #eafcff); }
.badge { align-self: flex-start; margin-bottom: 12px; padding: 4px 9px; border-radius: 999px; background: var(--cyan); color: var(--navy); font-size: 0.82rem; font-weight: 800; }
.button { display: inline-block; align-self: flex-start; margin: auto 0 14px; padding: 11px 16px; border-radius: 9px; background: var(--blue); color: white; font-weight: 800; text-decoration: none; }
.button:hover { background: var(--navy); color: white; }
.button.secondary { background: var(--navy); }
code { overflow-wrap: anywhere; }
.download-card > code, .hashes code { display: block; padding-top: 10px; border-top: 1px solid var(--line); color: #38516a; font-size: 0.72rem; }
pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 11px; background: var(--navy); color: #eafaff; white-space: pre-wrap; overflow-wrap: anywhere; }
dl { margin: 0; }
dt { margin-top: 18px; color: var(--navy); font-weight: 800; }
dd { margin: 4px 0 0; color: var(--muted); }
.version-entry { padding: 13px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
address { font-style: normal; line-height: 1.7; }
footer { padding: 24px clamp(18px, 4vw, 68px); border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 0.92rem; }
footer p { max-width: 1040px; margin: 5px 0; }

@media (max-width: 900px) {
  .download-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .layout:has(.sidebar.collapsed) { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar.collapsed { width: 100%; }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; }
  .brand img { width: 56px; height: 56px; }
  .brand small { display: none; }
  .layout { padding: 22px 16px; }
}
