/* 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); }
