/* downloads.css — 제품군 탭(CSS-only 라디오, JS·트래커 0). base.css 뒤 로드, 토큰만.
   install_guide 의 CSS-only 탭 패턴을 동적 제품군 수(최대 8)로 일반화(nth 매핑). */
.dl-radio { position: absolute; opacity: 0; pointer-events: none; }
.dl-tablist { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 24px;
  background: var(--surface-alt); border-radius: 12px; max-width: 100%; }
.dl-tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 9px;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: background .16s ease, color .16s ease; }
.dl-tab:hover { color: var(--text); }
.dl-count { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 20px;
  background: var(--chip-bg); color: var(--muted); }
.dl-panel { display: none; }

/* n번째 라디오 체크 → n번째 탭 라벨 활성 (제품군 최대 8) */
.dl-radio:nth-of-type(1):checked ~ .dl-tablist .dl-tab:nth-child(1),
.dl-radio:nth-of-type(2):checked ~ .dl-tablist .dl-tab:nth-child(2),
.dl-radio:nth-of-type(3):checked ~ .dl-tablist .dl-tab:nth-child(3),
.dl-radio:nth-of-type(4):checked ~ .dl-tablist .dl-tab:nth-child(4),
.dl-radio:nth-of-type(5):checked ~ .dl-tablist .dl-tab:nth-child(5),
.dl-radio:nth-of-type(6):checked ~ .dl-tablist .dl-tab:nth-child(6),
.dl-radio:nth-of-type(7):checked ~ .dl-tablist .dl-tab:nth-child(7),
.dl-radio:nth-of-type(8):checked ~ .dl-tablist .dl-tab:nth-child(8) {
  background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.14); }

/* n번째 라디오 체크 → n번째 패널 표시 */
.dl-radio:nth-of-type(1):checked ~ .dl-panel:nth-of-type(1),
.dl-radio:nth-of-type(2):checked ~ .dl-panel:nth-of-type(2),
.dl-radio:nth-of-type(3):checked ~ .dl-panel:nth-of-type(3),
.dl-radio:nth-of-type(4):checked ~ .dl-panel:nth-of-type(4),
.dl-radio:nth-of-type(5):checked ~ .dl-panel:nth-of-type(5),
.dl-radio:nth-of-type(6):checked ~ .dl-panel:nth-of-type(6),
.dl-radio:nth-of-type(7):checked ~ .dl-panel:nth-of-type(7),
.dl-radio:nth-of-type(8):checked ~ .dl-panel:nth-of-type(8) { display: block; }

/* 키보드 포커스: 숨긴 라디오가 포커스되면 해당 탭 라벨에 아웃라인(a11y) */
.dl-radio:nth-of-type(1):focus-visible ~ .dl-tablist .dl-tab:nth-child(1),
.dl-radio:nth-of-type(2):focus-visible ~ .dl-tablist .dl-tab:nth-child(2),
.dl-radio:nth-of-type(3):focus-visible ~ .dl-tablist .dl-tab:nth-child(3),
.dl-radio:nth-of-type(4):focus-visible ~ .dl-tablist .dl-tab:nth-child(4),
.dl-radio:nth-of-type(5):focus-visible ~ .dl-tablist .dl-tab:nth-child(5),
.dl-radio:nth-of-type(6):focus-visible ~ .dl-tablist .dl-tab:nth-child(6),
.dl-radio:nth-of-type(7):focus-visible ~ .dl-tablist .dl-tab:nth-child(7),
.dl-radio:nth-of-type(8):focus-visible ~ .dl-tablist .dl-tab:nth-child(8) {
  outline: 2px solid var(--accent); outline-offset: 2px; color: var(--text); }

/* 구버전 릴리스 노트 접기 — 네이티브 <details>(JS 0). 최신 노트는 인라인으로 펼쳐 노출. */
.dl-notes { margin-top: 10px; }
.dl-notes > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600;
  list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
  transition: color .15s ease; }
.dl-notes > summary:hover { color: var(--text); }
.dl-notes > summary::-webkit-details-marker { display: none; }
.dl-notes > summary::before { content: "\25B8"; font-size: 11px; transition: transform .15s ease; }
.dl-notes[open] > summary::before { transform: rotate(90deg); }
.dl-notes > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px;
  border-radius: 4px; color: var(--text); }

/* ── 릴리스 카드 — 최신 버전 강조 + 출시일시·크기·다운로드 메타(아이콘 행) ── */
.rel-card { border: 1px solid var(--hairline); border-radius: 16px; padding: 20px 22px;
  background: var(--surface); box-shadow: var(--shadow-card); margin-bottom: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.rel-card:hover { border-color: var(--accent); }
/* 최신 릴리스: 액센트 테두리 + 소프트 글로우로 시선을 먼저 끈다. */
.rel-latest { border-color: var(--accent); box-shadow: 0 12px 34px var(--accent-soft); }
.rel-head { display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; }
.rel-idline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rel-vnum { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--text);
  font-variant-numeric: tabular-nums; }
.rel-latest .rel-vnum { font-size: 25px; }
.rel-dl { display: inline-flex; align-items: center; gap: 7px; }
.rel-dl svg { width: 17px; height: 17px; }
/* 메타 행 — 출시일시(첫째)·용량·다운로드 수를 아이콘과 함께 한 줄로. */
.rel-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px;
  color: var(--muted); font-size: 13px; }
.rel-metaitem { display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums; }
.rel-ic { width: 15px; height: 15px; flex: 0 0 auto; opacity: .9; }
/* SHA-256 지문 — 위변조 검증용, 얇은 구분선 위에 모노스페이스로. */
.rel-sha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px;
  padding-top: 13px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--muted); }
.rel-sha-k { font-weight: 700; letter-spacing: .04em; color: var(--text); flex: 0 0 auto; }
.rel-sha code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all; color: var(--muted); min-width: 0; }
.rel-notes-body { margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--hairline); font-size: 14px; }
