/* Purpose: Style the edition cards and shared catalogue actions. */
.papers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.paper {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(240px, 23vw, 320px);
  overflow: hidden;
  background: linear-gradient(150deg, #f5eff7, #eee9f0);
  border-bottom: 1px solid #e3dce8;
  padding: 24px;
}
.paper:nth-child(2) .cover {
  background: linear-gradient(150deg, #eff3f8, #e8edf4);
  border-color: #dfe5ee;
}
.cover img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  box-shadow:
    0 8px 22px #28203224,
    0 0 0 1px #22252a12;
}
.paper-body {
  padding: clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
}
.category {
  color: #6d2540;
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
}
.paper h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.summary {
  color: var(--muted);
  margin: 10px 0 14px;
  line-height: 1.55;
}
.edition {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: auto 0 0;
  padding-top: 5px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.91rem;
}
.actions,
.reader-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.actions {
  margin-top: 20px;
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.93rem;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.primary {
  color: #fff;
  background: var(--red);
}
.primary:hover {
  background: var(--red-hover);
}
.secondary {
  color: var(--ink);
  border-color: #aeb4bf;
  background: #fff;
}
.secondary:hover {
  background: #f0ecf4;
}
.button[aria-disabled="true"] {
  color: #6b7280;
  cursor: default;
  background: #f6f6f8;
}
@media (max-width: 740px) {
  .papers {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .cover {
    height: 280px;
  }
}
@media (max-width: 440px) {
  .actions a {
    flex: 1;
  }
}
