/* ==================== Downloads hero ==================== */
.downloads-hero { padding: 70px 0 10px; text-align: center; }
.downloads-hero .container { max-width: 680px; }
.downloads-hero .lead { font-size: 1.08rem; color: var(--ink-soft); }
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: 14px;
}
.version-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-deep); }

/* ==================== Tier tabs ==================== */
.tier-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 44px;
  flex-wrap: wrap;
}
.tier-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 26px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tier-tab:hover { border-color: var(--blue); color: var(--ink); }
.tier-tab.active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}
.tier-tab .tier-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.6;
  margin-left: 6px;
}

.tier-panel { display: none; }
.tier-panel.active { display: block; }

/* ==================== Platform cards ==================== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 12px;
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}
.platform-card .os-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  color: var(--ink);
}
.platform-card .os-icon svg { width: 100%; height: 100%; }
.platform-card h3 { margin-bottom: 6px; }
.platform-card .os-note { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 22px; }

.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.dl-row:hover { border-color: var(--blue); }
.dl-row:last-child { margin-bottom: 0; }
.dl-row .dl-info { min-width: 0; }
.dl-row .dl-format {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.dl-row .dl-note { font-size: 0.76rem; color: var(--ink-faint); display: block; margin-top: 2px; }
.dl-row .dl-size {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  white-space: nowrap;
  margin-right: 4px;
}
.dl-row .dl-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--ink-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.dl-row .dl-btn:hover { background: var(--blue-deep); }
.dl-row .dl-btn svg { width: 16px; height: 16px; }
.dl-row.recommended { border-color: var(--blue); background: var(--blue-tint); }
.dl-row .rec-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ==================== Notes ==================== */
.dl-note {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-top: 14px;
}
.dl-note .icon-tile { flex-shrink: 0; width: 36px; height: 36px; }
.dl-note .icon-tile svg { width: 18px; height: 18px; }
.dl-note p { margin: 0; font-size: 0.89rem; color: var(--ink-soft); }
.dl-note strong { color: var(--ink); }

/* ==================== Requirements table ==================== */
.req-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
table.req { width: 100%; border-collapse: collapse; min-width: 560px; }
table.req th, table.req td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
table.req thead th { background: var(--paper-alt); font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); font-weight: 500; }
table.req tbody tr:last-child td { border-bottom: none; }
table.req td.plat { font-weight: 500; }

@media (max-width: 900px) {
  .platform-grid { grid-template-columns: 1fr; }
}
