/* burial-listings.css — new theme + responsive */

/* Card */
.grave-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px !important; /* force 4px radius */
  overflow: hidden;
  background: var(--card);
  margin: var(--s2) 0;
  box-shadow: none !important;
  font-size: 0.95rem; /* inherit site’s body size or slightly smaller */
  line-height: 1.4;
}

/* Top row */
.grave-card .card-top {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background-color: #fffefb !important;
  box-shadow: none !important;
  font-weight: 500; /* less heavy than 700 */
  font-size: 0.95rem;
}

/* File name */
.grave-card .file-name {
  font-weight: 500;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem; /* same as body text */
}

/* Action icons */
.grave-card .actions {
  dis: flex;
  align-items: center;
  gap: var(--s3);
  flex: 0 0 auto;
}

.icon-img { width: 25px; height: 25px; object-fit: contain; }
.icon-img.playing { content: url('/projects/datagrave/images/icon_pauseaudio.png'); }
.icon-img.paused { content: url('/projects/datagrave/images/icon_playaudio.png'); }

/* Bottom row */
.grave-card .card-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: #f4f4f4; /* lighter to match uncluttered look */
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem; /* smaller to de-emphasize meta info */
  box-shadow: none !important;
}

.grave-card .quote { color: var(--soft); font-style: italic; opacity: .95; }
.note { font-size: 0.85rem; opacity: .8; }

/* Pagination */
.page-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  margin: 0 4px;
  cursor: pointer;
}
.page-btn.active { background: var(--soft); border-color: #000; }

/* Make table wrapper not cause overflow */
table { width: 100%; border-collapse: collapse; }
#graveList td { padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .dg-play { width: 36px; height: 36px; border-width: 2px; }
  .icon-img { width: 22px; height: 22px; }

  .grave-card .card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .grave-card .file-name { font-weight: 600; }
  .grave-card .card-top { flex-wrap: wrap; }
  .grave-card .actions { margin-left: auto; }
}

@media (max-width: 420px) {
  .grave-card .card-top { gap: 10px; padding: 12px 14px; }
  .grave-card .card-bottom { padding: 12px 14px; }
}

/* Prevent horizontal overflow */
html, body { overflow-x: hidden; }

#burial-listings-placeholder table {
  width: 100%;
  table-layout: fixed;
}

.grave-card,
.grave-card * { max-width: 100%; }
.grave-card .file-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grave-card .quote { word-break: break-word; }

@media (max-width: 420px) {
  .grave-card .card-top,
  .grave-card .card-bottom {
    padding-left: 14px;
    padding-right: 14px;
  }
}
