/* 下载页卡片和备用通道样式。站点 CSP 要求使用外部样式表。 */
.card-copy { display: flow-root; }
.card-copy > p:last-child { margin-bottom: 22px; }

@media not all and (max-width: 740px) {
  .grid > .card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: auto 1fr auto auto;
    row-gap: 0;
  }
  .grid > .card > .button { margin-top: 0; }
  /* Older browsers still reserve the backup link's margin, line and padding. */
  .grid > .card > .button:last-child { margin-bottom: calc(20px + .78125rem * 1.5); }

  @supports (grid-template-rows: subgrid) {
    .grid > .card { grid-template-rows: subgrid; }
    .grid > .card > .button:last-child { margin-bottom: 0; }
  }
}

.card .mirror-link { display: block; margin-top: 12px; padding: 6px 4px 2px; color: #64748b; font-size: .78125rem; font-weight: 650; line-height: 1.5; text-align: center; text-decoration: underline dotted; text-underline-offset: 4px; transition: color .15s ease; }
.card .mirror-link:hover, .card .mirror-link:focus-visible { color: var(--primary); }
.card .mirror-link.recommended { color: var(--primary); font-weight: 750; text-decoration-style: solid; }
.card .button.primary.demoted { border-color: var(--line); background: #fff; color: var(--ink); box-shadow: none; }
