/* ============================================================
   TuAI Vietnam — download.css  (trang /tai-ve.html)
   Ngôn ngữ thị giác: nền tối sâu, viền 1px, một màu nhấn vàng.
   ============================================================ */

/* ---------------- hero ---------------- */
/* hero — padding-top dong nhat voi .pagehead de breadcrumb thang hang 5 trang */
.dl-hero {
  padding-top: calc(72px + clamp(32px, 4vw, 56px));
  padding-bottom: clamp(40px, 5vw, 72px);
}
.dl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.dl-hero h1 {
  max-width: 20ch;
  margin-top: 14px;
  /* v2.css 把 .h1 提到了 74px；在 555px 的栏宽里，中文「——」是 2 个全角字符，
     74px 会把破折号挤到下一行行首。收回全站标准 64px，第一段才能单行放下。 */
  font-size: clamp(30px, 4.2vw, 64px);
}
.dl-hero .lead { margin-top: 20px; max-width: 54ch; color: var(--fg-2); }

.dl-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 28px;
  font-size: 14px; color: var(--fg-2);
}
.dl-meta__item b { color: var(--fg-3); font-weight: 500; margin-right: 6px; }
.dl-meta__item span { color: var(--fg); font-variant-numeric: tabular-nums; }
.dl-meta__sep { width: 1px; height: 14px; background: var(--line-strong); }

/* cửa sổ minh hoạ */
.dl-hero__art { position: relative; }
.dl-window {
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-1));
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 420ms var(--ease);
}
.dl-hero__art:hover .dl-window { transform: perspective(1200px) rotateY(0) rotateX(0); }
.dl-window__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.dl-window__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dl-window__bar i:nth-child(1) { background: #ff5f57; }
.dl-window__bar i:nth-child(2) { background: #febc2e; }
.dl-window__bar i:nth-child(3) { background: #28c840; }
.dl-window__bar span { margin-left: 8px; font-size: 11.5px; color: var(--fg-3); font-family: var(--font-mono); }
.dl-window__body { padding: 18px 18px 20px; }
.dl-window__row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dl-dot { width: 20px; height: 20px; border-radius: 7px; background: rgba(34, 198, 255, .18); border: 1px solid rgba(34, 198, 255, .3); flex: none; }
.dl-dot--y { background: rgba(248, 192, 8, .18); border-color: rgba(248, 192, 8, .34); }
.dl-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); flex: 1; }
.dl-line--s { flex: 0 0 46%; }
.dl-window__prog {
  height: 6px; border-radius: 3px; margin-top: 18px;
  background: rgba(255, 255, 255, .06); overflow: hidden;
}
.dl-window__prog span {
  display: block; height: 100%; width: 36%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  animation: dl-prog 3.6s var(--ease) infinite;
}
@keyframes dl-prog {
  0%   { width: 8%; }
  60%  { width: 72%; }
  100% { width: 88%; }
}
.dl-window__cap { margin: 10px 0 0; font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }

/* ---------------- chọn bản cài ---------------- */
.dl-pick { padding-top: clamp(40px, 5vw, 64px); }

.dl-detect {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(34, 198, 255, .28);
  border-radius: var(--radius-1, 12px);
  background: rgba(34, 198, 255, .07);
  font-size: 14.5px;
  color: var(--fg);
}
.dl-detect__ico {
  width: 20px; height: 20px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cyan); color: #04060d;
  font-size: 12px; font-weight: 700;
}
.dl-detect p { margin: 0; }

.dl-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 740px;
  margin-inline: auto;
  grid-auto-rows: 1fr;
}
.dl-card-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.dl-card-column .dl-card {
  flex: 1;
}

