.dvtk-exam-files {
  padding-bottom: clamp(32px, 6vw, 72px);
}

.dvtk-exam-files > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dvtk-exam-files > ul > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--dvtk-line);
  border-radius: 16px;
  background: var(--dvtk-panel);
  color: var(--dvtk-muted);
  font-size: 14px;
  line-height: 1.55;
}

.dvtk-exam-files li p { margin: 0; display: contents; }
.dvtk-exam-files li br { display: none; }
.dvtk-exam-files li strong {
  display: block;
  color: var(--dvtk-title, var(--dvtk-ink, inherit));
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dvtk-exam-files li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--dvtk-soft);
  color: var(--dvtk-brand);
  font-weight: 700;
  text-decoration: none;
}

.dvtk-exam-files li a:hover { text-decoration: underline; }
.dvtk-exam-files a:focus-visible {
  outline: 2px solid var(--dvtk-brand);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .dvtk-exam-files > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .dvtk-exam-files > ul { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
