/* Public attachment cards. Upload/editor controls keep their existing styles. */
.AttachmentsInTopic .downloadbox {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid #cee6d2;
  border-radius: 12px;
  background: linear-gradient(115deg, #f3faf2 0%, #eaf6ec 100%);
}

.AttachmentsInTopic .pc-document-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 58px;
  margin-top: 3px;
  background-size: 40px 50px;
}

.AttachmentsInTopic .pc-document-desc {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  overflow-wrap: anywhere;
}

.AttachmentsInTopic .pc-document-title {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.AttachmentsInTopic .pc-document-title a {
  color: #246b3b;
  text-decoration-color: #a0c9a9;
  text-underline-offset: 3px;
}

.AttachmentsInTopic .pc-document-title a:hover {
  color: #164e2a;
  text-decoration-color: currentColor;
}

.AttachmentsInTopic .pc-document-title a:focus-visible {
  outline: 2px solid #246b3b;
  outline-offset: 3px;
  border-radius: 2px;
}

.AttachmentsInTopic .pc-document-size {
  color: #607164;
  line-height: 19px;
  padding-top: 0;
}

.AttachmentsInTopic .pc-download-motion {
  display: flex;
  flex: 0 0 52px;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #37834b;
  background: #dcefdc;
  pointer-events: none;
}

.AttachmentsInTopic .pc-download-motion svg {
  display: block;
  width: 30px;
  height: 30px;
  overflow: visible;
}

.AttachmentsInTopic .pc-download-arrow {
  animation: ezsoft-download-arrow 2.4s ease-in-out infinite;
}

@keyframes ezsoft-download-arrow {
  0%, 65%, 100% { transform: translateY(0); }
  30% { transform: translateY(3px); }
}

@media (max-width: 600px) {
  .AttachmentsInTopic .downloadbox { gap: 10px; padding: 13px 11px; }
  .AttachmentsInTopic .pc-document-icon {
    flex-basis: 30px;
    width: 30px;
    background-size: 30px 40px;
  }
  .AttachmentsInTopic .pc-document-title { font-size: 16px; }
  .AttachmentsInTopic .pc-download-motion {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .AttachmentsInTopic .pc-download-motion svg { width: 24px; height: 24px; }
  .AttachmentsInTopic .downloadbox .action-buttons { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .AttachmentsInTopic .pc-download-arrow { animation: none; }
}