@supports (grid-template-rows: subgrid) {
  .dl-card-column {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
  }
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-2, 18px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 60%), var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.dl-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.dl-card.is-match {
  border-color: rgba(248, 192, 8, .55);
  box-shadow: 0 0 0 1px rgba(248, 192, 8, .18), 0 26px 60px -30px rgba(248, 192, 8, .45);
}
.dl-card__top { display: flex; align-items: flex-start; gap: 12px; }
.dl-card__ico {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--fg);
}
.dl-card.is-match .dl-card__ico { color: var(--accent); border-color: rgba(248, 192, 8, .4); }
.dl-card__name { margin: 0; font-size: 17px; font-weight: 620; letter-spacing: -.01em; color: var(--fg); }
.dl-card__req { margin: 3px 0 0; font-size: 13px; color: var(--fg-2); }
.dl-card__badge {
  position: absolute; top: -10px; right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent); color: #1a1200;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.dl-card__specs {
  margin: 20px 0 22px;
  display: grid; gap: 9px;
  font-size: 13.5px;
}
.dl-card__specs > div { display: flex; justify-content: space-between; gap: 14px; }
.dl-card__specs dt { color: var(--fg-3); }
.dl-card__specs dd { margin: 0; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.dl-card__specs dd[data-dl="file"] { font-family: var(--font-mono); font-size: 12px; word-break: break-all; }
.dl-card__btn { margin-top: auto; }
/* trợ giúp chip Mac */
.dl-help {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2, 18px);
  background: rgba(255, 255, 255, .02);
}
.dl-help > summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px; font-weight: 560; color: var(--fg);
  list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.dl-help > summary::-webkit-details-marker { display: none; }
.dl-help > summary::before {
  content: "+";
  width: 20px; height: 20px; flex: none;
  display: grid; place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-size: 14px; color: var(--accent);
  transition: transform 240ms var(--ease);
}
.dl-help[open] > summary::before { transform: rotate(45deg); }
.dl-help__body { padding: 0 20px 20px 50px; color: var(--fg-2); font-size: 14.5px; line-height: 1.72; }
.dl-help__body ul { margin: 10px 0; padding-left: 18px; }
.dl-help__body li { margin-bottom: 6px; }
.dl-help__body b { color: var(--fg); }
.dl-help__note { margin: 12px 0 0; padding: 10px 14px; border-left: 2px solid var(--accent); background: rgba(248, 192, 8, .05); border-radius: 0 8px 8px 0; color: var(--fg-2); }

.dl-note {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  font-size: 14px; color: var(--fg-2); line-height: 1.7;
}
.dl-note b { color: var(--fg); }

