/* 자료 · 앱 장 (partials/downloads.html). 관리 화면에서 올린 것만 나온다.
 *
 * ★QR 은 흰 바탕 위에 검은 칸이어야 한다. 어두운 사이트라고 색을 뒤집으면(흰 칸·검은 바탕)
 *   카메라 앱 여럿이 읽지 못한다 — 그래서 QR 칸만 흰 종이처럼 둔다.
 */
#downloads.dl { position: relative; isolation: isolate; background: #000; }
#downloads.dl::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 38% at 82% 30%, rgba(41, 151, 255, .14), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.dl-group + .dl-group { margin-top: clamp(48px, 6vw, 72px); }
.dl-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.dl-group__head h3 { margin: 0; font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -.02em; }
.dl-group__head p { margin: 0; max-width: 640px; color: #a1a1a6; font-size: 15px; line-height: 1.6; }
.dl-group__head strong { color: #f5f5f7; }

/* ── 앱 ── */
.dl-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dl-app {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: clamp(24px, 3vw, 34px); border-radius: 28px; background: #161617;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.dl-kind { display: flex; align-items: center; gap: 8px; margin: 0; color: #2997ff; font-size: 13px; font-weight: 700; }
.dl-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.dl-app h4, .dl-doc h4 { margin: 10px 0 0; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; color: #fff; }
.dl-desc { margin: 6px 0 0; color: #a1a1a6; font-size: 15px; line-height: 1.55; }
.dl-meta { margin: 12px 0 0; color: #6e6e73; font-size: 13px; font-variant-numeric: tabular-nums; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
/* ★«설치 방법» 은 버튼이다 — 테두리 없이 두면 그냥 글자로 읽혀 안 누른다. */
.dl-actions .btn--ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
#downloads { word-break: keep-all; }
.dl-qr { display: grid; justify-items: center; gap: 8px; margin: 0; text-align: center; }
.dl-qr img { display: block; width: 148px; height: 148px; padding: 8px; border-radius: 18px; background: #fff; }
.dl-qr figcaption { color: #86868b; font-size: 12px; line-height: 1.45; }
.dl-qr__get { color: #2997ff; font-size: 13px; font-weight: 600; text-decoration: none; }
.dl-qr__get:hover { text-decoration: underline; }

/* ── 브로셔 ── */
.dl-docs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dl-doc {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 18px 22px; border-radius: 20px; background: #161617; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.dl-doc h4 { margin: 0; font-size: 18px; }
.dl-doc .dl-meta { margin-top: 4px; }
.dl-doc__icon {
  display: grid; place-items: center; width: 52px; height: 62px; border-radius: 10px;
  background: linear-gradient(160deg, #2a2a2e, #1b1b1e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: #2997ff; font-size: 12px; font-weight: 800; letter-spacing: .04em;
}

@media (max-width: 640px) {
  .dl-app { grid-template-columns: 1fr; justify-items: start; }
  .dl-qr { justify-self: stretch; grid-template-columns: auto 1fr; justify-items: start; text-align: left;
           padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .dl-qr img { width: 112px; height: 112px; grid-row: span 2; }
  .dl-actions .btn { flex: 1 1 auto; justify-content: center; }
  .dl-doc { grid-template-columns: auto minmax(0, 1fr); }
  .dl-doc .btn { grid-column: 1 / -1; justify-content: center; }
}
