/* ==========================================================================
   pages/download-centre.css
   Page-specific overrides only. This file must never redefine a
   component's core look (that belongs in components.css) — it may
   only add layout-specific spacing/positioning unique to this page.

   Stage 6 responsive corrections (Download Centre only). Every rule is
   scoped to this page's own components so no other page is affected.
   ========================================================================== */

/* 1. Placeholder positioning defect (document covers and CTA media):
   .img-placeholder collapsed to its icon height instead of filling the
   aspect-box's reserved ratio, leaving a large empty area with a thin band
   at its bottom. Pin it to the box. No image is added. */
.download-card__media .img-placeholder,
.cta-band__media .img-placeholder {
  position: absolute;
  inset: 0;
}

/* 2. Download cards: equal heights with the buttons on one line.
   Cards stretch to the row height; the button is pushed to the bottom of
   each card so descriptions of different lengths cannot misalign them. The
   title/description spacing was also missing (title sat on its description). */
.grid > .card.card--hover {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.download-card__media {
  margin-bottom: var(--space-4);
}
.download-card__title {
  margin-bottom: var(--space-2);
  overflow-wrap: break-word;
}
.download-card__desc {
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
}
.download-card__desc + .btn {
  margin-top: auto;
}
.download-card__media + .download-card__title ~ .btn {
  white-space: normal;
}

/* 3. "Can't Find What You're Looking For?" band: the same full-width band as the Home, About and
   Contact pages. Between 768 and 991px the text and button share the left column (button under the
   text) with the image on the right, exactly as on those pages. */
@media (min-width: 768px) and (max-width: 991px) {
  .cta-band--full .cta-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    grid-template-areas:
      "text media"
      "action media";
    column-gap: var(--space-6);
    row-gap: var(--space-4);
    align-items: center;
    justify-content: stretch;
  }
  .cta-band--full .cta-band__text {
    grid-area: text;
    max-width: none;
  }
  .cta-band--full .cta-band__action {
    grid-area: action;
    justify-self: start;
  }
  .cta-band--full .cta-band__media {
    grid-area: media;
    width: 100%;
    max-width: none;
  }
}

/* 5. Draft / placeholder disclosure. The six PDFs are placeholder documents
   pending approval; this notice says so above the cards. Existing palette
   only (yellow accent, navy text on a pale yellow tint). */
.download-notice {
  max-width: 760px;
  margin: 0 auto var(--space-6);
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(245, 180, 0, 0.55);
  border-left: 4px solid var(--color-gold-500, #f5b400);
  border-radius: var(--radius-md, 8px);
  background: rgba(245, 180, 0, 0.12);
  color: var(--color-navy-900, #0b2338);
  font-size: var(--text-sm, 0.9375rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}
.download-notice__label {
  display: block;
  margin-bottom: 2px;
}
@media (min-width: 552px) {
  .download-notice__label {
    display: inline;
    margin-right: 4px;
  }
}