/* ---------------- yêu cầu hệ thống ---------------- */
.dl-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-2, 18px);
  overflow: hidden;
  background: var(--surface);
}
.dl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dl-table th, .dl-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.dl-table thead th {
  background: rgba(255, 255, 255, .04);
  color: var(--fg-2);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.dl-table tbody th { color: var(--fg); font-weight: 560; width: 30%; }
.dl-table tbody td { color: var(--fg-2); }
.dl-table tbody tr:last-child th,
.dl-table tbody tr:last-child td { border-bottom: 0; }
.dl-table tbody tr:hover { background: rgba(255, 255, 255, .022); }

/* ---------------- ba bước ---------------- */
.dl-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.dl-step {
  padding: 24px;
  border-radius: var(--radius-2, 18px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 70%);
}
.dl-step__n {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.dl-step h3 { margin: 10px 0 8px; font-size: 17px; color: var(--fg); }
.dl-step p { margin: 0; font-size: 14.5px; color: var(--fg-2); line-height: 1.7; }
.dl-step code {
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 1px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, .07); color: var(--fg);
}

.dl-verify {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-2, 18px);
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.dl-verify__title { margin: 0 0 8px; font-size: 16px; color: var(--fg); }
.dl-verify > p { margin: 0 0 16px; font-size: 14px; color: var(--fg-2); }
.dl-code + .dl-code { margin-top: 12px; }
.dl-code__label {
  display: block; font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px;
}
.dl-code pre {
  margin: 0; padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #05080f;
  overflow-x: auto;
}
.dl-code code { font-family: var(--font-mono); font-size: 12.5px; color: #b9d9ff; white-space: pre; }

/* ---------------- changelog ---------------- */
.dl-changelog { display: grid; gap: 16px; }
.dl-rel {
  padding: 22px 24px;
  border-radius: var(--radius-2, 18px);
  border: 1px solid var(--line);
  background: var(--surface);
}
.dl-rel header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dl-rel h3 { margin: 0; font-size: 18px; color: var(--fg); font-variant-numeric: tabular-nums; }
.dl-rel time { margin-left: auto; font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.dl-rel__tag {
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; letter-spacing: .04em;
  border: 1px solid var(--line-strong); color: var(--fg-2);
}
.dl-rel__tag--new { border-color: rgba(248, 192, 8, .5); color: var(--accent); background: rgba(248, 192, 8, .08); }
.dl-rel ul { margin: 0; padding-left: 20px; color: var(--fg-2); font-size: 14.5px; line-height: 1.75; }
.dl-rel li { margin-bottom: 6px; }
.dl-rel b { color: var(--fg); }

/* ---------------- FAQ ---------------- */
.dl-faq__list { display: grid; gap: 12px; }
.dl-faq__list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-2, 18px);
  background: rgba(255, 255, 255, .022);
  transition: border-color 220ms;
}
.dl-faq__list details[open] { border-color: var(--line-strong); }
.dl-faq__list summary {
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px; font-weight: 560; color: var(--fg);
  display: flex; justify-content: space-between; gap: 16px;
}
.dl-faq__list summary::-webkit-details-marker { display: none; }
.dl-faq__list summary::after {
  content: "+"; color: var(--accent); font-size: 18px; line-height: 1;
  transition: transform 240ms var(--ease);
}
.dl-faq__list details[open] summary::after { transform: rotate(45deg); }
.dl-faq__list details p {
  margin: 0; padding: 0 22px 20px;
  font-size: 14.5px; line-height: 1.75; color: var(--fg-2);
}
.dl-faq__list b { color: var(--fg); }

/* ---------------- nhịp dọc: trang tải về xếp nhiều section liền nhau,
   giảm padding để không tạo khoảng trắng dồn cục ---------------- */
.dl-pick,
.dl-req,
.dl-steps,
.dl-notes,
.dl-faq {
  padding-block: clamp(44px, 5.5vw, 84px);
}

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .dl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dl-hero__grid { grid-template-columns: 1fr; }
  .dl-hero__art { order: -1; max-width: 520px; }
  .dl-steps__list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dl-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .dl-card-column {
    display: flex;
    grid-row: auto;
    grid-template-rows: none;
  }
  .dl-table thead th:nth-child(3),
  .dl-table tbody td:nth-child(3) { display: none; }
  .dl-table tbody th { width: 42%; }
  .dl-help__body { padding-left: 20px; }
  .dl-code pre { white-space: pre-wrap; word-break: break-all; }
  .dl-meta__sep { display: none; }
  .dl-meta { gap: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-window { transform: none; }
  .dl-window__prog span { animation: none; width: 62%; }
  .dl-card:hover { transform: none; }
}

/* ============================================================
   3. CTA nhất quán cho 3 thẻ tải
   Mặc định: cả 3 nút cùng một kiểu phụ (viền mờ).
   Chỉ thẻ được nhận diện (hoặc thẻ mặc định) mới chuyển vàng.
   => không bao giờ có 2 nút vàng, và thẻ còn lại không bị "chết".
   ============================================================ */
.dl-card__btn {
  --cta-h: 46px;
  position: relative;
  min-height: var(--cta-h);
  padding-inline: 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 620;
  letter-spacing: -.005em;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--fg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background 190ms var(--ease), border-color 190ms var(--ease),
              box-shadow 190ms var(--ease), transform 190ms var(--ease),
              color 190ms var(--ease);
}
.dl-card__btn:hover {
  background: rgba(255, 255, 255, .115);
  border-color: rgba(255, 255, 255, .34);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .8);
}
.dl-card__btn:active { transform: translateY(0); }
.dl-card__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* thẻ được đề xuất / mặc định -> nút vàng, giống nhau ở mọi thẻ */
.dl-card.is-match .dl-card__btn,
.dl-card.is-featured .dl-card__btn {
  background: linear-gradient(180deg, #ffd42a 0%, var(--accent) 55%, #e0a900 100%);
  border-color: rgba(255, 255, 255, .34);
  color: #14100a;
  font-weight: 700;
  box-shadow: 0 12px 30px -14px rgba(248, 192, 8, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.dl-card.is-match .dl-card__btn:hover,
.dl-card.is-featured .dl-card__btn:hover {
  background: linear-gradient(180deg, #ffdb54 0%, #ffc91a 55%, #ecb300 100%);
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(248, 192, 8, .82), inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* viền thẻ: is-match = khẳng định, is-featured = gợi ý nhẹ hơn */
.dl-card.is-featured {
  border-color: rgba(248, 192, 8, .3);
  box-shadow: 0 18px 44px -34px rgba(248, 192, 8, .5);
}
.dl-card.is-featured .dl-card__ico { color: var(--accent); border-color: rgba(248, 192, 8, .3); }
.dl-card.is-match .dl-card__badge,
.dl-card.is-featured .dl-card__badge { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .dl-card__btn, .dl-card__btn:hover { transform: none; }
}

/* ============================================================
   Download chooser — reference-style visual refinement

   Keep the four real release packages and the existing two-column
   pairing. The cards borrow the clearer hierarchy of the reference:
   platform heading, compact status pill, one dominant action, then
   quiet technical detail.
   ============================================================ */
.dl-cards {
  max-width: 900px;
  gap: 18px;
}
.dl-card-column {
  gap: 20px;
}
.dl-card {
  min-height: 342px;
  padding: 24px;
  overflow: visible;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, .14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015) 58%),
    #20211f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 20px 48px -34px rgba(0, 0, 0, .98);
}
.dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 28px 56px -34px rgba(0, 0, 0, 1);
}
.dl-card.is-match,
.dl-card.is-featured {
  border-color: rgba(225, 185, 92, .86);
  background:
    linear-gradient(145deg, rgba(128, 105, 70, .76), rgba(70, 61, 45, .84) 58%),
    #332e26;
  box-shadow:
    0 0 0 1px rgba(225, 185, 92, .2),
    0 20px 54px -28px rgba(248, 192, 8, .48),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}
.dl-card.is-match:hover,
.dl-card.is-featured:hover {
  border-color: rgba(255, 216, 128, .96);
  box-shadow:
    0 0 0 1px rgba(255, 216, 128, .26),
    0 28px 62px -28px rgba(248, 192, 8, .6),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

.dl-card__top {
  order: 1;
  min-height: 50px;
  padding-right: 106px;
  align-items: center;
  gap: 14px;
}
.dl-card__ico {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
}
.dl-card.is-match .dl-card__ico,
.dl-card.is-featured .dl-card__ico {
  border-color: transparent;
  color: var(--fg);
}
.dl-card__ico svg {
  width: 34px;
  height: 34px;
}
.dl-card__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.15vw, 29px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.dl-card__req {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .63);
}
.dl-card__badge {
  top: 23px;
  right: 23px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eff29b;
  color: #1d1d15;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  box-shadow: 0 8px 24px -12px rgba(239, 242, 155, .74);
}

.dl-card__btn {
  order: 2;
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .27);
  background: rgba(255, 255, 255, .025);
  color: var(--fg);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.012em;
  box-shadow: none;
}
.dl-card__btn::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  margin-left: 12px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 5-5m-5 5-5-5M5 20h14' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 5-5m-5 5-5-5M5 20h14' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform 180ms var(--ease);
}
.dl-card__btn:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 18px 32px -22px rgba(0, 0, 0, .88);
}
.dl-card__btn:hover::after {
  transform: translateY(2px);
}
.dl-card.is-match .dl-card__btn,
.dl-card.is-featured .dl-card__btn {
  border-color: rgba(255, 248, 184, .58);
  background: #fff182;
  color: #1b1b14;
  font-weight: 720;
  box-shadow:
    0 16px 34px -20px rgba(255, 239, 131, .72),
    inset 0 1px 0 rgba(255, 255, 255, .62);
}
.dl-card.is-match .dl-card__btn:hover,
.dl-card.is-featured .dl-card__btn:hover {
  border-color: rgba(255, 255, 255, .82);
  background: #fff6a5;
  color: #14140f;
  box-shadow:
    0 20px 40px -18px rgba(255, 239, 131, .82),
    inset 0 1px 0 rgba(255, 255, 255, .74);
}

