*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-page--download {
  min-width: 320px;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--ui-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(78, 201, 176, .1), transparent 32rem),
    radial-gradient(circle at 88% 5%, rgba(110, 168, 254, .1), transparent 28rem),
    var(--ui-bg);
  font: 14px/1.4 var(--ui-font-ui);
}

.download-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 50px;
  padding: 0 clamp(14px, 3vw, 28px);
}

.download-topbar .site-brand {
  gap: 8px;
}

.download-topbar .site-brand-mark {
  width: 26px;
  height: 26px;
}

.download-topbar .site-nav {
  margin-left: auto;
  gap: 3px;
}

.download-topbar .site-nav-link {
  min-height: 29px;
  padding: 4px 8px;
  font-size: 13px;
}

.download-main {
  display: flex;
  flex-direction: column;
  width: min(1280px, calc(100% - 28px));
  height: calc(100vh - 50px);
  margin: 0 auto;
  padding: 12px 0 10px;
  overflow: hidden;
}

.download-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(22, 35, 61, .96), rgba(17, 26, 45, .9));
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  box-shadow: var(--ui-shadow);
}

.download-eyebrow {
  color: var(--ui-accent);
  font: 700 9px/1.2 var(--ui-font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.download-head h1 {
  display: inline-block;
  margin: 4px 10px 0 0;
  color: var(--ui-text);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.download-head p {
  display: inline;
  color: var(--ui-muted);
  font-size: 13px;
}

.download-stats {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.download-stat {
  --stat-color: var(--ui-accent);
  --stat-strong: var(--ui-accent-strong);
  --stat-wash: rgba(78, 201, 176, .07);
  --stat-border: rgba(78, 201, 176, .2);
  min-width: 62px;
  padding: 6px 8px;
  background: var(--stat-wash);
  border: 1px solid var(--stat-border);
  border-top: 2px solid var(--stat-color);
  border-radius: 7px;
  text-align: center;
}

.download-stat:nth-child(2) {
  --stat-color: #6ea8fe;
  --stat-strong: #a9c9ff;
  --stat-wash: rgba(110, 168, 254, .07);
  --stat-border: rgba(110, 168, 254, .2);
}

.download-stat:nth-child(3) {
  --stat-color: #f0b45b;
  --stat-strong: #ffd28b;
  --stat-wash: rgba(240, 180, 91, .07);
  --stat-border: rgba(240, 180, 91, .2);
}

.download-stat strong {
  display: block;
  color: var(--stat-strong);
  font: 700 20px/1 var(--ui-font-mono);
}

.download-stat span {
  display: block;
  margin-top: 3px;
  color: var(--ui-muted);
  font-size: 11px;
  white-space: nowrap;
}

.download-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 35px;
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(17, 26, 45, .72);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
}

.download-filters {
  display: flex;
  align-items: center;
  gap: 4px;
}

.download-filter {
  min-height: 25px;
  padding: 3px 8px;
  color: var(--ui-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 13px/1.2 var(--ui-font-ui);
  cursor: pointer;
}

.download-filter span {
  margin-left: 2px;
  color: var(--ui-faint);
  font: 11px/1 var(--ui-font-mono);
}

.download-filter:hover,
.download-filter:focus-visible,
.download-filter.is-active {
  color: var(--ui-accent-strong);
  background: rgba(78, 201, 176, .1);
  border-color: rgba(78, 201, 176, .34);
  outline: none;
}

.download-filter.is-active span {
  color: var(--ui-accent);
}

.download-verify {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ui-muted);
  font-size: 12px;
  white-space: nowrap;
}

.download-verify code {
  max-width: 230px;
  overflow: hidden;
  padding: 2px 5px;
  color: var(--ui-text-soft);
  background: rgba(11, 17, 32, .7);
  border: 1px solid var(--ui-border-soft);
  border-radius: 4px;
  font: 11px/1.3 var(--ui-font-mono);
  text-overflow: ellipsis;
}

.download-verify a {
  margin-left: 4px;
  color: var(--ui-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.download-verify a:hover,
.download-verify a:focus-visible {
  color: var(--ui-text);
  outline: none;
}

.download-resource-area {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: 9px;
}

.download-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  grid-auto-rows: minmax(64px, auto);
  gap: 6px 8px;
  overflow: hidden;
}

.download-resource {
  --resource-color: var(--ui-accent);
  --resource-strong: var(--ui-accent-strong);
  --resource-wash: rgba(78, 201, 176, .07);
  --resource-border: rgba(78, 201, 176, .25);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 51px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 51px;
  padding: 6px 9px;
  overflow: hidden;
  background: linear-gradient(112deg, var(--resource-wash), rgba(17, 26, 45, .84) 62%);
  border: 1px solid var(--resource-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.download-resource::after {
  position: absolute;
  top: -28px;
  right: -20px;
  z-index: -1;
  width: 86px;
  height: 86px;
  background: radial-gradient(circle, var(--resource-wash), transparent 68%);
  content: "";
  pointer-events: none;
}

.download-resource:hover {
  background: linear-gradient(112deg, var(--resource-wash), rgba(22, 35, 61, .94) 62%);
  border-color: var(--resource-strong);
  transform: translateY(-1px);
}

.download-resource[data-group="program"] {
  --resource-color: #4ec9b0;
  --resource-strong: #77e2ca;
  --resource-wash: rgba(78, 201, 176, .1);
  --resource-border: rgba(78, 201, 176, .28);
  border-left: 2px solid var(--resource-color);
}

.download-resource[data-group="docs"] {
  --resource-color: #6ea8fe;
  --resource-strong: #a9c9ff;
  --resource-wash: rgba(110, 168, 254, .1);
  --resource-border: rgba(110, 168, 254, .28);
  border-left: 2px solid var(--resource-color);
}

.download-resource[data-group="examples"] {
  --resource-color: #f0b45b;
  --resource-strong: #ffd28b;
  --resource-wash: rgba(240, 180, 91, .1);
  --resource-border: rgba(240, 180, 91, .28);
  border-left: 2px solid var(--resource-color);
}

.download-resource[hidden] {
  display: none;
}

.resource-type {
  position: relative;
  min-width: 0;
  padding-left: 9px;
  color: var(--resource-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.resource-type::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--resource-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--resource-wash);
  content: "";
}

.resource-type small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ui-faint);
  font-size: 11.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-main {
  min-width: 0;
}

.resource-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.resource-file code {
  min-width: 0;
  overflow: visible;
  color: var(--ui-text);
  font: 700 13px/1.25 var(--ui-font-mono);
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.resource-size {
  flex: 0 0 auto;
  padding: 1px 4px;
  color: var(--resource-strong);
  background: var(--resource-wash);
  border: 1px solid var(--resource-border);
  border-radius: 999px;
  font: 10px/1.2 var(--ui-font-mono);
  white-space: nowrap;
}

.resource-note {
  margin-top: 2px;
  color: var(--ui-faint);
  font-size: 11.5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.resource-hash {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  margin-top: 3px;
}

.resource-hash-label {
  flex: 0 0 auto;
  color: var(--resource-strong);
  font: 10px/1.2 var(--ui-font-ui);
}

.resource-hash code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ui-text-soft);
  font: 9px/1.25 var(--ui-font-mono);
  letter-spacing: .01em;
}

.resource-copy {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: var(--resource-strong);
  background: transparent;
  border: 1px solid var(--resource-border);
  border-radius: 4px;
  font: 11.5px/1.2 var(--ui-font-ui);
  cursor: pointer;
}

.resource-copy:hover,
.resource-copy:focus-visible,
.resource-copy.is-copied {
  color: var(--ui-text);
  background: var(--resource-wash);
  border-color: var(--resource-strong);
  outline: none;
}

.resource-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 7px;
  color: #071521;
  background: var(--resource-color);
  border: 1px solid var(--resource-color);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.resource-download:hover,
.resource-download:focus-visible {
  color: #071521;
  background: var(--resource-strong);
  border-color: var(--resource-strong);
  outline: none;
}

.download-empty {
  grid-column: 1 / -1;
  padding: 20px;
  color: var(--ui-muted);
  text-align: center;
}

.download-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  flex: 0 0 auto;
  margin-top: 7px;
}

.download-steps > div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: var(--ui-muted);
  background: rgba(17, 26, 45, .62);
  border: 1px solid var(--ui-border-soft);
  border-radius: 7px;
  font-size: 12px;
}

.download-steps b {
  color: var(--ui-accent);
  font: 700 11px/1 var(--ui-font-mono);
}

.download-footer {
  flex: 0 0 auto;
  padding: 7px 12px 8px;
  font-size: 12px;
}

@media (max-width: 980px) and (min-width: 821px) {
  .download-verify code {
    max-width: 160px;
  }

  .resource-hash code {
    font-size: 8px;
  }
}

@media (max-width: 820px) {
  .download-topbar {
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 4px 10px;
    min-height: 82px;
    padding: 7px 12px;
  }

  .download-topbar .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .download-main {
    width: calc(100% - 24px);
    height: calc(100vh - 82px);
    padding-top: 9px;
  }

  .download-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
  }

  .download-head h1 {
    font-size: 28px;
  }

  .download-head p {
    display: block;
    margin-top: 5px;
  }

  .download-stats {
    width: 100%;
  }

  .download-stat {
    flex: 1 1 0;
  }

  .download-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 5px 7px;
  }

  .download-filters {
    width: 100%;
  }

  .download-filter[data-filter="all"] {
    display: none;
  }

  .download-filter {
    flex: 1 1 0;
  }

  .download-verify {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    gap: 4px 6px;
    white-space: normal;
  }

  .download-verify code {
    max-width: none;
  }

  .download-verify a {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .download-resource-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .download-resource {
    grid-template-columns: 74px minmax(0, 1fr) 51px;
    min-height: 57px;
    padding: 6px 8px;
  }

  .download-steps {
    gap: 4px;
  }

  .download-steps > div {
    gap: 5px;
    padding: 5px 6px;
    font-size: 9px;
  }

  .resource-file code {
    font-size: 11.5px;
  }

  .resource-file {
    display: block;
  }

  .resource-file code {
    display: block;
  }

  .resource-size {
    display: inline-block;
    margin-top: 3px;
  }

  .resource-hash code {
    font-size: 9px;
  }

  .resource-size {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .download-topbar .site-nav-link {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 11px;
  }

  .download-main {
    width: calc(100% - 16px);
  }

  .download-resource {
    grid-template-columns: 68px minmax(0, 1fr) 49px;
  }

  .resource-hash {
    align-items: flex-start;
  }

  .resource-hash code {
    font-size: 9px;
  }

  .resource-note {
    font-size: 10.5px;
  }

  .download-steps {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .download-steps {
    display: none;
  }

  .download-resource {
    min-height: 64px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .download-resource-grid {
    gap: 4px 7px;
  }

  .download-main {
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .resource-file {
    gap: 4px;
  }

  .resource-file code {
    font-size: 12px;
  }

  .resource-size {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 9.5px;
  }

  .resource-note {
    font-size: 10.5px;
  }

  .resource-hash {
    margin-top: 2px;
  }
}
