/* ═══════════════════════════════════════════════════════
   DOWNLOADS PAGE  |  #2b4f82 / #b8d6ed
   ═══════════════════════════════════════════════════════ */

[data-page="downloads"] {
  --page-primary:   #2b4f82;
  --page-secondary: #b8d6ed;
}
body[data-page="downloads"] { background: #fff; }

[data-page="downloads"] .navbar,
[data-page="downloads"] .navbar.scrolled { background: #2b4f82; }
[data-page="downloads"] .mob-nav          { background: #2b4f82; }

/* ── HERO ──────────────────────────────────────────────── */
.dl-hero {
  background: var(--page-primary);
  padding: 80px 40px 72px;
}
.dl-hero-inner { max-width: 740px; margin: 0 auto; text-align: center; }
.dl-hero-label {
  display: block; font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: #fff; margin-bottom: 28px; line-height: 1.2;
  letter-spacing: -.02em;
}
.dl-hero-label span {
  display: block; font-size: 1rem; font-weight: 400;
  color: rgba(184,214,237,.7); margin-top: 6px; letter-spacing: 0;
}
.dl-search-wrap {
  position: relative; max-width: 560px; margin: 0 auto 16px;
}
.dl-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: rgba(43,79,130,.5); pointer-events: none;
}
.dl-search-input {
  width: 100%; padding: 14px 18px 14px 46px;
  font-size: 1rem; font-family: var(--font);
  border: none; border-radius: 6px;
  background: #fff; color: #1a1a1a;
  outline: none; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: box-shadow .2s;
}
.dl-search-input:focus { box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.dl-search-input::placeholder { color: #aaa; }
.dl-hero-sub { font-size: 0.875rem; color: rgba(184,214,237,.6); }

/* ── CATEGORY GRID ─────────────────────────────────────── */
.dl-categories { background: #fff; padding: 72px 0 80px; }
.dl-categories-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}

.dl-card {
  padding: 0; border-top: 2px solid transparent;
  transition: border-color .2s;
}
.dl-card:hover { border-top-color: var(--page-primary); }

/* Icon */
.dl-card-icon {
  width: 44px; height: 44px;
  color: rgba(124,152,182,1);
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.dl-card-icon svg { width: 36px; height: 36px; }
.dl-card-icon--img img {
  width: 44px; height: 44px; object-fit: contain;
}

.dl-card-title {
  font-size: 1.0625rem; font-weight: 700; color: var(--navy);
  margin-bottom: 18px; line-height: 1.3;
}

.dl-card-links {
  list-style: none; padding: 0; margin: 0 0 18px;
}
.dl-card-links li {
  border-bottom: 1px solid rgba(43,79,130,.1);
}
.dl-card-links li:first-child { border-top: 1px solid rgba(43,79,130,.1); }
.dl-card-links a {
  display: block; padding: 9px 0;
  font-size: 0.9rem; color: var(--page-primary);
  text-decoration: none; line-height: 1.45;
  transition: color .15s, padding-left .15s;
}
.dl-card-links a:hover { color: #1e3a63; padding-left: 6px; }

.dl-card-more {
  display: inline-block; font-size: 0.9rem; font-weight: 600;
  color: var(--page-primary); text-decoration: none;
  transition: color .15s;
}
.dl-card-more:hover { color: #1e3a63; text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────── */
[data-page="downloads"] .footer,
[data-page="downloads"] .footer-cta,
[data-page="downloads"] .footer-nav  { background: #1e3a63; }
[data-page="downloads"] .footer-bottom { background: #162e52; }
[data-page="downloads"] .footer-link   { color: rgba(255,255,255,.6); }
[data-page="downloads"] .footer-link:hover { color: #fff; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dl-categories-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dl-categories-inner { grid-template-columns: 1fr; padding: 0 20px; }
  .dl-hero { padding: 60px 20px 56px; }
}
