:root {
  --ink: #152e4c;
  --muted: #465e79;
  --blue: #175dca;
  --blue-hover: #104aab;
  --line: #cdd9e7;
  --surface: #f2f6fc;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  font: 1.0625rem/1.55 system-ui, sans-serif;
}

main {
  width: min(56rem, 100%);
  padding: clamp(2rem, 7vh, 4rem) clamp(1rem, 5vw, 2rem);
}

h1, p, dl, dd { margin: 0; }
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: clamp(1.75rem, 6vw, 3rem);
  font-size: 1.125rem;
  font-weight: 720;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .875rem;
}

.download-options {
  display: grid;
  gap: .625rem;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3.75rem;
  padding: .8rem;
  border: 1px solid var(--blue);
  border-radius: .75rem;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 690;
  text-align: center;
  text-decoration: none;
}

.download-button:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.download-button.is-detected {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.download-button:disabled {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}

.download-button svg { width: 1.25rem; height: 1.25rem; flex: none; }
.status-banner { margin-top: 1.125rem; text-align: center; color: var(--muted); }

.help {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  font-size: .9375rem;
}

details { border-bottom: 1px solid var(--line); }
summary {
  width: fit-content;
  min-height: 2.75rem;
  padding: .62rem .5rem;
  margin-inline: auto;
  color: var(--muted);
  cursor: pointer;
}

summary:hover { color: var(--blue-hover); }
.details-content { padding: .65rem .5rem 1.125rem; }
.install-list { display: grid; grid-template-columns: auto 1fr; gap: .45rem .8rem; margin-top: .75rem; }
dt, .server-config label { font-weight: 650; }
code, textarea { overflow-wrap: anywhere; }
.server-values { display: grid; gap: .5rem; }
.server-values dd { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; }
.server-config { margin-top: .9rem; }
textarea, button { font: inherit; }
textarea {
  display: block;
  width: 100%;
  margin: .35rem 0;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  resize: vertical;
}

button[data-copy] {
  min-height: 2.75rem;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #fff;
  color: var(--blue-hover);
  cursor: pointer;
}

button[data-copy]:hover { background: var(--surface); }
.copy-feedback:not(:empty) { margin-top: .5rem; color: #235942; }

a:focus-visible, .download-button:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid #a55000;
  outline-offset: 4px;
}

@media (max-width: 41rem) {
  .platform-grid { grid-template-columns: 1fr; }
  main { max-width: 28rem; }
}
