/* DOWNLOADS PAGE — downloads.php */

/* Hero content width tweak — same pattern as .talks-hero (css/talks.css) */
.downloads-hero .hero-content { max-width: 960px; }

/* Filter tabs: the shared .filter-tabs in global.css */

/* Section */
.snldl-section { padding: 40px 0; border-bottom: 1px solid var(--clr-divider); }
.snldl-section:first-of-type { padding-top: 0; }
.snldl-section:last-child { border-bottom: none; padding-bottom: 0; }
.snldl-section.is-hidden { display: none; }

.snldl-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.snldl-section-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.08);
}
.snldl-section-icon svg { width: 22px; height: 22px; stroke: var(--primary); stroke-width: 2; }
.snldl-section-head h2 {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg-primary);
  letter-spacing: -0.3px;
  margin: 0;
}
.snldl-section-intro {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-body);
  margin: 0 0 20px;
  max-width: 640px;
}

/* Tip callout (Android chipset note) */
.snldl-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 24px;
}
.snldl-tip svg { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--primary); stroke-width: 2; margin-top: 1px; }
.snldl-tip p { margin: 0; font-family: var(--p-font, 'Inter', sans-serif); font-size: 13.5px; line-height: 1.65; color: var(--fg-body); }

/* Subgroups */
.snldl-subgroup { margin-top: 26px; }
.snldl-subgroup:first-child { margin-top: 0; }
.snldl-subgroup-label {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  margin: 0 0 10px;
  padding-left: 2px;
}

/* Row list */
.snldl-list { display: flex; flex-direction: column; gap: 10px; }
.snldl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.snldl-row:hover {
  border-color: rgba(var(--accent-rgb), 0.30);
  box-shadow: 0 8px 20px rgba(10, 15, 30, 0.06);
}
.snldl-row-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.08);
}
.snldl-row-icon svg { width: 19px; height: 19px; stroke: var(--primary); stroke-width: 2; }
.snldl-row-text { flex: 1; min-width: 0; }
.snldl-row-title {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-primary);
  letter-spacing: -0.1px;
  margin: 0 0 5px;
}
.snldl-row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.snldl-badge {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
  background: var(--surface-2);
  border-radius: var(--radius-pill, 999px);
  padding: 3px 10px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.snldl-badge.is-latest { color: #ffffff; background: var(--primary); }
.snldl-row-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 12.5px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.snldl-row-date svg { width: 13px; height: 13px; stroke-width: 2; }
.snldl-download-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-pill, 999px);
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.snldl-download-btn:hover { background: var(--primary); color: #ffffff; transform: scale(1.06); }
.snldl-download-btn svg { width: 18px; height: 18px; stroke-width: 2; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .snldl-section { padding: 30px 0; }
  .snldl-section-head h2 { font-size: 20px; }
  .snldl-section-icon { width: 40px; height: 40px; border-radius: 10px; }
  .snldl-section-icon svg { width: 20px; height: 20px; }
}

@media (max-width: 599px) {
  .snldl-section { padding: 24px 0; }
  .snldl-section-head { gap: 12px; margin-bottom: 8px; }
  .snldl-section-icon { width: 36px; height: 36px; border-radius: 9px; }
  .snldl-section-icon svg { width: 18px; height: 18px; }
  .snldl-row { flex-wrap: wrap; padding: 12px 14px; }
  .snldl-row-icon { display: none; }
  .snldl-row-text { flex: 1 1 auto; }
  .snldl-download-btn { margin-left: auto; }
}
/* Tap targets — 44 px controls on touch screens */
@media (max-width: 767px), (pointer: coarse) {
  .snldl-download-btn { min-width: 44px; min-height: 44px; }
}
