/* Clickable card */
.doc-card {
  display: flex;
  align-items: center;               /* vertical center for all children */
  gap: 20px;                         /* space between icon and content */
  width: 100%;

  background: #fff;
  border: 1px solid #d6dee7;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 22px;
  margin-bottom: 22px;

  text-decoration: none;
  color: #212529;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

/* Hover/focus affordance */
.doc-card:hover,
.doc-card:focus {
  border-color: #cbd4df;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  outline: none;
}
.doc-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 84, 139, 0.18);
}

/* Left thumbnail with PDF badge */
.doc__thumb {
  width: 56px;
  height: 72px;
  border-radius: 8px;
  background: #f7dada;
  position: relative;
  flex: 0 0 auto;
}

/* folded corner accent (optional; remove if not needed) */
.doc__thumb::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-bottom-left-radius: 4px;
}

/* "PDF" badge text */
.doc__badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9e1e1e;
}

/* Middle content: stack title + meta */
.doc__content {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 6px;
  flex: 1 1 auto;
  min-width: 0;                      /* allow wrapping of long titles */
}

.doc__title {
  font-size: 17px;
  font-weight: 500;
  color: #2c2f33;
  line-height: 1.35;
  word-break: break-word;
}
.doc__meta {
  font-size: 14px;
  color: #666e75;
}

/* Right actions: push to card’s far right and center vertically */
.doc__actions {
  margin-left: auto;                 /* pins to right edge */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sprite icon: align and color */
.doc__download {
  width: 24px;
  height: 24px;
  color: #6c6c6c;                    /* for sprites using currentColor */
  /* If your sprite paths don’t inherit color, uncomment the next line: */
  /* fill: #6c6c6c; */
}