/* Shelves download page. Builds on the shared tokens in style.css. */
.dl-shell {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.dl-shell::before {
  content: "";
  position: absolute;
  inset: -140px -30vw auto -30vw;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(44% 58% at 22% 18%, var(--wash-a) 0%, transparent 72%),
    radial-gradient(40% 52% at 80% 34%, var(--wash-b) 0%, transparent 72%);
  opacity: 0.72;
}

.dl-wrap {
  width: 100%;
  max-width: 600px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 24px;
}

.dl-hero {
  text-align: center;
  padding: 12px 0 44px;
}
.dl-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dl-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.dl-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--well);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dl-sub {
  margin: 0 auto 30px;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--secondary);
}

.dl-primary {
  display: flex;
  justify-content: center;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1), opacity 150ms ease;
}
.dl-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .dl-btn:hover {
    transform: translateY(-1px);
    opacity: 0.94;
  }
}
.dl-btn:active {
  transform: scale(0.97);
}

.dl-helper {
  margin-top: 14px;
  min-height: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--tertiary);
}
.dl-helper a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.dl-helper a:hover {
  text-decoration: underline;
}
.dl-dot {
  color: var(--tertiary);
  opacity: 0.6;
}

.dl-others {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.dl-others-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tertiary);
}
.dl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.dl-row:first-child {
  border-top: none;
}
.dl-row__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}
.dl-row__icon {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
}
.dl-row__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.dl-row__meta {
  font-size: 14px;
  color: var(--tertiary);
}
.dl-row__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 14px;
}
.dl-row__actions a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.dl-row__actions a:hover {
  text-decoration: underline;
}
.dl-row__actions a.dl-row__alt {
  color: var(--secondary);
  font-weight: 500;
}
.dl-row__actions a.dl-row__alt:hover {
  color: var(--ink);
}
.dl-row__soon {
  color: var(--tertiary);
  font-weight: 500;
}

@media (max-width: 480px) {
  .dl-main {
    padding-top: 24px;
  }
  .dl-hero {
    padding-bottom: 36px;
  }
  .dl-sub {
    font-size: 16px;
  }
  .dl-row {
    padding: 13px 0;
  }
  .dl-row__meta {
    display: none;
  }
}
