/* The release details rise out of the page, then dissolve into open content. */
.release-column {
  padding-top: 70px;
  align-self: start;
}

.release-card {
  z-index: 1;
  border: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .94) 55%,
    rgba(255, 255, 255, .86) 76%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: none;
  padding-bottom: 4px;
}

.release-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #e1e7ef;
  border-radius: inherit;
  box-shadow: 0 9px 28px rgba(25, 38, 58, .11);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, .75) 69%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, .75) 69%, transparent 98%);
}

.release-card > * {
  position: relative;
}

.torrent-button {
  background: #1e2932;
  transition: background-color .18s ease;
}

.torrent-button:hover {
  background-color: #293b45;
  transform: none;
}

.release-topline {
  height: 20px;
}

.card-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  color: #53657a;
  font-size: 13px;
  font-weight: 600;
  transition: color .15s;
}

.card-share .icon {
  width: 16px;
  height: 16px;
}

.card-share:hover {
  color: #315f27;
}

.card-share:focus-visible {
  outline: 2px solid #76b900;
  outline-offset: 4px;
}

.content-dialog .share-summary {
  color: #263746;
  font-size: 15px;
  font-weight: 650;
}

.share-link-field {
  display: block;
  margin-top: 18px;
  color: #667789;
  font-size: 12px;
}

.share-link-field input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #dbe3e9;
  border-radius: var(--radius-control);
  background: #f7f9fa;
  color: #304458;
  font-size: 13px;
}

.share-targets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.share-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  color: #34485a;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.share-target-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-round);
  background: #f0f4f2;
  color: #315b44;
  transition: background-color .15s;
}

.share-target:hover .share-target-icon {
  background: #e1ede3;
}

.share-target-icon .icon {
  width: 21px;
  height: 21px;
}

.content-dialog .share-local-note,
.content-dialog .share-status {
  margin-top: 18px;
  color: #718093;
  font-size: 12px;
  line-height: 1.45;
}

.content-dialog .share-status:empty {
  display: none;
}

.hash-row {
  border-bottom: 0;
}

.release-provenance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 16px;
  padding: 8px 0 2px;
  color: #66788a;
  font-size: 11px;
  line-height: 1.45;
}

.release-provenance p {
  margin: 0;
}

.release-provenance strong {
  color: #364b59;
  font-weight: 650;
}

.release-demo-label {
  margin-left: 3px;
  color: #82919d;
}

.release-provenance a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #526a7b;
  font-weight: 600;
  transition: color .16s ease;
}

.release-provenance a:hover,
.release-provenance a:focus-visible {
  color: #315f27;
}

.release-provenance .icon {
  width: 13px;
  height: 13px;
}

/* Align the card divider above the swarm with the release tabs underline. */
@media (min-width: 901px) {
  .release-topline {
    margin-bottom: 15px;
  }

  .release-facts {
    row-gap: 16px;
    margin-top: 18px;
    margin-bottom: 22px;
  }
}

@media (min-width: 901px) and (max-width: 1320px) {
  .release-card {
    padding-top: 25px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .release-facts {
    row-gap: 22px;
  }
}

@media (max-width: 900px) {
  .release-column {
    padding-top: 0;
  }
}

@media (max-width: 540px) {
  .release-card {
    padding-bottom: 4px;
  }

}
