.download-page {
  max-width: 860px;
}

main.download-view > :not(.download-page) {
  display: none !important;
}

.download-intro {
  max-width: 650px;
}

.download-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 9vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 400;
}

.download-intro > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.ministry-showcase {
  margin: 25px 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ministry-showcase img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.ministry-showcase figcaption {
  padding: 14px 16px 15px;
}

.ministry-showcase figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.ministry-showcase figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.download-hero {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  margin: 26px 0 18px;
  padding: 20px;
  color: #fffdf8;
  background: #173f35;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-app-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #fffdf8;
  color: #173f35;
  border-radius: 17px;
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
}

.download-hero h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 400;
}

.download-hero p {
  margin: 0;
  color: #dce7e1;
  font-size: 11px;
  line-height: 1.45;
}

.download-install-action {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 43px;
  margin-top: 4px;
  color: #173f35;
  background: #fffdf8;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.download-install-action:disabled {
  opacity: .72;
  cursor: default;
}

.download-status {
  grid-column: 1 / -1;
  margin: -2px 2px 0 !important;
  color: #d5b47b !important;
  font-size: 10px !important;
}

.download-guides {
  display: grid;
  gap: 10px;
}

.download-guide {
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.download-guide-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.download-guide-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  color: var(--green-2);
  background: var(--sage);
  border-radius: 50%;
}

.download-guide h2 {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
}

.download-guide ol,
.download-guide ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.download-guide li + li {
  margin-top: 5px;
}

.download-note {
  margin-top: 12px;
  padding: 13px 15px;
  color: var(--muted);
  background: color-mix(in srgb, var(--sage) 55%, transparent);
  border-left: 3px solid var(--green-2);
  font-size: 11px;
  line-height: 1.55;
}

@media (min-width: 680px) {
  .ministry-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, .75fr);
    align-items: stretch;
  }

  .ministry-showcase figcaption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
  }

  .download-hero {
    grid-template-columns: 64px 1fr auto;
    padding: 23px;
  }

  .download-app-icon {
    width: 64px;
    height: 64px;
  }

  .download-install-action {
    grid-column: auto;
    width: auto;
    min-width: 150px;
    padding: 0 18px;
    margin: 0;
  }

  .download-status {
    grid-column: 2 / -1;
  }

  .download-guides {
    grid-template-columns: 1fr 1fr;
  }

  .download-guide:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .bottom-nav button {
    font-size: 8px;
  }
}
