/* =============================================================
   download/download.css
   Uses the site's existing color tokens:
     #1a1a3e  — dark navy  (navbar/header backgrounds)
     #fdbb30  — gold       (primary accent, selections)
     #6666ff  — blue-purple (link accent used site-wide)
     #9a2732  — deep red   (used in style.css for emphasis)
   ============================================================= */

/* ── Page layout ─────────────────────────────────────────────── */
/* Override the site-wide body { text-align: center !important } so that
   all text on this page is left-aligned by default. Individual elements
   that genuinely need centering (badge, date column) opt in explicitly. */
.download-page,
.download-page p,
.download-page li,
.download-page td,
.download-page th,
.download-page label,
.download-page h2,
.download-page h3,
.download-page h4,
.download-page span {
  text-align: left !important;
}

.download-page {
  padding: 40px 15px 60px;
}

/* Columns that should stay centred even with the override above */
.dl-table .text-center,
.dl-table .text-center * {
  text-align: center !important;
}

/* ── Heading block ───────────────────────────────────────────── */
.dl-heading {
  text-align: left;
  margin-bottom: 32px;
}

.dl-heading .section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a3e;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.dl-heading .section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #fdbb30;
  border-radius: 2px;
}

.dl-subhead {
  color: #555;
  margin-top: 12px;
  font-size: 0.95rem;
  /* max-width: 620px; */
  margin-left: auto;
  margin-right: auto;
}

/* ── Table wrapper ───────────────────────────────────────────── */
.dl-table-wrap {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 36px;
}

/* ── Table ───────────────────────────────────────────────────── */
.dl-table {
  margin-bottom: 0;
  font-size: 0.92rem;
  border-collapse: collapse;
}

/* Header row — dark navy matching reference image */
.dl-table thead tr {
  background-color: #1a1a3e;
  color: #ffffff;
}

.dl-table thead th {
  padding: 14px 16px;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
}

/* Body rows */
.dl-table tbody tr {
  background-color: #ffffff;
  transition: background-color 0.15s ease;
}

.dl-table tbody tr:nth-child(even) {
  background-color: #f8f6ff;   /* very light tint of the blue-purple */
}

.dl-table tbody tr:hover {
  background-color: #fff7e0;   /* warm gold tint on hover */
}

.dl-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-top: 1px solid #e8e6f0;
  color: #2c2c2c;
}

/* ── Filename column ─────────────────────────────────────────── */
.dl-filename {
  min-width: 180px;
}

.dl-link {
  color: #6666ff;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.dl-link:hover {
  color: #1a1a3e;
  text-decoration: underline;
}

.dl-icon {
  margin-right: 6px;
  color: #9a2732;
  font-size: 1rem;
}

/* ── Download button ─────────────────────────────────────────── */
.btn-dl {
  background-color: #fdbb30;
  border: none;
  color: #1a1a3e;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-dl:hover,
.btn-dl:focus {
  background-color: #1a1a3e;
  color: #fdbb30;
  text-decoration: none;
}

.btn-dl .fa {
  margin-right: 4px;
}

/* ── Download count badge ────────────────────────────────────── */
.dl-count {
  white-space: nowrap;
}

.dl-badge {
  background-color: #1a1a3e;
  color: #fdbb30;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

/* ── Date column ─────────────────────────────────────────────── */
.dl-date {
  white-space: nowrap;
  color: #555;
  font-size: 0.85rem;
}

/* ── Description column ──────────────────────────────────────── */
.dl-desc {
  color: #444;
  line-height: 1.5;
  min-width: 200px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.dl-empty {
  background-color: #fff7e0;
  border-left: 4px solid #fdbb30;
  color: #5a4300;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* ── Info box (mirrors reference "Next Release" section) ──────── */
.dl-info-box {
  background-color: #f4f3fb;
  border-top: 4px solid #1a1a3e;
  border-radius: 0 0 6px 6px;
  padding: 24px 28px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.dl-info-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a3e;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fdbb30;
  display: inline-block;
}

.dl-info-list {
  padding-left: 20px;
  margin-bottom: 0;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.8;
}

.dl-info-list li {
  margin-bottom: 6px;
}

.dl-info-list a {
  color: #6666ff;
  text-decoration: none;
}

.dl-info-list a:hover {
  text-decoration: underline;
  color: #1a1a3e;
}

/* ── Installation Guide ──────────────────────────────────────── */
.dl-install-guide {
  background: #ffffff;
  border: 1px solid #e8e6f0;
  border-top: 4px solid #fdbb30;
  border-radius: 0 0 6px 6px;
  padding: 28px 32px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}

.dl-install-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a3e;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fdbb30;
  display: inline-block;
}

/* Numbered steps list */
.dl-steps {
  padding-left: 24px;
  margin-bottom: 0;
  counter-reset: step-counter;
  list-style: none;
}

.dl-steps > li {
  position: relative;
  padding: 10px 0 10px 12px;
  border-left: 3px solid #e8e6f0;
  margin-bottom: 18px;
  font-size: 0.93rem;
  color: #333;
  line-height: 1.65;
  counter-increment: step-counter;
}

.dl-steps > li::before {
  content: counter(step-counter);
  position: absolute;
  left: -22px;
  top: 8px;
  width: 26px;
  height: 26px;
  background: #1a1a3e;
  color: #fdbb30;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dl-step-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a3e;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* SmartScreen callout box */
.dl-smartscreen-alert {
  background: #fff8e1;
  border: 1px solid #fdbb30;
  border-left: 5px solid #fdbb30;
  border-radius: 4px;
  padding: 18px 20px 14px;
  margin-top: 10px;
  font-size: 0.92rem;
  color: #3a2800;
}

.dl-smartscreen-header {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a3e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dl-smartscreen-header .fa {
  color: #fdbb30;
  font-size: 1.1rem;
}

.dl-smartscreen-steps {
  margin: 8px 0 10px 20px;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.9;
}

.dl-smartscreen-steps li {
  margin-bottom: 2px;
}

.dl-smartscreen-note {
  margin: 8px 0 0;
  font-style: italic;
  color: #5a4300;
  font-size: 0.88rem;
}

/* Help line at the bottom of the guide */
.dl-install-help {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #555;
}

.dl-install-help .fa {
  color: #6666ff;
}

.dl-install-help a {
  color: #6666ff;
  text-decoration: none;
}

.dl-install-help a:hover {
  text-decoration: underline;
  color: #1a1a3e;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 767px) {
  .dl-table thead th:nth-child(5),
  .dl-table tbody td:nth-child(5) {
    display: none;          /* hide description on small screens */
  }

  .dl-heading .section-heading {
    font-size: 1.5rem;
  }

  .dl-info-box {
    padding: 18px 16px;
  }

  .dl-install-guide {
    padding: 20px 16px 18px;
  }

  .dl-steps {
    padding-left: 20px;
  }

  .dl-smartscreen-alert {
    padding: 14px 14px 10px;
  }
}
