/*
 * Arotahi preview modal (Phase 2, 2026-07-14) — chrome for the
 * #np-arotahi-modal shell + .np-arotahi-modal-content that
 * barrioNpmArotahiModal clones into it on card click.
 *
 * Modal-lg width per D-6 (browse-friendly not immersive). Structure
 * mirrors the publication modal's side-by-side layout: a top grid row
 * with the cover on the left and eyebrow + title + subtitle + authors +
 * optional online-link on the right, then abstract snippet, attached
 * files (reuses .np-file-* from _attachment-list.html.twig), and a
 * "See full page →" bottom link — all full-width below the grid.
 *
 * D-5 keeps this in a separate file from publication-modal.css. If the
 * visual language stays converged after Phase 3, consolidation to a
 * shared preview-modal.css is a valid post-ship follow-up.
 *
 * See publication-landing-card-modals-plan.md §4 for design rationale.
 */

.np-arotahi-modal .modal-body {
  padding: 32px 40px 24px;
}

/* Top row — cover-left + head-right, mirroring the publication-modal's
   .np-publication-modal-grid. Arotahi covers are portrait-oriented (PDF
   thumbs), so the cover column is a fixed 180px and the image is
   height-constrained rather than aspect-locked. Collapses to a
   single-column stack at <576px (phone). */
.np-arotahi-modal-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

.np-arotahi-modal-cover {
  margin: 0;
}

.np-arotahi-modal-cover img {
  width: 100%;
  max-height: 240px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(44, 44, 43, 0.15);
}

.np-arotahi-modal-head {
  min-width: 0;
}

.np-arotahi-modal-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c675f;
}

.np-arotahi-modal-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #2c2c2b;
}

.np-arotahi-modal-subtitle {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  color: #575349;
  font-style: italic;
}

.np-arotahi-modal-authors {
  margin: 0 0 8px;
  font-size: 15px;
  color: #575349;
}

.np-arotahi-modal-online {
  margin: 8px 0 0;
  font-size: 13px;
}

.np-arotahi-modal-online a {
  color: #2c2c2b;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.np-arotahi-modal-online a:hover {
  color: #000;
}

.np-arotahi-modal-abstract {
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #2c2c2b;
}

.np-arotahi-modal-abstract p {
  margin: 0 0 12px;
}

.np-arotahi-modal-detail-link {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e7e2d8;
  text-align: right;
}

.np-arotahi-modal-detail-link a {
  font-size: 14px;
  font-weight: 700;
  color: #2c2c2b;
  text-decoration: none;
}

.np-arotahi-modal-detail-link a:hover {
  text-decoration: underline;
}

/* Close button — .np-arotahi-modal-close styled via the shared shell's
   btn-close-white variant. Overlays the top of the modal-content; sized +
   positioned like the publication + article + grant modal close buttons. */
.np-arotahi-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

@media (max-width: 575.98px) {
  /* Stack cover-on-top, head-below at phone width. Cover shrinks to
     a comfortable centred thumbnail so the head block gets the full row. */
  .np-arotahi-modal .modal-body {
    padding: 24px 22px 18px;
  }
  .np-arotahi-modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .np-arotahi-modal-cover {
    max-width: 180px;
    margin: 0 auto;
  }
  .np-arotahi-modal-title {
    font-size: 20px;
  }
}
