/* Gyraffe — shared styles for CPT archives (News/Events/Press/Blog) + singles */

.cpt-list { background: #fff; }
.cpt-list .container { padding-block: 3.5rem; }
@media (min-width: 1024px) { .cpt-list .container { padding-block: 5rem; } }

.cpt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 600px) { .cpt-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cpt-grid { grid-template-columns: repeat(3, 1fr); } }

.cpt-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.cpt-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0, 0, 0, .1); }
.cpt-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-gray);
  position: relative;
}
.cpt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cpt-card:hover .cpt-card__media img { transform: scale(1.06); }
.cpt-card__date {
  position: absolute;
  top: .9rem;
  left: .9rem;
  background: var(--orange);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .6rem;
  border-radius: 6px;
}
.cpt-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.cpt-card__meta { font-size: .85rem; color: rgba(0, 0, 0, .5); }
.cpt-card__title { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.cpt-card__title a { transition: color .25s ease; }
.cpt-card__title a:hover { color: var(--green); }
.cpt-card__excerpt { font-size: 1rem; line-height: 1.55; color: rgba(0, 0, 0, .7); }
.cpt-card__more { margin-top: auto; font-weight: 600; color: var(--green); align-self: flex-start; }

/* Pagination */
.cpt-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.cpt-pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 .6rem;
  border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15);
  font-weight: 600; transition: .25s ease;
}
.cpt-pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }
.cpt-pagination a.page-numbers:hover { border-color: var(--green); color: var(--green); }

/* Single article */
.cpt-article { background: #fff; }
.cpt-article .container { max-width: 860px; padding-block: 3.5rem; }
@media (min-width: 1024px) { .cpt-article .container { padding-block: 5rem; } }
.cpt-article__cover { border-radius: 14px; overflow: hidden; margin-bottom: 2rem; }
.cpt-article__cover img { width: 100%; height: auto; display: block; }
.cpt-article__meta { display: flex; flex-wrap: wrap; gap: 1rem; color: rgba(0, 0, 0, .55); font-size: .95rem; margin-bottom: 1.5rem; }
.cpt-article__body { font-size: 1.0625rem; line-height: 1.7; color: rgba(0, 0, 0, .82); }
.cpt-article__body h2, .cpt-article__body h3 { margin: 2rem 0 .75rem; }
.cpt-article__body p { margin-bottom: 1.1rem; }
.cpt-article__body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.25rem 0; }
.cpt-article__back { display: inline-block; margin-top: 2.5rem; font-weight: 600; color: var(--green); }

.cpt-empty { text-align: center; padding: 3rem 0; color: rgba(0, 0, 0, .55); }
