/* Downloads panel — style V4 "compact toolbar" (2026-11-08).
   Chosen from five rendered variants: a low, grey, borderless strip that keeps the
   page calm and lets the gold primary button carry the emphasis.

   Interaction: every label is a target, so all of them get a hover/focus state —
   a 1px lift, a shadow, and a colour shift; the primary button warms up and its
   download arrow travels. Transitions are disabled under prefers-reduced-motion.

   Markup and class names are unchanged; the position/width/structure contract is
   enforced by seo/tools/downloads_lock.py. */

.dl-section {
  padding: 14px 0 2px;
}

.dl-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #eef2f6;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.dl-copy {
  flex: 1 1 330px;
  min-width: 260px;
}

.dl-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  color: #031a36;
  font: 800 12.5px/1.2 Manrope, Arial, sans-serif;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.dl-title::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: no-repeat center/14px 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c638d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='M7 11l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
}

.dl-lead {
  margin: 0;
  color: #5a6f80;
  font-size: 12px;
  line-height: 1.5;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ---- the labels ------------------------------------------------------- */

.dl-btn {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #cfdae6;
  border-radius: 4px;
  color: #24465f;
  text-decoration: none;
  font: 700 11.5px/1.3 Manrope, Arial, sans-serif;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* the label itself gets an underline that grows from the left */
.dl-btn:not(.dl-btn--primary)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: .55;
  transition: transform .22s ease;
}

.dl-btn:hover,
.dl-btn:focus-visible {
  background: #fff;
  border-color: #0c638d;
  color: #0c638d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 99, 141, .16);
}

.dl-btn:not(.dl-btn--primary):hover::after,
.dl-btn:not(.dl-btn--primary):focus-visible::after {
  transform: scaleX(1);
}

.dl-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(12, 99, 141, .14);
}

.dl-btn--primary {
  padding: 9px 16px;
  background: #e8b13c;
  border-color: #e8b13c;
  color: #031a36;
  font-size: 12px;
}

/* arrow sits after the label and travels down a little on hover: a download
   cue with no layout shift */
.dl-btn--primary::after {
  content: "\2193";
  display: inline-block;
  margin-left: 6px;
  font-weight: 800;
  transition: transform .2s ease;
}

.dl-btn--primary:hover,
.dl-btn--primary:focus-visible {
  background: #f0bc4a;
  border-color: #f0bc4a;
  color: #031a36;
  box-shadow: 0 6px 16px rgba(232, 177, 60, .38);
}

.dl-btn--primary:hover::after,
.dl-btn--primary:focus-visible::after {
  transform: translateY(2px);
}

.dl-btn--primary:active {
  background: #dfa62f;
  border-color: #dfa62f;
}

/* ---- many-documents pages -------------------------------------------- */

.dl-panel--stack {
  flex-direction: column;
  align-items: stretch;
}

.dl-panel--stack .dl-copy {
  flex: 0 0 auto;
  min-width: 0;
}

.dl-panel--stack .dl-actions {
  justify-content: flex-start;
}

.dl-more {
  flex-basis: 100%;
  margin-top: 0;
}

.dl-more > summary {
  display: inline-block;
  padding: 6px 2px;
  color: #0c638d;
  font: 700 11.5px/1.3 Manrope, Arial, sans-serif;
  text-decoration: underline;
  cursor: pointer;
  list-style: none;
  transition: color .18s ease;
}

.dl-more > summary:hover {
  color: #031a36;
}

.dl-more > summary::-webkit-details-marker {
  display: none;
}

.dl-more[open] > summary {
  margin-bottom: 8px;
}

.dl-more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

/* ---- small screens ---------------------------------------------------- */

@media (max-width: 760px) {
  .dl-panel {
    padding: 14px;
    gap: 12px;
  }

  .dl-actions {
    width: 100%;
  }

  .dl-btn {
    flex: 1 1 auto;
    text-align: center;
    white-space: normal;
  }

  .dl-btn:not(.dl-btn--primary)::after {
    display: none;
  }
}

/* ---- respect the user's motion preference ---------------------------- */

@media (prefers-reduced-motion: reduce) {
  .dl-btn,
  .dl-btn::after,
  .dl-btn--primary::before,
  .dl-more > summary {
    transition: none;
  }

  .dl-btn:hover,
  .dl-btn:focus-visible,
  .dl-btn--primary:hover,
  .dl-btn--primary:focus-visible {
    transform: none;
  }
}
