/* Author publications — front */

.cs-pubs-author-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cs-pubs-author-side {
  text-align: center;
}

.cs-pubs-author-photo {
  margin: 0 0 1rem;
}

.cs-pubs-author-photo img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  object-fit: cover;
}

.cs-pubs-author-name {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.cs-pubs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-pubs-card {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(20, 40, 60, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cs-pubs-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
}

.cs-pubs-card-author {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  opacity: 0.75;
}

.cs-pubs-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cs-pubs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cs-pubs-btn--list,
.cs-pubs-btn--read {
  background: #19449c;
  color: #fff !important;
  border-color: #19449c;
}

.cs-pubs-btn--list:hover,
.cs-pubs-btn--read:hover {
  background: #14367c;
  border-color: #14367c;
  color: #fff !important;
}

.cs-pubs-btn--ann {
  background: transparent;
  color: #19449c;
  border-color: #19449c;
}

.cs-pubs-btn--ann:hover {
  background: #19449c;
  border-color: #19449c;
  color: #fff;
}

.cs-pubs-empty {
  margin: 0;
  opacity: 0.7;
}

/* Modal */
html.cs-pubs-modal-open {
  overflow: hidden;
}

.cs-pubs-modal[hidden] {
  display: none !important;
}

.cs-pubs-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.cs-pubs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.55);
  cursor: pointer;
}

.cs-pubs-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 1.5rem 1.6rem 1.75rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.cs-pubs-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  color: #445;
  opacity: 0.65;
  line-height: 0;
}

.cs-pubs-modal__close svg {
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.cs-pubs-modal__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.cs-pubs-modal__title {
  margin: 0 2rem 1rem 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.cs-pubs-modal__label {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.cs-pubs-modal__section {
  margin-bottom: 1.15rem;
}

.cs-pubs-modal__section:last-child {
  margin-bottom: 0;
}

.cs-pubs-modal__annotation,
.cs-pubs-modal__citation {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222;
}

@media (max-width: 720px) {
  .cs-pubs-author-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cs-pubs-author-photo img {
    max-width: 200px;
  }
}
