/* The PDF download card (templates/default/partials/_download_card.jinja): a first-page thumbnail that is the link,
   beside the title, file name, page count and size, a blurb, and a text link. Square corners and 1px hairlines, as
   everywhere else on the site. Colors come from whichever system the page carries (.site-page or .offerings-page),
   so light and dark both follow the theme. */
.dl-card {
  --dl-ink: var(--site-ink, var(--offer-ink, #0b1f3b));
  --dl-muted: var(--site-muted, var(--offer-muted, #4b5f75));
  --dl-rule: var(--site-rule, var(--offer-rule, #d1dde8));
  --dl-panel: var(--site-panel, var(--offer-panel, #ffffff));
  --dl-link: var(--site-link, var(--offer-link, #2f5d8c));
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  max-width: 44rem;
  padding: 1.1rem;
  border: 1px solid var(--dl-rule);
  border-radius: 0;
  background: var(--dl-panel);
  color: var(--dl-ink);
}
.dl-thumb {
  flex: none;
  display: block;
  width: 144px;
  line-height: 0;
  border: 1px solid var(--dl-rule);
  background: #ffffff;
}
.dl-thumb img { display: block; width: 100%; height: auto; }
.dl-thumb:hover { border-color: var(--dl-link); }
.dl-thumb:focus-visible, .dl-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.dl-body { min-width: 0; }
.dl-title { margin: 0; color: var(--dl-ink); font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.dl-file { margin: 0.4rem 0 0; }
.dl-filename {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dl-muted);
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.dl-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0; margin: 0.4rem 0 0; color: var(--dl-link); font-size: 0.8rem; font-weight: 700; }
.dl-meta span + span::before { content: "\00b7"; margin: 0 0.55rem; font-weight: 400; }
.dl-blurb { margin: 0.65rem 0 0; color: var(--dl-muted); font-size: 0.9rem; line-height: 1.55; }
.dl-link {
  display: inline-block;
  margin-top: 0.8rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--dl-link);
  color: var(--dl-link);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}
.dl-link:hover { color: var(--dl-ink); border-color: var(--dl-ink); }
.dl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dl-card-story { margin-top: 1.65rem; }
[data-report-row] { scroll-margin-top: 6rem; }

/* Phones: the thumbnail stays beside the text, at 96 px. */
@media (max-width: 480px) {
  .dl-card { gap: 0.9rem; padding: 0.8rem; }
  .dl-thumb { width: 96px; }
  .dl-title { font-size: 1rem; }
  .dl-blurb { font-size: 0.86rem; }
}
