/* A working collection: previews first, file information and actions together. */
.design-editorial .download-hero {
  padding: 26px 0 30px;
  background: transparent;
  border: 0;
}
.design-editorial .download-hero .breadcrumbs { margin-bottom: 26px; }
.design-editorial .download-hero-copy { display: block; }
.design-editorial .download-hero .eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font: 500 12px/1.7 var(--sans);
  letter-spacing: .05em;
}
.design-editorial .download-hero h1 {
  margin: 0 0 14px;
  font: 500 clamp(32px, 3.1vw, 44px)/1.3 var(--serif);
  letter-spacing: 0;
  text-wrap: balance;
}
.design-editorial .download-hero-copy > div > p:last-child {
  max-width: 58em;
  margin-bottom: 0;
  color: var(--muted);
  font: 400 15px/1.85 var(--sans);
}
.design-editorial .download-library { padding-top: 0; padding-bottom: 64px; }
.design-editorial .download-toolbar {
  align-items: center;
  gap: 12px 24px;
  margin: 0 0 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.design-editorial .download-filters { align-items: stretch; gap: 0 24px; }
.design-editorial .download-filters button {
  position: relative;
  min-height: 56px;
  padding: 13px 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font: 500 14px/1.7 var(--sans);
}
.design-editorial .download-filters button[aria-pressed="true"] {
  background: transparent;
  color: var(--ink);
}
.design-editorial .download-filters button[aria-pressed="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}
.design-editorial .download-filters button:hover { color: var(--accent); }
.design-editorial .download-filter-count {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}
.design-editorial .download-count {
  margin: 0;
  padding-block: 12px;
  font: 400 12px/1.6 var(--sans);
  color: var(--muted);
}
.design-editorial .download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
}
.design-editorial .download-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.design-editorial .download-card:target {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  box-shadow: none;
}
.design-editorial .download-art {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}
.design-editorial .download-art img,
.design-editorial .download-art-wallpaper:not(.download-art-portrait) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  transition: none;
}
.design-editorial .download-card:hover .download-art img { transform: none; }
.design-editorial .download-card-body { padding: 17px 0 10px; }
.design-editorial .download-category {
  position: static;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font: 400 12px/1.7 var(--sans);
  letter-spacing: 0;
}
.design-editorial .download-card h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font: 600 19px/1.5 var(--sans);
  letter-spacing: 0;
}
.design-editorial .download-description {
  min-height: 0;
  margin: 0 0 18px;
  color: var(--muted);
  font: 400 13px/1.8 var(--sans);
}
.design-editorial .download-meta {
  display: grid;
  grid-template-columns: .65fr 1.4fr 1fr;
  gap: 10px;
  margin: auto 0 15px;
  color: var(--ink);
  font: 400 12px/1.7 var(--sans);
  font-variant-numeric: tabular-nums;
}
.design-editorial .download-meta > div { min-width: 0; }
.design-editorial .download-meta dt { margin: 0 0 3px; color: var(--muted); font-size: 11px; }
.design-editorial .download-meta dd { margin: 0; overflow-wrap: anywhere; }
.design-editorial .download-meta span + span::before { content: none; }
.design-editorial .download-link {
  min-height: 45px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
}
.design-editorial .download-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.design-editorial .download-license { margin: 0; font: 400 12px/1.8 var(--sans); color: var(--muted); }
.design-editorial .download-license summary { min-height: 44px; padding: 10px 0; }
.design-editorial .download-license p { margin: 0 0 10px; white-space: pre-line; }
.design-editorial .download-empty { padding: 50px 20px; background: transparent; border-block: 1px solid var(--line); }
.design-editorial .download-empty h3 { font: 500 23px/1.5 var(--serif); }
.design-editorial .download-empty p { font: 400 14px/1.8 var(--sans); }
.design-editorial .download-guidance {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: 32px;
  margin-top: 50px;
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}
.design-editorial .download-guidance h2 { margin: 0; font: 600 16px/1.7 var(--sans); }
.design-editorial .download-guidance > div { max-width: none; }
.design-editorial .download-guidance p:not(.eyebrow) {
  margin: 0 0 10px;
  color: var(--muted);
  font: 400 13px/1.9 var(--sans);
}
/* Keep the same keyboard-operated preview, with quieter framing. */
.design-editorial .download-preview { border: 1px solid var(--line); border-radius: 2px; }
.design-editorial .download-preview-open { padding: 10px; }
.design-editorial .download-preview-open > span {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
}
.design-editorial .download-preview-controls button { border: 1px solid var(--line); border-radius: 0; background: transparent; }
.design-editorial .download-preview::backdrop { background: #15221ccc; backdrop-filter: none; }
.design-editorial .download-preview-copy h2 { font: 500 30px/1.4 var(--serif); }
.design-editorial .download-preview-copy .button,
.design-editorial .download-preview-feedback .button { border-radius: 2px; }
@media (max-width: 1050px) {
  .design-editorial .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-editorial .download-filters { gap: 0 20px; }
}
@media (max-width: 650px) {
  .design-editorial .download-hero { padding: 22px 0 24px; }
  .design-editorial .download-hero .breadcrumbs { margin-bottom: 22px; }
  .design-editorial .download-hero h1 { font-size: 31px; }
  .design-editorial .download-hero-copy > div > p:last-child { font-size: 14px; }
  .design-editorial .download-library { padding-top: 0; padding-bottom: 44px; }
  .design-editorial .download-toolbar { align-items: stretch; gap: 0; margin-bottom: 22px; }
  .design-editorial .download-filters { gap: 0 20px; }
  .design-editorial .download-filters button { min-height: 49px; padding: 12px 0; font-size: 13px; }
  .design-editorial .download-count { padding: 8px 0 10px; }
  .design-editorial .download-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .design-editorial .download-art { aspect-ratio: 4 / 3; }
  .design-editorial .download-card h3 { font-size: 20px; }
  .design-editorial .download-description { font-size: 14px; }
  .design-editorial .download-meta { grid-template-columns: .8fr 1.4fr 1fr; }
  .design-editorial .download-guidance { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 36px; padding: 22px 0 0; }
  .design-editorial .download-guidance h2 { font-size: 16px; }
  .design-editorial .download-preview { border-radius: 2px; }
}