.dl-card__specs {
  order: 3;
  display: block;
  margin: auto 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .17);
  font-size: 14px;
}
.dl-card__specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.dl-card__specs > div:first-child {
  display: none;
}
.dl-card__specs dt {
  color: rgba(255, 255, 255, .55);
}
.dl-card__specs dd {
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: right;
}

@media (max-width: 820px) {
  .dl-cards {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
  .dl-card-column {
    display: flex;
    grid-row: auto;
    grid-template-rows: none;
  }
}
@media (max-width: 480px) {
  .dl-card {
    min-height: 326px;
    padding: 22px;
    border-radius: 20px;
  }
  .dl-card__top {
    padding-right: 96px;
  }
  .dl-card__name {
    font-size: 22px;
  }
  .dl-card__badge {
    top: 20px;
    right: 20px;
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-card__btn:hover::after { transform: none; }
}

/* ============================================================
   Grouped platform cards

   Each card owns one primary build and a complete secondary list.
   The macOS primary is chip-aware and always mirrors one of the
   entries in its "other downloads" menu.
   ============================================================ */
.dl-card[hidden],
.dl-card__option[hidden],
.dl-card__menu[hidden] {
  display: none !important;
}

.dl-card {
  min-height: 0;
}
.dl-card.is-menu-open,
.dl-card:focus-within {
  z-index: 4;
}
.dl-card__top {
  padding-right: 112px;
}
.dl-card__req {
  order: 3;
  min-height: 25px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: 16px;
  line-height: 1.45;
}
.dl-card__specs {
  order: 4;
  display: block;
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .17);
}
.dl-card__specs > div:first-child {
  display: flex;
}
.dl-card__specs dt {
  font-size: 14px;
}
.dl-card__specs dd {
  font-size: 15px;
}

.dl-card__downloads {
  order: 5;
  margin: 22px 0 0;
  padding-top: 22px;
}
.dl-card__downloads-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  line-height: 1.4;
}
.dl-card__more {
  position: relative;
}
.dl-card__more > summary {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  color: var(--fg);
  font-size: 15.5px;
  font-weight: 620;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.dl-card__more > summary::-webkit-details-marker {
  display: none;
}
.dl-card__more > summary:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .075);
}
.dl-card__more > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dl-card__more > summary svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--ease);
}
.dl-card__more[open] > summary svg {
  transform: rotate(180deg);
}

