/* 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;
  }
}


/* ===== PDF preview modal (2026-11-08) ==========================
   Rendered only by assets/js/pdf-preview.js; with JS off this adds nothing. */

html.pdfm-open { overflow: hidden; }

.pdfm[hidden] { display: none; }

.pdfm {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pdfm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 26, 54, .62);
  backdrop-filter: blur(2px);
}

.pdfm__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  height: min(88vh, 920px);
  max-height: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(3, 26, 54, .35);
  overflow: hidden;
}

.pdfm__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  align-items: center;
  padding: 16px 18px 14px 20px;
  border-bottom: 1px solid #e2ecf3;
  background: linear-gradient(180deg, #f7fbfe, #fff);
}

.pdfm__eyebrow {
  grid-column: 1;
  color: #7d93a6;
  font: 800 10.5px/1.2 Manrope, Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pdfm__title {
  grid-column: 1;
  margin: 0;
  color: #031a36;
  font: 700 15.5px/1.35 Manrope, Arial, sans-serif;
}

.pdfm__close {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 34px;
  height: 34px;
  background: #f0f4f8;
  border: 1px solid #d7e3ef;
  border-radius: 6px;
  color: #24465f;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.pdfm__close:hover,
.pdfm__close:focus-visible {
  background: #0c638d;
  border-color: #0c638d;
  color: #fff;
}

.pdfm__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 320px;
  background: #eef2f6;
}

.pdfm__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  background: #eef2f6;
}

.pdfm__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6f80;
  font: 600 12.5px/1.4 Manrope, Arial, sans-serif;
  letter-spacing: .04em;
}

/* display:flex above would otherwise win over the [hidden] attribute */
.pdfm__spinner[hidden] {
  display: none;
}

.pdfm__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #e2ecf3;
  background: #fff;
}

.pdfm__dl,
.pdfm__open {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 4px;
  font: 700 12.5px/1.3 Manrope, Arial, sans-serif;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}

.pdfm__dl {
  background: #e8b13c;
  border: 1px solid #e8b13c;
  color: #031a36;
}

.pdfm__dl:hover,
.pdfm__dl:focus-visible {
  background: #f0bc4a;
  border-color: #f0bc4a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 177, 60, .38);
}

.pdfm__open {
  background: #fff;
  border: 1px solid #cfdae6;
  color: #24465f;
}

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

@media (max-width: 760px) {
  .pdfm { padding: 0; }
  .pdfm__panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pdfm__close, .pdfm__dl, .pdfm__open { transition: none; }
  .pdfm__dl:hover, .pdfm__open:hover { transform: none; }
}
