/* 다운로드 페이지 — 사이트 토큰(styles.css :root)·알약 단추(.pill) 위에. 클래스는 d- 접두(사이트 .ghost·.wrap 같은 이름과 겹치지 않게) */
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.d-main { padding-block: clamp(28px, 5vw, 56px) 80px; min-height: 70vh; }
.d-main .wrap { max-width: 960px; }
.d-muted { color: var(--muted); }
.d-eyebrow { font-size: 13px; font-weight: 600; color: var(--live-deep); }
.d-head h1 { margin-top: 4px; font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.d-lead { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

/* 로그인 전 */
.d-login { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.d-login > p:first-child { max-width: 560px; font-size: 15px; line-height: 1.6; }
.d-gbtn { min-height: 44px; display: flex; align-items: center; }

/* 로그인 뒤 */
.d-auth { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 24px; font-size: 14px; color: var(--ink-2); }
.d-auth strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.d-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.d-link:focus-visible { outline: 2px solid var(--live-deep); outline-offset: 2px; }

.d-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.d-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: clamp(20px, 4vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.d-card.first { border-color: var(--live); }
.d-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.d-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-card h2 { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.d-beta { padding: 2px 9px; border-radius: 999px; background: #fdebd9; color: var(--live-deep); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.d-req { font-size: 14px; color: var(--ink-2); }
.d-ver { font-size: 13px; color: var(--muted); }
.d-card .pill { margin-top: 4px; }
.d-card .pill[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.d-soon { margin-top: 4px; min-height: 52px; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.d-notes { margin-top: 6px; padding-left: 18px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.d-notes li + li { margin-top: 4px; }
.d-msg { min-height: 1.5em; margin-top: 14px; font-size: 14px; color: var(--ink-2); }

.d-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; font-size: 12px; color: var(--muted); }
.d-foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.d-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.d-foot a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .d-cards { grid-template-columns: 1fr; }
}