.dl-card__menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: #292a28;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .95);
}
.dl-card__option {
  min-height: 112px;
  padding: 17px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--fg);
  text-decoration: none;
  transition: background 160ms var(--ease);
}
.dl-card__option + .dl-card__option {
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.dl-card__option:hover,
.dl-card__option:focus-visible,
.dl-card__option.is-current {
  background: rgba(255, 255, 255, .065);
}
.dl-card__option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.dl-card__option-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.dl-card__option-name,
.dl-card__option-req,
.dl-card__option-meta {
  margin: 0;
}
.dl-card__option-name {
  color: var(--fg);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
}
.dl-card__option-req {
  color: rgba(255, 255, 255, .66);
  font-size: 13.5px;
  line-height: 1.45;
}
.dl-card__option-meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: rgba(255, 255, 255, .6);
  font-size: 12.5px;
  line-height: 1.45;
}
.dl-card__option-copy .dl-card__option-file {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .4);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-card__option-arrow {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 5-5m-5 5-5-5M5 20h14' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 5-5m-5 5-5-5M5 20h14' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform 160ms var(--ease);
}
.dl-card__option:hover .dl-card__option-arrow {
  transform: translateY(2px);
}

@media (max-width: 820px) {
  .dl-card__menu {
    position: static;
    margin-top: 10px;
    box-shadow: none;
  }
}
@media (max-width: 480px) {
  .dl-card {
    min-height: 0;
  }
  .dl-card__req {
    font-size: 15px;
  }
  .dl-card__option {
    min-height: 0;
    padding: 15px;
  }
}
